series.legendItem.line.colorString

The color of the legend item of type line. 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, 1, 1), value: 100 },
            { date: new Date(2023, 1, 2), value: 105 },
            { date: new Date(2023, 1, 3), value: 98 }
        ]
    },
    categoryField: "date",
    series: [{
        type: "line",
        field: "value",
        legendItem: {
            line: {
                color: "#ff6800"
            }
        }
    }]
});
</script>
In this article
series.legendItem.line.color
Not finding the help you need?
Contact Support