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

Style whole bar in a stacked bar chart series

1 Answer 13 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Allen
Top achievements
Rank 1
Allen asked on 16 Jan 2014, 06:56 AM
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

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 21 Jan 2014, 08:22 AM
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 >>
Tags
Chart
Asked by
Allen
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or