RadChart - Progamatically datapoint color

2 posts, 0 answers
  1. Nuno
    Nuno avatar
    6 posts
    Member since:
    Sep 2012

    Posted 20 Oct 2012 Link to this post

    I'm working with a progrmatically radchart.
    The problem i'm facing is how to set the color for each datapoint on the Dataseries?
    Is it possible to, programatically, add a different color to each datapoint?

    InvokeOperation<Dictionary<string, int>> MonthFamily = dbcontext.GetTestCaseResultsByFamilyByDay(day, month, year);
    foreach (var monthFamily in MonthFamily.Value)
    new DataPoint(monthFamily.Key.TrimEnd(), monthFamily.Value) { LegendLabel = monthFamily.Key.TrimEnd() });

  2. Petar Kirov
    Petar Kirov avatar
    425 posts

    Posted 24 Oct 2012 Link to this post

    Hello Nuno,

    In this demo you find an example of binding the data point color to a property of the underlying data item.


    Petar Kirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top