When to Use Gauge Charts
Gauge charts are ideal for displaying single values within a defined range, similar to a speedometer or dashboard meter. Common use cases include:- KPI dashboards: Displaying key performance indicators with targets and ranges
- Progress tracking: Showing completion percentages or goal achievement
- Real-time monitoring: Displaying current values like temperature, speed, or system load
- Score visualization: Presenting ratings, satisfaction scores, or performance metrics
Basic Configuration
A gauge chart uses thetype: 'gauge' series option. Here’s the basic structure:
Complete Working Example
Key Options and Properties
Gauge Range
min / max
Type: numberDefault:
0 / 100
Minimum and maximum values of the gauge.
Source: ~/workspace/source/src/chart/gauge/GaugeSeries.ts:139-140
startAngle / endAngle
Type: numberDefault:
225 / -45
Start and end angles of the gauge in degrees. 0 degrees is at the 3 o’clock position, with positive angles going counter-clockwise.
Source: ~/workspace/source/src/chart/gauge/GaugeSeries.ts:135-136
clockwise
Type: booleanDefault:
true
Whether the gauge grows clockwise.
Source: ~/workspace/source/src/chart/gauge/GaugeSeries.ts:137