This topic demonstrates the Price Pane of the igFinancialChart control.
The above screenshot highlights the Price Pane of the chart and the drop down that is used to adjust the chart type at run time. In addition to rendering prices the Price Pane also makes use of trendlines and financial overlays. The supported chart types for this pane are:
Auto
Bar(OHLC)
Candle
Column
Line
By default, ChartType
is set to Auto, which means the chart will choose the chart type based on the data. You can set the chart type through code as follows:
In JavaScript
$("#financialChart").igFinancialChart({
dataSource: data,
chartType: "column",
brushes: ["Red"],
outLines: ["Green"],
thickness: 2
});
$("#financialChart").igFinancialChart("option", "chartType", "column");
$("#financialChart").igFinancialChart("option", "brushes", ["Red"]);
$("#financialChart").igFinancialChart("option", "outLines", ["Green"]);
$("#financialChart").igFinancialChart("option", "thickness", 2);
View on GitHub