BaseChartOptions
Base options for charts.
Extended by
Properties
colorGenerator?
optionalcolorGenerator:ColorGenerator
Optional function to call in order to establish the color to be used for each series
data?
optionaldata:ObjectData[]
Optional data to load into the chart.
dataSource?
optionaldataSource:DataSource
Optional data source (of type DataSource, meaning both VisuallyJsModel and Selection are supported) from which to retrieve data to load into the chart.
dataSourceFilter?
optionaldataSourceFilter:ChartModelFilter
When you provide dataSource, you can also provide a filter which accepts or rejects specific nodes/groups in the data source.
defaultColor?
optionaldefaultColor:string
Optional color to use for every series. Overrides any colorGenerator.
emptyMessage?
optionalemptyMessage:string
Message to display when the chart has no data. Defaults to "No data".
height?
optionalheight:number
Height for the chart. If omitted, height is computed from the width of the chart's container
legend?
optionallegend:boolean|LegendSpec
Either a boolean true/false, indicating the legend should be shown/hidden, or a spec for a legend.
resizeObserver?
optionalresizeObserver:boolean
Defaults to true, meaning the chart will redraw when its container element resizes.
style?
optionalstyle:ChartStyleOptions
Styles for legend and grid.
subtitle?
optionalsubtitle:SubtitleSpec
Subtitle for the chart.
title?
optionaltitle:ChartTitleSpec
Title for the chart.
titlePadding?
optionaltitlePadding:number
Padding to leave underneath the title
tooltip?
optionaltooltip:TooltipOptions
Options for a tooltip for the chart.
url?
optionalurl:string
Optional URL from which to retrieve data to load into the chart
width?
optionalwidth:number
Width for the chart. If omitted, width is computed from the width of the chart's container
zoom?
optionalzoom:object
Optional zoom configuration.
enabled?
optionalenabled:boolean
Whether or not zoom is enabled.
initialValue?
optionalinitialValue:number
Initial zoom value. Defaults to 1.
range?
optionalrange: [number,number]
Zoom range to support. Defaults to [0.05, 3]