seriesDefaults.legendItem.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({
dateField: "date",
seriesDefaults: {
legendItem: {
area: {
background: "blue"
}
}
},
series: [{
type: "area",
color: "red",
data: [
{ date: new Date(2000, 1, 1), value: 300 },
{ date: new Date(2000, 1, 2), value: 200 }
]
}]
});
</script>
In this article