Series Color by group

3 posts, 0 answers
  1. Monique
    Monique avatar
    6 posts
    Member since:
    Mar 2012

    Posted 05 Jun 2012 Link to this post

    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. Pete
    Pete avatar
    3 posts
    Member since:
    Apr 2012

    Posted 13 Aug 2012 Link to this post

    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?
  3. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 14 Aug 2012 Link to this post

    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!
Back to Top