seriesDefaults.legendItem.typeString

Sets the type of the legend items. The default value is based on the series type.

The supported values are:

  • "line"—the legend items are rendered as a line. This is the default value for line charts.
  • "area"—the legend items are rendered as a filled rectangle. This is the default value for area charts.

Example

<div id="stock-chart"></div>
<script>
$("#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",
    seriesDefaults: {
        legendItem: {
            type: "area"
        }
    },
    series: [{
        type: "line",
        openField: "open",
        highField: "high", 
        lowField: "low",
        closeField: "close"
    }],
    legend: {
        visible: true
    }
});
</script>
In this article
seriesDefaults.legendItem.type
Not finding the help you need?
Contact Support