ejSunburstChart
Namespace: Wisej.Web.Ext.Syncfusion
Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)
The Sunburst Chart visualizes hierarchical data using concentric rings. Each ring represents a level of the hierarchy, starting from the innermost ring, and the size of each segment is proportional to the value of the data it represents.
- C#
- VB.NET
public class ejSunburstChart : ejBase
Public Class ejSunburstChart
Inherits ejBase
Constructors
ejSunburstChart()
Constructs a new instance of the ejSunburstChart class.
Example:
The following example creates the sunburst chart and groups the data by continent and country through the options.
var sunburst = new ejSunburstChart();
sunburst.Options.dataSource = population;
sunburst.Options.valueMemberPath = "Population";
sunburst.Options.levels = new[]
{
new { groupMemberPath = "Continent" },
new { groupMemberPath = "Country" }
};
sunburst.Dock = DockStyle.Fill;
this.Controls.Add(sunburst);
ejSunburstChart(options)
Constructs a new instance of the ejSunburstChart class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a sunburst chart with a title and a hole in the middle that shows the sales by region and product.
var sunburst = new ejSunburstChart(new
{
title = new { text = "Sales by region" },
dataSource = sales,
valueMemberPath = "Total",
innerRadius = 0.3,
levels = new[]
{
new { groupMemberPath = "Region" },
new { groupMemberPath = "Product" }
}
});
sunburst.Dock = DockStyle.Fill;
this.Controls.Add(sunburst);