API / Configuration / ChartOptions

Defined in: src/core/types/chart/chart.ts:12

Type Parameters

Type Parameter Default type
TItem extends ChartInteractionItem ChartInteractionItem

Properties

Property Type Description
events? object -
events.click? (data: ChartLegacyClickData<TItem>, legacyEvent: PointerEvent) => void Called according to clickMode, preserving the legacy arguments. In plot mode, legacy point and series are undefined when no tooltip-eligible point is selected. The chart supplies all modern fields; check their presence when consuming events forwarded by legacy wrappers.
events.clickMode? "tooltip" | "plot" Controls when click handlers run; their arguments are the same in both modes. - 'tooltip': Deliver clicks only when the legacy tooltip selection finds a point. - 'plot': Deliver every click inside the main plot, independently of tooltip eligibility. Default 'tooltip'
events.pointermove? (data: undefined | ChartTooltipRendererArgs, event: PointerEvent) => void -
margin? Partial<ChartMargin> -
zoom? ChartZoom Configuration options for chart zooming functionality.