This is a migrated thread and some comments may be shown as answers.

Series Color by group

2 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Monique
Top achievements
Rank 1
Monique asked on 05 Jun 2012, 01:57 PM
Hello everyone

Is there a way to set up a specific color to a serie? I am using a webservice.

I am bringing status, description and count... if I want put all that series with the estatus "disabled" in red...

I tried to work with my colors string array but the behavior it isn't standar
 series: [{ field: "count"}],
 seriesColors: ["#FF0000", "#0000FF", "#74DF00", "#DF3A01"],

2 Answers, 1 is accepted

Sort by
0
Pete
Top achievements
Rank 1
answered on 14 Aug 2012, 03:32 AM
I've got the same issue.  Was a good resolution ever found, or did you end up just having to build the series array manually?
0
Iliana Dyankova
Telerik team
answered on 14 Aug 2012, 06:22 PM
Hello guys,

You could set a specific color to the series via the color property. Like here: 
$("#chart").kendoChart({
  //....
  series: [{
    name: "World",
    color: "red",
    //...
    }, {
    name: "United States",
    color: "green",
    //...
  }]
});


Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Monique
Top achievements
Rank 1
Answers by
Pete
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Share this question
or