MCPcopy Index your code
hub / github.com/microsoft/SandDance / scaleCount

Function scaleCount

docs/app/js/sanddance-app.js:148546–148548  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

148544 return type !== Gradient ? type : (0, _vegaScale.isDiscretizing)(scaleType) ? Discrete : Gradient;
148545}
148546function scaleCount(spec) {
148547 return LegendScales.reduce((count, type)=>count + (spec[type] ? 1 : 0), 0);
148548}
148549function buildLegendEncode(_, spec, config) {
148550 const encode = {
148551 enter: {},

Callers 1

legendTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected