Chart XAxis Issues

Thread is closed for posting
2 posts, 1 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 04 Dec 2009 Link to this post


    I have yearly data to display on a chart.  The data starts from 2003 to the current year.  How can I get this to display correctly as it's currently ignoring the settings I've used below:

    <tel:RadChart ID="c" runat="server" SkinID="Office2007" Width="790px">
                    <XAxis MinValue="2003" Step="1" />
                <ChartTitle Visible="false" />

    The XAxis MaxValue is being established via code, as it changes from year to year.  FYI, this is in an MVC view, but I didn't think it was much different than web forms so I posted this question here.

    The desired result is to have an XAxis with 6 entries, 2003 to 2009, in a one step process, and have each year appear next to each other.  What I get is a range from 0 to 3000 in 500 step increments.  What is setup incorrectly?

  2. Answer
    Vladimir Milev
    Vladimir Milev avatar
    1061 posts

    Posted 08 Dec 2009 Link to this post

    Hi Brian Mains,

     If you want to manually set the range of the XAxis you should use MinValue, MaxValue and Step to configure it to your liking. Also, it is very important to make sure that you have AutoScale=false so that the RadChart control knows you are manually setting these values.

    Vladimir Milev
    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