Skip to main content

Icicle chart

info

Charts are available with Avalonia Pro.

Icicle charts visualize hierarchical data using rectangles placed side by side. Each level in the hierarchy's depth is represented by a row or column, showing parent-child relationships across levels.

Icicle chart showing hierarchical levels as adjacent rectangular rows where width represents relative value.

When to use

  • Structural analysis: Inspecting codebases, directory structures, or large taxonomies.
  • Performance profiling: Visualizing call stacks or execution paths.
  • Relationship discovery: Finding the root cause of leaf-node values within a large tree.

Code example

XAML

<charts:IcicleChart Name="IcicleChartSample" Title="File System" Height="300"
ItemsSource="{Binding IcicleData}"
ValuePath="Size"
LabelPath="Name" />

Data model (C#)

public record TreeMapItem(string Name, double Size);

public ObservableCollection<TreeMapItem> IcicleData { get; } = new()
{
new("src", 60),
new("tests", 25),
new("docs", 15)
};

Common properties

PropertyDescriptionDefault
ItemsSourceThe hierarchical data source.null
ValuePathProperty name determining rectangle width.null
LabelPathProperty name for the text label.null
ChildrenPathPath to the collection of child nodes.null
OrientationOrientation of the chart, Horizontal or Vertical.Vertical
TileGapGap between adjacent rectangles.1.0