Imagine delving into a complex dataset, uncovering the intricate relationships hidden within, this is where the Sunburst chart excels, transforming raw data into a vibrant, multi-dimensional narrative. Also known as a multi-level pie chart, the Sunburst chart is ideal for visualizing hierarchical data across multiple levels using concentric circles. The central circle represents the root node, while the surrounding rings correspond to different hierarchy levels. Each ring is segmented based on its relationship to the parent slice, with divisions either equally distributed or proportional to specific values. For instance, the below image illustrates the Sunburst chart representing sales over the past years, showcasing different makes and models of a product.
The FlexChart includes a standalone Sunburst Chart represented by the Sunburst class. Initially, the chart appears as a pie chart when placed on the form. However, it transforms into a sunburst chart once hierarchical data is assigned through the DataSource property inherited from the FlexPie class. The FlexPie class also provides Binding and BindingName properties, enabling you to set numeric values and labels for sunburst slices. Additionally, you can define the starting angle for drawing the slices in a clockwise direction using the StartAngle property.
At design-time
Using code
In addition to their traditional use with hierarchical data, Sunburst charts are also flexible to handle data from flat data files, such as CSV and TSV formats. For example, the image below illustrates a Flat Sunburst chart representing sales over the past years.
For creating flat Sunburst chart, set BindingName property of the SunBurst chart. This property automatically organizes the flat data structure into logical groups without the need to use ChildItemsPath property, which is typically used for hierarchical data.
FlexChart also provides properties to create variations of sunburst chart representing both hierarchical and flat data as listed below:
Doughnut Sunburst Chart |
Exploded Sunburst Chart |
Reversed Sunburst Chart |
---|---|---|