Skip to content

Documentation / @ripl/charts / GaugeChartOptions

Interface: GaugeChartOptions

Defined in: charts/src/charts/gauge.ts:52

Options for configuring a GaugeChart.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
animation?boolean | Partial<ChartAnimationOptions>Animation configuration, or a boolean toggling all transitions. See ChartAnimationOptions.BaseChartOptions.animationcharts/src/core/chart.ts:89
autoRender?booleanWhether the chart renders automatically on construction and after every Chart.update. Defaults to true.BaseChartOptions.autoRendercharts/src/core/chart.ts:83
color?stringColour of the value arc.-charts/src/charts/gauge.ts:62
formatTickLabel?(value) => stringFormat function for tick labels-charts/src/charts/gauge.ts:72
formatValue?(value) => stringFormat function for the central value display.-charts/src/charts/gauge.ts:66
label?stringOptional descriptive text shown below the value.-charts/src/charts/gauge.ts:60
max?numberUpper bound of the gauge scale. Defaults to 100.-charts/src/charts/gauge.ts:58
min?numberLower bound of the gauge scale. Defaults to 0.-charts/src/charts/gauge.ts:56
padding?Partial<ChartPadding>Space reserved around the chart, per edge, in pixels.BaseChartOptions.paddingcharts/src/core/chart.ts:85
showTickLabels?booleanWhether to show value labels at each tick. Defaults to true.-charts/src/charts/gauge.ts:70
tickCount?numberNumber of tick marks along the gauge arc. Defaults to 5. Set to 0 to hide.-charts/src/charts/gauge.ts:68
title?string | Partial<ChartTitleOptions>Chart title as plain text, or a ChartTitleOptions object for full control.BaseChartOptions.titlecharts/src/core/chart.ts:87
trackColor?stringColour of the background track arc.-charts/src/charts/gauge.ts:64
valuenumberThe value displayed by the gauge (clamped to minmax).-charts/src/charts/gauge.ts:54