Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Bar Series - reverse order, space bettwen bars, text on bars
posted

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?

Parents
No Data
Reply
  • 30692
    Verified Answer
    Offline posted

    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

Children