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 - set the chart series data as array of objects

<div id="stock-chart"></div>
<script>
  $("#stock-chart").kendoStockChart({
    series: [
      {
        type: "candlestick",
        data: [{
          open: 2,
          high: 4,
          low: 1,
          close: 3
        }]
      }
    ],
    categoryAxis: {
      categories: [
        new Date(2012, 1, 1)
      ]
    }
  });
  </script>

Example - set the chart series data as array of arrays

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
series: [
  {
    type: "candlestick",
    data: [2, 4, 1, 3]
  }
],
categoryAxis: {
  categories: [
    new Date(2012, 1, 1)
  ]
}
});
</script>
In this article