Skip to content

Interface: CartesianContext

chartType: ChartType


colors: string[]

OptionBuilderContext.colors


optional interactive?: boolean

Whether a click handler is attached. When true, line/area series set triggerLineEvent so a click anywhere on the stroke fires (not just on a symbol) — otherwise clicking a thin line is nearly impossible to land.


isTimeSeries: boolean


showLegend: boolean

OptionBuilderContext.showLegend


showSymbol: boolean


smooth: boolean


stacked: boolean


symbolSize: number


optional title?: string

OptionBuilderContext.title


optional ui?: ChartUITokens

OptionBuilderContext.ui


optional valueFormatter?: ChartValueFormatter

OptionBuilderContext.valueFormatter


xData: (string | number)[]

OptionBuilderContext.xData


optional xField?: string

OptionBuilderContext.xField


yDataMap: Record<string, (string | number)[]>

OptionBuilderContext.yDataMap


yFields: string[]

OptionBuilderContext.yFields