Skip to content

Documentation / @ripl/charts / SEGMENT_LABEL_FONT

Variable: SEGMENT_LABEL_FONT

const SEGMENT_LABEL_FONT: "600 11px sans-serif" = '600 11px sans-serif'

Defined in: charts/src/core/labels.ts:104

Shared segment-label style constants. Every chart routes its segment labels through these so the appearance is identical across chart types and across the Canvas and SVG contexts. The cross-context inconsistency this fixes came from labels that omitted font, leaving each backend to fall back to its own default — always set an explicit font.