GaugeChartOptions
Options for a Gauge chart.
Extends
Properties
colorGenerator?
optionalcolorGenerator:ColorGenerator
Optional function to call in order to establish the color to be used for each series
Inherited from
BaseChartOptions.colorGenerator
data?
optionaldata:ObjectData[]
Optional data to load into the chart.
Inherited from
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.
Inherited from
dataSourceFilter?
optionaldataSourceFilter:ChartModelFilter
When you provide dataSource, you can also provide a filter which accepts or rejects specific nodes/groups in the data source.
Inherited from
BaseChartOptions.dataSourceFilter
defaultColor?
optionaldefaultColor:string
Optional color to use for every series. Overrides any colorGenerator.
Inherited from
emptyMessage?
optionalemptyMessage:string
Message to display when the chart has no data. Defaults to "No data".
Inherited from
endAngle?
optionalendAngle:number
The end angle of the gauge in degrees. Typically 135 for a speedometer style.
height?
optionalheight:number
Height for the chart. If omitted, height is computed from the width of the chart's container
Inherited from
innerRadius?
optionalinnerRadius:number
Inner radius ratio (0 to 1). A higher value (e.g. 0.8) creates a thin arc. 0 creates a semi-circle.
labels?
optionallabels:object
Configuration for the scale labels.
distance?
optionaldistance:number
Distance beyond the outer radius in pixels.
interval?
optionalinterval:number
Interval between labels (e.g. 20).
values?
optionalvalues:number[]
Explicit values to label. If provided, interval is ignored.
legend?
optionallegend:boolean|LegendSpec
Either a boolean true/false, indicating the legend should be shown/hidden, or a spec for a legend.
Inherited from
max?
optionalmax:number
The maximum value on the scale. Defaults to 100.
min?
optionalmin:number
The minimum value on the scale. Defaults to 0.
outerRadius?
optionalouterRadius:number
Outer radius ratio (0 to 1). Defaults to 1.
resizeObserver?
optionalresizeObserver:boolean
Defaults to true, meaning the chart will redraw when its container element resizes.
Inherited from
BaseChartOptions.resizeObserver
showNeedle?
optionalshowNeedle:boolean
Whether to show a needle/pointer. Defaults to true. When false, the zones are painted up to the value.
startAngle?
optionalstartAngle:number
The start angle of the gauge in degrees. 0 is the top. Typically -135 for a speedometer style.
style?
optionalstyle:ChartStyleOptions
Styles for legend and grid.
Inherited from
subtitle?
optionalsubtitle:SubtitleSpec
Subtitle for the chart.
Inherited from
ticks?
optionalticks:object
Configuration for tick marks.
color?
optionalcolor:string
Color to draw the ticks in
interval?
optionalinterval:number
Interval between ticks (e.g. 10).
values?
optionalvalues:number[]
Explicit values at which to draw tick marks. If provided, interval is ignored.
width?
optionalwidth:number
Stroke width for the ticks. Defaults to 1.
title?
optionaltitle:ChartTitleSpec
Title for the chart.
Inherited from
titlePadding?
optionaltitlePadding:number
Padding to leave underneath the title
Inherited from
tooltip?
optionaltooltip:TooltipOptions
Options for a tooltip for the chart.
Inherited from
url?
optionalurl:string
Optional URL from which to retrieve data to load into the chart
Inherited from
value?
optionalvalue:number
Current value. If not provided, the gauge will use the computed min (which you may have provided, but if not, will be set to 0)
width?
optionalwidth:number
Width for the chart. If omitted, width is computed from the width of the chart's container
Inherited from
zones?
optionalzones:GaugeChartZone[]
Optional segments to color the background arc
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]