ChartsRadialPolar· 4 min read
Polar, Gauges & Radial Visualizations
Circular and angular visualization models: Pie, Donut, Semi-Circle Speedometer, Dial Gauges, Activity Rings, and Radar charts.
Polar charts map data across angles (theta) and radii (r). QuaCharts provides high-precision antialiased radial renderers for portfolio allocations, telemetry dials, performance speedometers, and multi-variable radar spider charts.
Polar & Radial Types
| Type | Geometric Description | Key Parameters |
|---|---|---|
| pie | Classic circular sector slices | innerRadius: 0, padAngle, startAngle, endAngle |
| donut | Ring with custom hollow center diameter | innerSize: "65%", centerBadge, sliceExplosion |
| gauge | Speedometer dial with animated needle | min, max, bands: [{ from, to, color }], needle |
| activity-rings | Concentric multi-metric circular arcs | rings: [{ radius, value, goal, color }] |
| radar | Spider web multi-axis polygon comparison | polar: true, categories: 5+, fillOpacity |
Semi-Circle Speedometer Gauge
speedometer-gauge.ts
1
import { createGauge } from '@quatick/web-charts';
2
3
const gauge = createGauge('#gauge-container', {
4
title: 'Order Execution Latency Risk',
5
min: 0,
6
max: 100,
7
value: 38.5,
8
startAngle: -90,
9
endAngle: 90,
10
bands: [
11
{ from: 0, to: 40, color: '#22c55e' }, // Optimal (Green)
12
{ from: 40, to: 75, color: '#f59e0b' }, // Elevated (Amber)
13
{ from: 75, to: 100, color: '#ef4444' },// Critical (Red)
14
],
15
needle: {
16
color: '#ffffff',
17
pivotRadius: 8,
18
animation: { duration: 600, easing: 'easeOutBack' },
19
},
20
valueDisplay: {
21
format: '{value:.1f} ms',
22
subText: 'Average Ack Time',
23
},
24
});