Skip to main content

Strip plot chart

info

Charts are available with Avalonia Pro.

Strip plots show every observation in a category while applying jitter to reduce overlap and optional mean lines to summarize the center.

When to use

  • Raw sample display: Show every point rather than only quartiles or averages.
  • Category spread: Compare how tightly or widely values cluster per group.
  • Hybrid views: Combine raw observations with a simple mean reference line.

Code example

XAML

<charts:StripPlotChart Title="Response times"
Height="300"
ItemsSource="{Binding StripData}"
CategoryPath="Category"
ValuePath="Value"
JitterAmount="0.3"
ShowMeanLine="True" />

Data model (C#)

public record StripPoint(string Category, double Value);

public ObservableCollection<StripPoint> StripData { get; } = new()
{
new("API", 120),
new("API", 128),
new("UI", 95),
new("UI", 102)
};

Common properties

PropertyDescriptionDefault
ItemsSourceCollection of observations.null
CategoryPathPath to the grouping category.null
ValuePathPath to the numeric value.null
PointRadiusRadius of each point.4.0
JitterAmountHorizontal jitter factor applied within each category.0.3
FillBrush used to fill points.null
StrokeBrush used for point outlines.null
StrokeThicknessThickness of point outlines.0.5
PointOpacityOpacity applied to the plotted points.0.7
ShowCategoryLabelsWhether to draw category labels.true
ShowAxesWhether to draw the value axis.true
ShowMeanLineWhether to draw a mean line for each category.true

See also