Charts
TwSunburstChart
TwSunburstChart is a Blazor sunburst chart: a tree drawn as rings, each segment sized by its share of the whole.
Last updated
Please be aware this component is new, may have bugs and/or be subject to change. Please report any bugs at
https://github.com/twblazor/twblazor/issues.
Basic usage
TwSunburstChart draws a tree of ChartHierarchyNode values as rings. The top-level nodes form the inner ring and each node's children sit around it in the next ring out, every segment sized by its share of the whole.- North
- South
Three rings
Each top-level node has its own color and its descendants are lighter tints of it, so a branch reads as one family all the way out. A larger
Height leaves more segments room for their names.- Search
- Social
- Direct
Uneven branches
Branches need not be the same depth. A node without children simply ends at its own ring, leaving the rings beyond it empty.
- Housing
- Food
- Transport
- Savings
When to use
Use a sunburst chart to show shares at every level of a tree. Names that do not fit are cut short or left off. Nodes with no value are left out.
Summary
Tooltips and the table view give the path and the value of each segment. Tooltips also give its share of the whole. The arrow keys visit a segment, then its children, then the next segment.