Chart does not show zero on X-Axis

6 posts, 0 answers
  1. Martin
    Martin avatar
    36 posts
    Member since:
    Sep 2010

    Posted 27 Feb 2012 Link to this post

    Hello,

    I use the radchart and I have a dataseries starting with 0.00.

    The problem is that the axis does not start with 0.00 but with 8.67...e-18. A very odd value thats not in my dataseries. And that looks kind of stange.
    I tried to avoid this by setting the AxisX.MinValue to 0.00 but that did not have any effect on the display.

    Can you give me a hint on this?

    Thanks,

    Martin
  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 01 Mar 2012 Link to this post

    Hello,

    Could you elaborate a bit more on this since we haven't faced such unwanted behavior with our axis before? Is this the automatic min value of the axis or you tried to set it manually?

    Greetings,
    Evgenia
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. Martin
    Martin avatar
    36 posts
    Member since:
    Sep 2010

    Posted 05 Mar 2012 Link to this post

    Hi Evgenia,

    this issue appears with the automatic min/max settings. If I switch off the automatic setting I can set manually my min/max values and thats working perfectly.

    But it would be nice to have this set automatically.

    Greetings,
    Martin
  5. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 08 Mar 2012 Link to this post

    Hello,

    The way YAxis automatic range works is that it searches for the min and max value in your data and makes an approximation of each of them. Since you have a very small number - the YAxis rounds it to the closest integer number - in this case 0.
    I hope this sheds light on the way automatic range works and why it's better to set the range automatically in your case.

    Greetings,
    Evgenia
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  6. Martin
    Martin avatar
    36 posts
    Member since:
    Sep 2010

    Posted 08 Mar 2012 Link to this post

    Hello,

    the automatic range gives me the  8.67...e-18 on the x-Asis. So it does not round to the closest integer number.

    Best regards,
    Martin
  7. Peshito
    Admin
    Peshito avatar
    496 posts

    Posted 12 Mar 2012 Link to this post

    Hi,

    As we haven't faced such unwanted behavior, could you please send us a small runnable project isolating the problem, so we could provide you with an appropriate solution.

    Thank you in advance.

    Kind regards,
    Peshito
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top
DevCraft banner