individual colors at bar chart

4 posts, 0 answers
  1. Igor
    Igor avatar
    1 posts
    Member since:
    Aug 2010

    Posted 18 Sep 2010 Link to this post

    I have a bar chart (BarSeriesDefinition). How to set an individual color for each data point (bar) ?

    Is that possible for 3D chars also?

    Best regards,
  2. Evgenia
    Evgenia avatar
    1437 posts

    Posted 22 Sep 2010 Link to this post

    Hi Igor,

    Thanks for contacting us. To be able to set different color for each datapoint (bar) you need to set the LegendDisplayMode property to DataPointLabel as this will display an item for each DataPoint in your series and each series item will be marked with a different color. You can set it for 3D bar chart like this:

    RadChart1.DefaultSeriesDefinition = new Bar3DSeriesDefinition();
    this.RadChart1.DefaultSeriesDefinition.LegendDisplayMode = LegendDisplayMode.DataPointLabel;
    this.RadChart1.ItemsSource = new int[] { 1, 5, 6, 9, 5, 7 };

    Hope this helps.

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Mayra
    Mayra avatar
    18 posts
    Member since:
    Oct 2011

    Posted 25 Oct 2011 Link to this post

    I have current a series with Y axis (number) and x axis ( percent) 
    Can you please provide a example on how to have one series with different colors for the axis? In other words, Percent less than zero one color and percent greater than 0 other color. 
    I would really appreciate your help.
  4. Evgenia
    Evgenia avatar
    1437 posts

    Posted 28 Oct 2011 Link to this post

    Hi Mayra,

    Your scenario looks pretty much like our MVVM demo. You may also find our online documentation helpful for achieving this.

    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top