Interface: ChartOptions
Properties
animation?
optionalanimation?:AnimationOptions
annotations?
optionalannotations?:AnnotationOptions[]
axes?
optionalaxes?:PolarAxesOptions|AxisOptions[]
Axes of the chart: a list for a cartesian one, a pair — the categories around the rim and the values along the radius — for a polar one.
background?
optionalbackground?:BackgroundOptions
container?
optionalcontainer?:HTMLElement
contextMenu?
optionalcontextMenu?:ContextMenuOptions
crosshair?
optionalcrosshair?:CrosshairOptions
data?
optionaldata?:Datum[]
fonts?
optionalfonts?:FontsOptions
Handling of web fonts that are still loading when the chart draws.
gradientLegend?
optionalgradientLegend?:GradientLegendOptions
Color scale for colorField series (heatmap).
height?
optionalheight?:number
highlight?
optionalhighlight?:HighlightOptions
initialState?
optionalinitialState?:ChartState
legend?
optionallegend?:LegendOptions
listeners?
optionallisteners?:ChartListeners
loading?
optionalloading?:boolean
Shows the "Loading…" overlay.
locale?
optionallocale?:LocaleOptions
minHeight?
optionalminHeight?:number
minWidth?
optionalminWidth?:number
Floor under the size measured off the container, px — default 300 and 200. 0 removes the floor: the chart is then exactly as small as the container is, which is what a dense dashboard tile or a KPI sparkline wants. Ignored on the axis a numeric width/height fixes.
navigator?
optionalnavigator?:NavigatorOptions
overlays?
optionaloverlays?:OverlaysOptions
padding?
optionalpadding?:PaddingValue
responsive?
optionalresponsive?:boolean
Whether the chart follows its container through a ResizeObserver. By default it does unless both width and height are numbers. Set it and the two stop deciding it: responsive: true alongside width/height leaves them as the size to start from — the size a container with no box yet is drawn at — and the container decides every size after that; responsive: false measures once and never again.
selection?
optionalselection?:SelectionOptions
Datum selection via rubber band/clicks + listeners.selectionChange.
series?
optionalseries?:SeriesOptions[]
subtitle?
optionalsubtitle?:CaptionOptions
sync?
optionalsync?:SyncOptions
theme?
optionaltheme?:ThemeName|ThemeOptions
title?
optionaltitle?:CaptionOptions
tooltip?
optionaltooltip?:TooltipOptions
width?
optionalwidth?:number
Without width/height the chart follows its container (ResizeObserver).
zoom?
optionalzoom?:ZoomOptions