legendObject
The chart legend configuration options.
The colors assigned to individual points are not reflected in the legend for series-based charts (e.g. column, line, bar). The legend items are tied to the series, not to individual points, except in cases like pie or donut charts where each point has a dedicated legend item.
Example - configure the chart legend
<div id="chart"></div>
<script>
$("#chart").kendoChart({
legend: {
background: "green",
position: "left",
labels: {
font: "20px sans-serif",
color: "red"
}
},
series: [
{ name: "Series 1", data: [1, 2, 3] },
{ name: "Series 2", data: [3, 4, 5] }
]
});
</script>
In this article