dataSourcekendo.data.DataSource

The data source of the widget. Configured via the dataSource option.

Changes of the data source will be reflected in the widget.

Assigning a new data source would have no effect. Use the setDataSource method instead.

Example - add a data item to the data source

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: [
    { value: 1 }
  ],
  series: [
    { field: "value" }
  ]
});
var chart = $("#chart").data("kendoChart");
chart.dataSource.add({ value: 2 });
</script>

Example - remove a data item from the data source

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: [
    { value: 1 },
    { value: 2 }
  ],
  series: [
    { field: "value" }
  ]
});
var chart = $("#chart").data("kendoChart");
var data = chart.dataSource.at(0);
chart.dataSource.remove(data);
</script>
In this article
dataSource
Not finding the help you need?
Contact Support