Skip to main content

Circular gauge chart

info

Charts are available with Avalonia Pro.

Circular gauge charts visualize a single value on a radial scale. They are the standard for high-level dashboard metrics where a "speedometer" style visual is intuitive.

Circular gauge chart in a speedometer style with a needle pointing to the current value on a radial scale.

When to use​

  • Real-time monitoring: Showing CPU, memory, or network usage.
  • Goal tracking: Visualizing progress toward a target (e.g., sales quota).
  • Physical simulation: Representing values from physical sensors like speed or pressure.

Code example​

XAML​

<WrapPanel Orientation="Horizontal" HorizontalAlignment="Center">
<CircularGaugeChart xmlns="https://github.com/avaloniaui" Value="72" Width="220" Height="220" Title="CPU" Margin="10" />
<CircularGaugeChart Value="45" Width="220" Height="220" Title="Memory" Margin="10" />
<CircularGaugeChart Value="88" Width="220" Height="220" Title="Disk" Margin="10" />
</WrapPanel>

Common properties​

PropertyDescriptionDefault
ValueThe current value to display.0.0
MinValueMinimum value of the scale.0.0
MaxValueMaximum value of the scale.100.0
ShowValueWhether to display the numeric value.true
ValueFormatFormat string for the displayed value."{0:F0}"
StartAngleThe starting angle of the gauge arc, in degrees.135.0
SweepAngleThe sweep angle of the gauge arc, in degrees.270.0
TrackBrushBrush used for the gauge track.null
ValueBrushBrush used for the filled value arc.null
NeedleBrushBrush used for the needle.null
TrackThicknessThickness of the track arc.10.0
MajorTickCountThe number of major tick marks.5
TickPositionWhere tick marks sit relative to the track.Cross
LabelPositionWhere scale labels are drawn, Inside or Outside.Inside

Tick position​

TickPosition places tick marks on the track.

ValueDescription
CrossSpans the track, from 10 px inside the inner edge to the outer edge. Default.
InsideExtends inward from the inner edge of the track.
OutsideExtends outward from the outer edge of the track.

Compact gauges shrink the value readout inside the dial. If the text cannot fit, it is moved to the open part of the sweep.

See also​