Skip to main content
cngx-src documentation

CngxChartLegendItem

Interface

projects/common/chart/legend/legend.component.ts

Referenced by#

Import#

import { CngxChartLegendItem } from '@cngx/common/chart'

Description#

Single legend entry. color is optional - when omitted the swatch falls back to the chart-level primary token. value is intentionally unconstrained so consumers can carry their domain key (id, layer name, accessor return type, ...) for later interactions without a second lookup.

Index#

Instance Properties#

color#string | null
ReadonlyOptional
label#string
Readonly
value#T
ReadonlyOptional