CngxBar
projects/common/chart/layers/bar.component.ts
Import#
import { CngxBar } from '@cngx/common/chart'
Description#
Bar layer atom. Renders one <rect> per datapoint. Bar width comes
from dimensions.width / dataLength (one slot per datapoint) shrunk
by the optional [gap] ratio. Bar height runs from yScale(value)
down to yScale(baseline) (default 0) — SVG bottom-anchored.
Bar does NOT require a band X scale; the slot width is purely geometric. This keeps the atom usable with linear or band X axes interchangeably.
Attribute-selector on <svg:g> — see CngxLine for why.