setOptions

Sets the widget options. Changes are cumulative.

The setOptions method recreates and rebinds the Chart instance. Calling setOptions in a Chart event handler is not recommended and can cause an endless loop or a JavaScript error.

Parameters

options Object

The chart settings to update.

Example - change the chart theme

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  theme: "black",
  series: [{
    data: [1, 2, 3]
  }]
});

var chart = $("#chart").data("kendoChart");
chart.setOptions({ theme: "uniform" });
</script>
In this article