series.dataArray
Array of data items. The data item type can be either a:
- Array of objects. Each point is bound to the specified series fields.
- Array of numbers. Available for area, column and line series.
- Array of arrays of numbers. Available for:
- OHLC and candlestick series (open, high, low, close)
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
series: [{
type: "line",
data: [
{ date: new Date(2016, 0, 1), close: 41 },
{ date: new Date(2016, 0, 2), close: 42 },
{ date: new Date(2016, 0, 3), close: 43 }
],
field: "close",
categoryField: "date",
name: "Price"
}]
});
</script>