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

Function getLegends

packages/sanddance-specs/src/legends.ts:29–34  ·  view source on GitHub ↗
(context: SpecContext, fill: string)

Source from the content-addressed store, hash-verified

27}
28
29export function getLegends(context: SpecContext, fill: string) {
30 const { specColumns, insight } = context;
31 if (specColumns.color && !insight.hideLegend && !insight.directColor && !specColumns.color.isColorData) {
32 return [legend(specColumns.color, fill)];
33 }
34}

Callers 1

addColorFunction · 0.90

Calls 1

legendFunction · 0.70

Tested by

no test coverage detected