Skip to main content

Radial tree chart

info

Charts are available with Avalonia Pro.

Radial tree charts represent hierarchical data where the root is at the center and child nodes radiate outward in concentric circles. This layout is highly space-efficient for large trees.

Radial tree chart with a root node at the center and child nodes radiating outward in concentric rings.

When to use

  • Directory visualizers: Showing many levels of folders in a compact circular form.
  • Genomic maps: Visualizing relationships between many biological entities.
  • Network topology: Mapping devices in a network radiating from a central hub.

Code example

XAML

<charts:RadialTreeChart Name="RadialTreeChartSample" Title="Taxonomy" Height="400"
ItemsSource="{Binding RadialTreeData}"
LabelPath="Name"
ChildrenPath="Children" />

Data model (C#)

public class TreeNode
{
public string Name { get; set; } = string.Empty;
public ObservableCollection<TreeNode> Children { get; set; } = new();
}

public ObservableCollection<TreeNode> RadialTreeData { get; } = new()
{
new TreeNode { Name = "Animals", Children = {
new TreeNode { Name = "Mammals", Children = {
new TreeNode { Name = "Dog" },
new TreeNode { Name = "Cat" }
}},
new TreeNode { Name = "Birds", Children = {
new TreeNode { Name = "Eagle" }
}},
new TreeNode { Name = "Fish", Children = {
new TreeNode { Name = "Salmon" }
}}
}}
};

Common properties

PropertyDescriptionDefault
ItemsSourceThe central root nodes.null
ValuePathPath to the value associated with each node.null
LabelPathPath to the text labels on the nodes.null
ChildrenPathPath to the collection of outer nodes.null
NodeSizeRadius used to draw the node points.8.0
LevelSpacingPreferred spacing between radial levels.60.0