Skip to main content

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.

public class igCategoryChart : igBase

Constructors​

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

Instance member igCategoryChart(options)​

Constructs a new instance of the igCategoryChart class using the specified options.

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

Implements​