Style whole bar in a stacked bar chart series

2 posts, 0 answers
  1. Allen
    Allen avatar
    18 posts
    Member since:
    Apr 2013

    Posted 16 Jan 2014 Link to this post

    Hi,

    Is there a neat way to style a whole entire bar(that encompasses all the series) instead of an individual bar in a bar stacked series?

    Looking at the attached image I will like to make a nice outline colour around the whole bar.

    I am using Marked Zones to have the nice effect around the bar but was just wondering if there was a neater way of doing this.

    Thanks
  2. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 21 Jan 2014 Link to this post

    Hi Allen,

    I suggest that you set the Border via Style like this:
    <Style x:Key="StackedBarStyle" TargetType="Shape">
        <Setter Property="BorderBrush" Value="Orange" />
       <Setter Property="BorderThickness" Value="2" />
    </Style>

    Then apply the style in code-behind:
    this.radChart.DefaultView.ChartArea.SeriesStyles.StackedBarSeriesStyle = this.Resources[ "StackedBarStyle" ] as Style;


    Regards,
    Evgenia
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top