MCPcopy Create free account
hub / github.com/microsoft/SandDance / defaultColorScheme

Function defaultColorScheme

docs/app/js/sanddance-app.js:12353–12358  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

12351}();
12352exports.Recommender = Recommender;
12353function defaultColorScheme(c) {
12354 if (c.quantitative) return "redyellowgreen";
12355 else if (c.stats.distinctValueCount === 2) return "dual_redgreen";
12356 else if (c.stats.distinctValueCount <= 10) return "category10";
12357 return "category20";
12358}
12359exports.defaultColorScheme = defaultColorScheme;
12360
12361},{}],"i68zm":[function(require,module,exports) {

Callers 1

bestColorSchemeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected