This is a migrated thread and some comments may be shown as answers.

Chart XAxis Issues

1 Answer 77 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 04 Dec 2009, 03:54 PM
Hello,

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">
            <PlotArea>
                <XAxis MinValue="2003" Step="1" />
            </PlotArea>
            <ChartTitle Visible="false" />
</tel:RadChart>

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?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir Milev
Telerik team
answered on 08 Dec 2009, 12:15 PM
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.


Greetings,
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.
Tags
Chart (Obsolete)
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or