legend.item.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({
    legend: {
        item: {
            type: "area"
        }
    },
    series: [{
        type: "line",
        data: [
            { date: new Date(2023, 0, 1), value: 10 },
            { date: new Date(2023, 0, 2), value: 25 },
            { date: new Date(2023, 0, 3), value: 15 }             
        ],
    }]
});
</script>
In this article
legend.item.type
Not finding the help you need?
Contact Support