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.
- C#
- VB.NET
public class igFinancialChart : igBase
Public Class igFinancialChart
Inherits igBase
Constructors
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);
igFinancialChart(options)
Constructs a new instance of the igFinancialChart class using the specified options.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);