View as Markdown

API reference: @salmonui/charts/chart

ChartSegmentinterface

import type { ChartSegment } from '@salmonui/charts/chart';
interface ChartSegment {
    readonly until?: number | undefined;
    readonly color: string;
    readonly lineStyle?: ChartLineStyle | undefined;
}
ChartSegment members (3)
NameSignatureDescription
untiloptionalreadonly until?: number | undefined;

Segment applies to values (x or y per segmentAxis) up to and including until; the last segment has none.

colorreadonly color: string;
lineStyleoptionalreadonly lineStyle?: ChartLineStyle | undefined;