How Do I Assign Individual Colors to Bars in the silverlight

2 posts, 0 answers
  1. vijay
    vijay avatar
    46 posts
    Member since:
    Jul 2010

    Posted 20 Jul 2010 Link to this post



    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
  2. Sia
    Admin
    Sia avatar
    745 posts

    Posted 22 Jul 2010 Link to this post

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