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