Skip to main content

Carpet plot chart

info

Charts are available with Avalonia Pro.

Carpet plots visualize how two independent variables relate to a third value by drawing a distorted grid of intersecting isolines.

When to use

  • Engineering trade-offs: Compare two design inputs against an outcome surface.
  • Performance maps: Visualize operating regions for efficiency, pressure, or temperature.
  • Multi-variable analysis: Inspect relationships that do not fit a simple Cartesian line chart.

Code example

XAML

<charts:CarpetPlot Title="Performance map"
Height="320"
ItemsSource="{Binding CarpetData}"
AAxisPath="Speed"
BAxisPath="Load"
YAxisPath="Efficiency" />

Data model (C#)

public record CarpetPoint(double Speed, double Load, double Efficiency);

public ObservableCollection<CarpetPoint> CarpetData { get; } = new()
{
new(1000, 20, 62),
new(1000, 40, 68),
new(1500, 20, 70),
new(1500, 40, 74)
};

Common properties

PropertyDescriptionDefault
ItemsSourceCollection of measurement points.null
AAxisPathPath to the first independent variable.null
BAxisPathPath to the second independent variable.null
YAxisPathPath to the dependent value.null
CarpetOffsetVisual offset factor used to create the carpet effect.0.5
PlotAreaBackgroundOptional background brush for the plot area.null

See also