seriesColorsArray
The default colors for the chart's series. When all colors are used, new colors are pulled from the start again.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
dataSource: {
data: [
{ date: new Date(2023, 1, 1), value1: 100, value2: 80 },
{ date: new Date(2023, 1, 2), value1: 105, value2: 85 },
{ date: new Date(2023, 1, 3), value1: 98, value2: 90 }
]
},
categoryField: "date",
seriesColors: ["#ff6800", "#33cc33", "#0066cc"],
series: [
{ type: "line", field: "value1", name: "Series 1" },
{ type: "line", field: "value2", name: "Series 2" }
]
});
</script>
In this article