AccumulationChart
Namespace: Wisej.Web.Ext.Syncfusion2
Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)
In EJ2, accumulation chart is implemented as a separate control to avoid the axis related logics. The dependencies for accumulation chart is same as chart control.
- C#
- VB.NET
public class AccumulationChart : ej2Base
Public Class AccumulationChart
Inherits ej2Base
Constructors
AccumulationChart()
Constructs a new instance of the AccumulationChart class.
Example:
The following example creates a pie chart and configures it through the Options object.
var chart = new AccumulationChart();
chart.Options.title = "Expenses by Category";
chart.Options.series = new[]
{
new
{
type = "Pie",
xName = "category",
yName = "amount",
dataSource = new[]
{
new { category = "Rent", amount = 1200 },
new { category = "Food", amount = 450 },
new { category = "Travel", amount = 300 }
}
}
};
chart.Dock = DockStyle.Fill;
this.Controls.Add(chart);
AccumulationChart(options)
Constructs a new instance of the AccumulationChart class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a doughnut chart with a legend and data labels.
var chart = new AccumulationChart(new
{
title = "Browser Market Share",
legendSettings = new { visible = true },
series = new[]
{
new
{
type = "Pie",
innerRadius = "40%",
xName = "browser",
yName = "share",
dataLabel = new { visible = true },
dataSource = new[]
{
new { browser = "Chrome", share = 65 },
new { browser = "Safari", share = 19 },
new { browser = "Edge", share = 5 }
}
}
}
});
this.Controls.Add(chart);