Edit this page

render

Fired when the chart is ready to render on screen.

Can be used, for example, to remove loading indicators.

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

Calling setOptions in the event handler is not recommended and can cause an endless loop or a JavaScript error.

Event Data

e.sender kendo.dataviz.ui.Chart

The widget instance which fired the event.

Example - subscribe to the "render" event during initialization

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: [
    { value: 1 }
  ],
  series: [
    { field: "value" }
  ],
  render: function(e) {
    console.log("render");
  }
});
</script>

Example - subscribe to the "render" event after initialization

<div id="chart"></div>
<script>
function chart_render(e) {
  console.log("re");
}
$("#chart").kendoChart({
  dataSource: [
    { value: 1 }
  ],
  series: [
    { field: "value" }
  ]
});
var chart = $("#chart").data("kendoChart");
chart.bind("render", chart_render);
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy