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

2 posts, 0 answers
  1. Jake
    Jake avatar
    1 posts
    Member since:
    Nov 2012

    Posted 20 Nov 2012 Link to this post

    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
  2. Petar Kirov
    Petar Kirov avatar
    425 posts

    Posted 23 Nov 2012 Link to this post

    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.

Back to Top