Bar series Legend's color problem

2 posts, 0 answers
  1. Dts
    Dts avatar
    12 posts
    Member since:
    Apr 2013

    Posted 15 May 2013 Link to this post

        I have successfully added  RadLegends to RadChartView.
       The items in the legend showing colors same respective to the all series except for Bar series.
    E.g. Legend Item for line series showing same color as line series and same is true for other series like Area,SplineLine.
    But in case of Bar series it is showing by default Blue color.
    I am applying colors for Bar series by modifying template.
    Can you help me regarding this topic?
    Thank You.
  2. Petar Marchev
    Petar Marchev avatar
    996 posts

    Posted 17 May 2013 Link to this post


    When you use a template for the bar visuals there is virtually no way for the chart to know what color it should pick for the legend item. I think that the easiest way to go here is not to set legend settings for the bar series. This will result in no legend item displayed for the bar series. Then you can manually place a RadLegend with one legend item, above or below the other RadLegend in a stack panel.

    Another approach would be not to use a template for the bar visuals but use the DefaultVisualStyle property of the BarSeries instead. If this is possible, this is the solution I suggest. 

    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top