dxPieChart
Namespace: Wisej.Web.Ext.DevExtreme
Assembly: Wisej.Web.Ext.DevExtreme (4.1.0.0)
The PieChart is a widget that visualizes data as a circle divided into sectors that each represents a portion of the whole.
- C#
- VB.NET
public class dxPieChart : dxBase
Public Class dxPieChart
Inherits dxBase
Constructors
dxPieChart()
Constructs a new instance of the dxPieChart class.
Example:
The following example creates a pie chart that shows the share of each region.
var pie = new dxPieChart();
pie.Options.dataSource = new[]
{
new { region = "Europe", sales = 4200 },
new { region = "Asia", sales = 3100 },
new { region = "Americas", sales = 5300 }
};
pie.Options.series = new { argumentField = "region", valueField = "sales" };
pie.Options.title = "Sales by region";
pie.Dock = DockStyle.Fill;
this.Controls.Add(pie);
dxPieChart(options)
Constructs a new instance of the dxPieChart class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a doughnut chart with a label connected to each segment.
var pie = new dxPieChart(new
{
type = "doughnut",
palette = "Soft Pastel",
dataSource = salesByRegion,
series = new
{
argumentField = "region",
valueField = "sales",
label = new { visible = true, connector = new { visible = true } }
}
});
pie.Dock = DockStyle.Fill;
this.Controls.Add(pie);