Multiple XCategories in every XCategory

2 posts, 0 answers
  1. Mattias
    Mattias avatar
    6 posts
    Member since:
    Aug 2009

    Posted 20 Aug 2009 Link to this post


    I am trying to add multiple barseries where each of them also have another serie that belongs to it.

    So basically what I want to do is to have the line (or point) value to be directly above or below the bar that the serie belongs to. Right now the bars are standing next to each other (just like i want them to) but the lines or points that are connected to each bar serie is located in the middle of the XCategory and not in correlation with the bar.

    I am assuming that this happens since bar are not drawn on top of each other but lines and points are. So if there is any way to prevent this that would be helpful.

    What I want to achieve in the end is to show min/max and standard deviation values for an average bar, so in case there are better ways to do this I would be glad to hear about that too.

    Thanks in advance,
  2. Ves
    Ves avatar
    2926 posts

    Posted 24 Aug 2009 Link to this post

    Hi Mattias,

    I am afraid this is not supported by RadChart out of the box. Still, it is possible to achieve such chart. You will need to use bubble series and apply individual transform to each bubble. You can apply a style the  BubbleSeriesDefinition object in order to shift the bubbles. The weak side of this approach is that it would require a precise calculation of the number of pixels. Here is an example, where offsetX should be calculated additionally:

    Style myStyle = new Style();  
    Setter setter = new Setter(Bubble.RenderTransformProperty, new TranslateTransform(offsetX, 0));  
    MyBubbleSeriesDefinition.ItemStyle = myStyle;  

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top