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

RadChartView StackedBar chart border with different width for the top, bottom, right, and left

1 Answer 107 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jake
Top achievements
Rank 1
Jake asked on 20 Nov 2012, 10:55 PM
I am trying to set the border on a stacked bar series so that it looks like there is only a border around the entire colume instead of each series blocks in silverlight.

For what I can recall from looking through the forums and documation the StackedBar100 series does not support different widths on the borders left, right, top, and bottom edges.

My plan is to change the style of the stacked bar series to include a border object.
Set the style to the StackedBar100SeriesDefinition.ItemStyle in the code behind where I am creating the chart.

What I need guidance on is the format of the style of the stackedbar100series items.
If someone could post a quick example of the style/theme XAML for the stackedbar100series, I believe, that would fix my problem.

Or an example of doing this in an easier maner.

Thanks for your help
-Jake

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 23 Nov 2012, 08:02 AM
Hi Jake,

The different bars of a StackedBar are represent by just Rectangles and they don't have a container that holds them.

In some themes the Rectangles have Stroke and in others they don't have. Since this "border" comes from the Rectangle class and you can't choose on which side you want the border to be displayed the RadChart does not support this either. 

However if you want you can explore the visual tree using a tool like XAML/Silverlight Spy and see for yourself if you can workaround this.
 
All the best,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Jake
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or