setOptions

Sets the widget options. Changes are cumulative.

Example

<div id="stock-chart"></div>
<script>
var stockChart = $("#stock-chart").kendoStockChart({
    dataSource: {
        data: [
            { date: "2012/01/01", open: 10, high: 15, low: 8, close: 12, volume: 1000 },
            { date: "2012/01/02", open: 12, high: 18, low: 10, close: 15, volume: 1200 }
        ]
    },
    dateField: "date",
    series: [{
        type: "candlestick",
        openField: "open",
        highField: "high", 
        lowField: "low",
        closeField: "close"
    }]
}).data("kendoStockChart");

// Update chart options
stockChart.setOptions({
    title: { text: "Updated Stock Chart" },
    legend: { visible: true }
});
</script>

Parameters

options Object

The chart settings to update.

In this article
setOptions
Not finding the help you need?
Contact Support