Skip to main content

Bullet chart

info

Charts are available with Avalonia Pro.

Bullet charts compare a primary value to a target and one or more qualitative ranges in a compact layout.

When to use

  • Target tracking: Compare an actual value to a goal in a dashboard card.
  • Compact summaries: Replace a full bar chart when you only need one measure and a target.
  • Threshold ranges: Show poor, satisfactory, and good bands behind the main value.

Code example

XAML

<charts:BulletChart Title="Revenue attainment"
Width="320"
Height="80"
Value="{Binding ActualRevenue}"
Target="{Binding RevenueTarget}"
Ranges="{Binding RevenueBands}" />

Data model (C#)

public double ActualRevenue { get; set; } = 72;
public double RevenueTarget { get; set; } = 85;
public double[] RevenueBands { get; } = [30, 60, 90, 100];

Common properties

PropertyDescriptionDefault
ValuePrimary value displayed by the bar.75.0
TargetTarget marker value.85.0
MinValueMinimum value of the scale.0.0
MaxValueMaximum value of the scale.100.0
RangesOptional collection of qualitative range boundaries.null
OrientationOrientation of the chart, Horizontal or Vertical.Horizontal
ValueBrushBrush for the main value bar.null
TargetBrushBrush for the target marker.null

See also