seriesDefaults.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({
seriesDefaults: {
legendItem: {
line: {
color: "#ff0000"
}
}
},
series: [{
type: "line",
data: [
{ date: new Date(2023, 0, 1), value: 10 },
{ date: new Date(2023, 0, 2), value: 20 },
{ date: new Date(2023, 0, 3), value: 15 }
]
}]
});
</script>