Skip to main content

Gauge chart

info

Charts are available with Avalonia Pro.

Gauge charts render a single value on a dial-style arc, with optional needle and formatted value text.

When to use

  • Operational dashboards: Show utilization, load, or health in a compact dial.
  • Threshold monitoring: Emphasize a single current reading over time history.
  • Status cards: Present one metric with strong visual weight.

Code example

XAML

<charts:GaugeChart Title="CPU load"
Width="220"
Height="160"
Value="{Binding CpuLoad}"
MaxValue="100"
ShowNeedle="True" />

Data model (C#)

public double CpuLoad { get; set; } = 67;

Common properties

PropertyDescriptionDefault
ValueCurrent value displayed by the gauge.50.0
MinValueMinimum value of the scale.0.0
MaxValueMaximum value of the scale.100.0
ValueBrushBrush used for the value arc.null
TrackBrushBrush used for the background track.null
NeedleBrushBrush used for the needle.null
ShowNeedleWhether to draw the needle.true
StartAngleStart angle of the gauge arc in degrees.135.0
SweepAngleSweep angle of the gauge arc in degrees.270.0
TrackThicknessThickness of the track arc.20.0
ShowValueWhether to display the formatted value text.true
ValueFormatFormat string used for the value text."{0:F0}"

See also