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

Function legendRange

docs/app/js/sanddance-app.js:10811–10814  ·  view source on GitHub ↗
(colorBinType, column, legend, clickedIndex)

Source from the content-addressed store, hash-verified

10809var _sanddanceSpecs = require("@msrvida/sanddance-specs");
10810var _expression = require("./expression");
10811function legendRange(colorBinType, column, legend, clickedIndex) {
10812 if (column.quantitative) return selectQuantitative(colorBinType, column, legend, clickedIndex);
10813 else return selectCategorical(column, legend, clickedIndex);
10814}
10815function selectCategorical(column, legend, clickedIndex) {
10816 const value = legend.rows[clickedIndex].value;
10817 if (value === (0, _sanddanceSpecs.Other)) {

Callers 1

finalizeLegendFunction · 0.70

Calls 2

selectQuantitativeFunction · 0.70
selectCategoricalFunction · 0.70

Tested by

no test coverage detected