Skip to main content

kendoStockChart

Namespace: Wisej.Web.Ext.Kendo

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

The StockChart is a specialized control visualizing the price movement of any financial instrument over a certain period of time.

public class kendoStockChart : kendoBase

Constructors​

Instance member kendoStockChart()​

Constructs a new instance of the kendoStockChart class.

Example:

The following example creates a candlestick stock chart and binds it to a list of daily quotes through the Options property.

var chart = new kendoStockChart();
chart.Options.dataSource = quotes;
chart.Options.dateField = "date";
chart.Options.series = new[]
{
new { type = "candlestick", openField = "open", highField = "high", lowField = "low", closeField = "close" }
};
chart.Dock = DockStyle.Fill;
this.Controls.Add(chart);

Instance member kendoStockChart(options)​

Constructs a new instance of the kendoStockChart class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a stock chart with a title and a navigator that shows the closing price.

var chart = new kendoStockChart(new
{
title = new { text = "ACME Inc." },
dataSource = quotes,
dateField = "date",
series = new[]
{
new { type = "candlestick", openField = "open", highField = "high", lowField = "low", closeField = "close" }
},
navigator = new
{
series = new { type = "area", field = "close" }
}
});
chart.Dock = DockStyle.Fill;
this.Controls.Add(chart);

Implements​