dataBound

Fired when the widget is bound to data from its data source.

The event handler function context (available via the this keyword) will be set to the widget instance.

Event Data

e.sender kendo.dataviz.ui.Chart

The widget instance which fired the event.

Example - subscribe to the "dataBound" event during initialization

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: [
    { value: 1 }
  ],
  series: [
    { field: "value" }
  ],
  dataBound: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log("dataBound");
  }
});
</script>

Example - subscribe to the "dataBound" event after initialization

<div id="chart"></div>
<script>
function chart_dataBound(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log("dataBound");
}
$("#chart").kendoChart({
  autoBind: false,
  dataSource: [
    { value: 1 }
  ],
  series: [
    { field: "value" }
  ]
});
var chart = $("#chart").data("kendoChart");
chart.bind("dataBound", chart_dataBound);
chart.dataSource.fetch();
</script>
In this article
Not finding the help you need? Improve this article