I have my customized colors for lines and legend. What I need to know is how can I set the color arrangement for the series color in line chart. As I observed it has their own random arrangement for the colors.
My sample array of colors:
var myColors = ["lightblue", "pink", "yellow", "green", "orange", "red", "teal"];
whenever I load an dataSeries the color will randomly select an color.
I need to set my color per key, for example:
Test 1 = "lightblue", Test 2 = "pink", Test 3 = "yellow"....
In the series color defaults will generate colors randomly not based on my customized colors.
Question, is what I need to do to set my customized array of colors?
How can I accomplish this?
sample code:
$("#chart").kendoChart({
title: { text: "MyChart" },
theme: "Metro",
dataSource: dataSeries,
seriesColors: ["lightblue", "pink", "yellow", "green", "orange", "red", "teal"],
//seriesColors: myColor,
series: [{
type: "line",
field: "value()",
categoryField: "Date",
name: "#= group.value #",
color: "red",
markers: {
type: 'circle',
visible: true,
background: 'black',
size: 5
}
}],
Hope to hear from you. I need this to be done as my project is urgent.
Thanks!
Regards,
Jerson