series.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({
dataSource: {
data: [
{ date: new Date(2000, 1, 1), open: 10, high: 15, low: 8, close: 12 },
{ date: new Date(2000, 1, 2), open: 12, high: 18, low: 10, close: 16 }
]
},
dateField: "date",
series: [{
type: "area",
field: "close",
legendItem: {
area: {
background: "lightblue"
}
}
}]
});
</script>
In this article