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

How Do I Assign Individual Colors to Bars in the silverlight

1 Answer 65 Views
Chart
This is a migrated thread and some comments may be shown as answers.
vijay
Top achievements
Rank 1
vijay asked on 20 Jul 2010, 01:00 PM


Hi,

I am using rad chart and i have to assign the individual colors to the bars appearing in the chart in the runtime
but i am using one series mapping and i am getting the values from data base based on the count i have to display the bars.

I have find a solution for assigning the colors using palette brushes for single series ..but here the scenario is not like that
i want one bar for one series and i want to change the color in each series.

Like the same scenario i want in silverlight
http://www.telerik.com/help/aspnet-ajax/howtoassigncolors.html



Thanks
VIjay
Kommalapati

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 22 Jul 2010, 09:54 AM
Hi vijay,

Try setting:
chart.DefaultSeriesDefinition.LegendDisplayMode = LegendDisplayMode.DataPointLabel;
where chart is your RadChart.

More information about the LegendDisplayMode you can find in our help.
 
Greetings,
Sia
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
Tags
Chart
Asked by
vijay
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or