Skip to content

Gauge Chart ^0.1.18 ​

Radial progress / KPI indicator. Ideal for speedometers, system health, scores, and single-metric dashboards.

Basic ​

0%CPU usage0100
vue
<VxGaugeChart :value="42" label="CPU usage" unit="%" />

With thresholds ​

Colors change automatically once the value passes each threshold.

0%Memory0100
vue
<VxGaugeChart
  :value="78"
  :thresholds="[
    { value: 0,  color: '#22c55e' },
    { value: 60, color: '#f59e0b' },
    { value: 85, color: '#ef4444' },
  ]"
  label="Memory"
  unit="%"
/>

With needle (speedometer) ​

0Score0100
vue
<VxGaugeChart :value="87" :max="100" showNeedle showTicks :tickCount="11" label="Score" />

Half-circle (semi-gauge) ​

0%Disk0100
vue
<VxGaugeChart :value="23" :startAngle="-90" :endAngle="90" label="Disk" unit="%" />

Full circle ​

0%Progress
vue
<VxGaugeChart :value="87" :startAngle="-90" :endAngle="270" :showMinMax="false" label="Progress" unit="%" />

Custom range ​

0mph0500
vue
<VxGaugeChart :value="340" :min="0" :max="500" label="mph" color="#ef4444" />

Live updates ​

0%Live sensor0100
vue
<VxGaugeChart :value="live" label="Live sensor" unit="%" :thresholds="[...]" />

Grid of gauges (system health) ​

0%CPU0100
0%Memory0100
0%Disk0100
0%Network0100

Interactive ​

0%Drag to change0100

Props ​

PropTypeDefaultDescription
valuenumber0Current value
minnumber0Minimum
maxnumber100Maximum
sizenumber240SVG diameter
thicknessnumber18Arc stroke width
startAnglenumber-135Arc start in degrees
endAnglenumber135Arc end in degrees
colorstringprimarySingle color (no thresholds)
trackColorstringvar(--muted)Background arc
thresholdsGaugeThreshold[][]{ value, color } breakpoints
showValuebooleantrueShow value text
showMinMaxbooleantrueShow min/max labels
showTicksbooleanfalseShow tick marks
tickCountnumber11Tick count
showNeedlebooleanfalseShow center needle
labelstring''Text under value
unitstring''Suffix after value
roundedbooleantrueRounded arc caps
animatebooleantrueAnimate to value