Color each XCategory Item

2 posts, 0 answers
  1. Dario
    Dario avatar
    61 posts
    Member since:
    Apr 2011

    Posted 26 Mar 2013 Link to this post

    Can I choose single color for each XCategory Item?

    Thi is my chart

    <telerik:RadChart ItemsSource="{Binding Situazione}" Margin="2">
                    <telerik:ChartLegend UseAutoGeneratedItems="True" Visibility="Collapsed" />
                        <telerik:BarSeriesDefinition  />
                        <telerik:ItemMapping DataPointMember="YValue" FieldName="Conteggio" />
                        <telerik:ItemMapping DataPointMember="XCategory" FieldName="Tipo" />
  2. Missing user
    Missing user avatar

    Posted 29 Mar 2013 Link to this post

    Hi Dario,

    You should use the LegendDisplayMode property of the BarSeriesDefinition. Setting it to DataPointLabel will color each bar in a category with a different color, even though they belong to the same series, as shown in this help topic.

    Ivan N.
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top