Sunburst
SunburstChartControlExplore a hierarchy ring by ring: click to drill in, click the center to zoom out.
Overview
SunburstChartControl is a Blazor sunburst chart: a hierarchy drawn as concentric rings, where each segment's size shows its share of the parent. Use it for any breakdown with levels, such as sales by region and country: users click a segment to drill in and the center to zoom out. The data here is COVID-19 cases and deaths for 210 countries, after an article on Toward Data Science.
Examples
#Cases and deaths by continent and country
Switch the metric, filter a continent, search a country or open the data table underneath; the chart, stats and leaderboard share one selection.
World
Underlying COVID-19 Dataset Explorer
Tabulated country records powered by FlexCore GridControl with sorting, filtering, and pagingDocumentation
Written from SunburstChartControl.razor, its scoped CSS and SunburstModels.cs. The control has no public
methods: its surface is the parameters and two events below plus the SunburstNode tree it is given. Build that tree
with AddChild, because the drawing reads Parent, Depth and the two totals rather than
Value directly. There is no JavaScript interop in the control; hover and the tooltip position come from Blazor mouse
events on the container.