Skip to main content

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.

public class ejSunburstChart : ejBase

Constructors​

Instance member 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);

Instance member ejSunburstChart(options)​

Constructs a new instance of the ejSunburstChart class.

NameTypeDescription
optionsObjectInitial 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);

Implements​