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

Function finalizeLegend

docs/app/js/sanddance-app.js:10872–10880  ·  view source on GitHub ↗
(colorBinType, colorColumn, legend, language)

Source from the content-addressed store, hash-verified

10870 else return (0, _expression.selectBetween)(column, lowValue, highValue, lowOperator, highOperator);
10871}
10872function finalizeLegend(colorBinType, colorColumn, legend, language) {
10873 const rowTexts = [];
10874 for(let i in legend.rows){
10875 let row = legend.rows[i];
10876 row.search = legendRange(colorBinType, colorColumn, legend, +i);
10877 if (row.value === (0, _sanddanceSpecs.Other)) row.label = language.legendOther;
10878 else rowTexts.push(row.value);
10879 }
10880}
10881
10882},{"@msrvida/sanddance-specs":"gDvQs","./expression":"2iReT","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"2nX12":[function(require,module,exports) {
10883var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 1

legendRangeFunction · 0.70

Tested by

no test coverage detected