If i add some barseries to chart its arrange from bottom to top. Can i change this behavior that first added series will be at top and last - at bottom? Additionally I want same order in legend.
Additional questions:
1. How I can change distance between bars from others BarSeries (I have many series with single bar)?
2. How I can insert text in bars or near it?
Hi,
Try setting IsInverted on the y axis.
I can't recall if this affects the legend, there may have been a seperate property for that. Let me know if this works out for you.
For text over the bars, you could put text in a DataTemplate and assign it as the MarkerTemplate of the series. Setting a negative left margin would shift this value into the bars, but you will run into all sorts of interesting issues with short bars, etc. So you may find it more useful to have it displayed to the right and adjust the MaximumValue of the y axis to leave room for the labels. Or to convey your infromation in a tooltip, alternatively.
-Graham
Thanks for your answer. But what about space between bars?
Next question: how do I make the height of bars is not changed, but stay always the same? Now if I add one bar it take all space, if i have two bars each take 50% of space and etc.
Hello,
Thank you for your feedback. I have been looking into your reply and I can suggest using the Gap property of the CategoryYAxis. You can see more detailed description of that property at the follows forum thread: http://forums.infragistics.com/forums/t/64714.aspx.
Regarding your other question, you can add a style for Rectangle to the Resources of the BarSereis and add a Setter for the MaxHeight property. By doing so, you can restrict the maximum height of the bars in the series. I have created a sampel application for you that demonstrates the approach, I have described.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
I am just checking if you require any further assistance on the matter.