igPieChart
Namespace: Wisej.Web.Ext.Ignite
Assembly: Wisej.Web.Ext.Ignite (4.1.0.0)
The igPieChart is a charting control for rendering pie charts in HTML5 Web applications and sites.
- C#
- VB.NET
public class igPieChart : igBase
Public Class igPieChart
Inherits igBase
Constructors
igPieChart()
Constructs a new instance of the igPieChart class.
Example:
The following example creates a pie chart and configures it through the Options object.
var chart = new igPieChart();
chart.Options.dataSource = marketShare;
chart.Options.labelMemberPath = "Company";
chart.Options.valueMemberPath = "Share";
chart.Size = new Size(400, 400);
this.Controls.Add(chart);
igPieChart(options)
Constructs a new instance of the igPieChart class using the specified options.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options passed to the igPieChart widget: an anonymous object, a JSON string or a dynamic object. |
Example:
The following example creates a pie chart that displays the labels outside of the slices and lets the user explode a slice by clicking it.
var chart = new igPieChart(new
{
dataSource = new[]
{
new { Company = "Contoso", Share = 45 },
new { Company = "Fabrikam", Share = 30 },
new { Company = "Northwind", Share = 25 }
},
labelMemberPath = "Company",
valueMemberPath = "Share",
labelsPosition = "outsideEnd",
allowSliceExplosion = true
});
chart.Size = new Size(400, 400);
this.Controls.Add(chart);