setOptions

Sets the widget options. Changes are cumulative.

Parameters

options Object

The chart settings to update.

Example - change the chart theme

<span id="sparkline"></span>
<script>
$("#sparkline").kendoSparkline({
  theme: "black",
  data: [1, 2, 3]
});

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