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) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("render");
}
});
</script>
Example - subscribe to the "render" event after initialization
<div id="chart"></div>
<script>
function chart_render(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("re");
}
$("#chart").kendoChart({
dataSource: [
{ value: 1 }
],
series: [
{ field: "value" }
]
});
var chart = $("#chart").data("kendoChart");
chart.bind("render", chart_render);
</script>