igCategoryChart
Namespace: Wisej.Web.Ext.Ignite
Assembly: Wisej.Web.Ext.Ignite (4.1.0.0)
The igCategoryChart is an HTML5 control that is a simplified version of the igDataChart.
- C#
- VB.NET
public class igCategoryChart : igBase
Public Class igCategoryChart
Inherits igBase
Constructors
igCategoryChart()
Constructs a new instance of the igCategoryChart class.
Example:
The following example creates a category chart and configures it through the Options object.
var chart = new igCategoryChart();
chart.Options.dataSource = monthlySales;
chart.Options.chartType = "column";
chart.Dock = DockStyle.Fill;
this.Controls.Add(chart);
igCategoryChart(options)
Constructs a new instance of the igCategoryChart class using the specified options.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options passed to the igCategoryChart widget: an anonymous object, a JSON string or a dynamic object. |
Example:
The following example creates a line chart. The chart generates one series for each numeric field in the data items.
var chart = new igCategoryChart(new
{
dataSource = new[]
{
new { Month = "Jan", Revenue = 120, Expenses = 80 },
new { Month = "Feb", Revenue = 135, Expenses = 90 },
new { Month = "Mar", Revenue = 150, Expenses = 85 }
},
chartType = "line",
yAxisTitle = "Thousands of USD"
});
chart.Dock = DockStyle.Fill;
this.Controls.Add(chart);