Fixed Axis 0

2 posts, 0 answers
  1. Bárbara
    Bárbara avatar
    16 posts
    Member since:
    Nov 2015

    Posted 12 Feb Link to this post

    I have a LogarithmicAxis that has a minimum of 125 and maximum of 16000 but I need it to start at 0 and then go to 125,250... But as it is Logarithmic, if I put minimum to 0 I will have 0, 2,4...

    How can I achieve this?

  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 17 Feb Link to this post

    Hi Bárbara,

    In order to have labels 125, 250, 500, ..., you need to set a Minimum of 125 and a LogarithmicBase of 2. Having a zero on the logarithmic axis, however, is a no go. This is simply because a zero is an undefined value for the logarithmic axis.

    The labels of the axis, simply put, are 125 * (base^pow). In your case
    125 = 125 * 1     // 1 == 2^0
    250 = 125 * 2     // 2 == 2^1
    500 = 125 * 4     // 4 == 2^2
    1000 = 125 * 8     // 8 == 2^3

    And because you cannot get a 0 from 2^x, the 0 is undefined for the logarithmic axis. Let us know if you need more information.

    Regards,
    Petar Marchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top