GridLine spacing

4 posts, 0 answers
  1. Zero Gravity Chimp
    Zero Gravity Chimp avatar
    40 posts
    Member since:
    Dec 2009

    Posted 10 Dec 2009 Link to this post

    Hello

    I can see the way to change my horizontal and vertical grid-lines in the chartarea here:
    http://www.telerik.com/help/silverlight/radchart-styling-and-appearance-styling-chart-series.html

    My question is, how can I change the spacing between lines? It seems that there are between 4 and 7 points per gridline based on how large i make it, on a dataset of roughly 72 points.

    Is there a setting to change the spacing so that intersecting X and Y gridlines do not form squares?

    Please let me know if this is not clear enough - i want my gridlines further apart, basically :)

    Thank you,

    Chimp
  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 15 Dec 2009 Link to this post

    Hi,

    RadChart will draw a gridline for each major tick in both axes and the ticks are automatically placed by RadChart. You can disable the automatic calculation for any axis by setting the AutoRange property to false and use your own values for MinValue, MaxValue and Step (or call the AddRange method). This way you can configure the number of ticks for an axis and consequently - the number of the gridlines shown.
     
    Best regards,
    Ves
    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.
  3. Angshuman
    Angshuman avatar
    17 posts
    Member since:
    Nov 2010

    Posted 26 Nov 2010 Link to this post

    Is there a way to use AutoRange = true and just be able to set the step? I require to have n X n grids (major grid-lines on both the axes) on my chartarea for whatever the range the chart is currently having. Please let me know how to do that.
  4. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 30 Nov 2010 Link to this post

    Hi Angshuman,

    I am afraid this is not possible in RadChart. You can either leave the entire range/step calculation to the chart or take full manual control by setting AutoRange to false and set your own values for min, max and step.

    Best regards,
    Ves
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top