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

Multiple XCategories in every XCategory

1 Answer 38 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 20 Aug 2009, 12:42 PM
Hi,

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,
Mattias

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 24 Aug 2009, 07:56 AM
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));  
myStyle.Setters.Add(setter);  
MyBubbleSeriesDefinition.ItemStyle = myStyle;  

Sincerely,
Ves
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.
Tags
Chart
Asked by
Mattias
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or