Skip to main content

igFinancialChart

Namespace: Wisej.Web.Ext.Ignite

Assembly: Wisej.Web.Ext.Ignite (4.1.0.0)

The igFinancialChart is an HTML5 control that is a simplified version of the igDataChart specialized in the visualization of financial data, i.e. stock prices and volumes over time.

public class igFinancialChart : igBase

Constructors​

Instance member igFinancialChart()​

Constructs a new instance of the igFinancialChart class.

Example:

The following example creates a financial chart and binds it to a list of items that have the time, open, high, low, close and volume fields.

var chart = new igFinancialChart();
chart.Options.dataSource = stockPrices;
chart.Options.chartType = "candle";
chart.Dock = DockStyle.Fill;
this.Controls.Add(chart);

Instance member igFinancialChart(options)​

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

NameTypeDescription
optionsObjectInitial set of options passed to the igFinancialChart widget: an anonymous object, a JSON string or a dynamic object.

Example:

The following example creates a candlestick chart that also shows the trading volume in a separate pane.

var chart = new igFinancialChart(new
{
dataSource = stockPrices,
chartType = "candle",
volumeType = "column",
zoomSliderType = "line"
});
chart.Dock = DockStyle.Fill;
this.Controls.Add(chart);

Implements​