CngxArea
projects/common/chart/layers/area.component.ts
Import#
import { CngxArea } from '@cngx/common/chart'
Description#
Area layer atom. Reuses createPathBuilder for the upper edge
(same compute guard as [cngxLine]) and closes the polygon to a
[baseline] (default 0) so SVG can fill it.
Attribute-selector on <svg:g> — see CngxLine for why.
The d string is cascade-guarded with string equality on its
computed so a no-op data refresh does not force a fill repaint.
Metadata#
Relationships
Index#
Inputs#
LineYAccessor(d: T) => Number(d)readonly T[] | undefinedLineXAccessor | undefined