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

individual colors at bar chart

3 Answers 109 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 18 Sep 2010, 12:52 PM
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,
Igor

3 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 22 Sep 2010, 11:55 AM
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:

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

Hope this helps.

Greetings,
Evgenia
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
0
Mayra
Top achievements
Rank 1
answered on 25 Oct 2011, 03:42 PM
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.
0
Evgenia
Telerik team
answered on 28 Oct 2011, 12:43 PM
Hi Mayra,

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

Regards,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Chart
Asked by
Igor
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Mayra
Top achievements
Rank 1
Share this question
or