legend.item.area.backgroundString

The background color of the legend item. Accepts a valid CSS color string, including HEX and RGB. Defaults to the series color.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [
            { date: new Date(2023, 0, 1), value: 100 },
            { date: new Date(2023, 0, 2), value: 105 },
            { date: new Date(2023, 0, 3), value: 98 }
        ]
    },
    legend: {
        item: {
            area: {
                background: "#ff6347"
            }
        }
    },
    series: [{
        field: "value",
        categoryField: "date",
        name: "Stock Price"
    }]
});
</script>
In this article
legend.item.area.background
Not finding the help you need?
Contact Support