Bar chart zero scale alignment to be always at center

3 posts, 1 answers
  1. kity
    kity avatar
    71 posts
    Member since:
    Mar 2012

    Posted 29 Jan 2014 Link to this post

    Bar chart zero scale alignment to be always at center.

    I have two BarSeries for negative and positive values.

    How to place zero (0)  to be always in the center position. Like first
    (top) image?

    If intervals length of -> positive (from
    0 to +n) and negative (from -n to 0) are different, zero is not in center (see
    bottom image).

  2. kity
    kity avatar
    71 posts
    Member since:
    Mar 2012

    Posted 29 Jan 2014 Link to this post

    1. Intervals length are:
        N=> from -100 to 0
        P=> from  0 to 100
    HERE OK

    2. ​Intervals length are:
        N=> from -10 to 0
        P=> from  0 to 100

    HERE: How to place barchart to show me zero at center position?
  3. DevCraft banner
  4. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 03 Feb 2014 Link to this post

    Hi,

    You are right for the behavior of the linear axis. By default the axis calculates its minimum and maximum properties depending on your data. The only way to change that behavior is to manually set them to the desired values.

    Please give this approach a try and let us know if it works for you.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top