Line Chart shows negative axis labels

Thread is closed for posting
2 posts, 0 answers
  1. Matthew Timbs
    Matthew Timbs avatar
    17 posts
    Member since:
    Aug 2009

    Posted 23 Nov 2009 Link to this post

    I'm using a Line chart, and when the values I pass in are all 0's then I see both positive and negative values on the Y axis.  I'm trying to  prevent this so that all I see are positive values. 

    I've tried setting IsZeroBased="true" and MinValue="0" but neither seem to take effect unless I set AutoScale="false".  I have no idea what the values might be so I really need the autoscale feature.  I do know that they'll never be negative.


    here's the "Y AXIS" portion of my markup:

      <YAxis IsZeroBased="true" >
                </YAxis>

    Thanks...

    --Matt



  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 24 Nov 2009 Link to this post

    Hi Matthew,

    Indeed your observations are correct -- you need to set AutoScale="false" in order to customize the axis value range in this scenario. You can disable the AutoScale in case all values are 0s, and re-enable it once you are showing "real" values).


    All the best,
    Manuel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top