Chart only showing the first 8 items

Thread is closed for posting
2 posts, 1 answers
  1. Bill
    Bill avatar
    4 posts
    Member since:
    Mar 2009

    Posted 02 Apr 2012 Link to this post

    This is my first time trying out RadChart. I have a very simple chart (that followed the example in the documentation section):

    <telerik:RadChart ID="RadChart1" runat="server" DefaultType="Line" />

    The code behind does a simple database query:

    SqlDataSource sqlDataSource = new SqlDataSource();
    sqlDataSource.ID = "myDataSource";
    sqlDataSource.ConnectionString = "<snip>";
    sqlDataSource.SelectCommand = "select convert(varchar(10),SearchDate,101) as SearchDate, AverageSoldPrice from SearchResult where SearchId = 1 order by SearchDate";
    RadChart1.DataSourceID = "myDataSource";
    RadChart1.Series[0].DataYColumn = "AverageSoldPrice";
    RadChart1.PlotArea.XAxis.DataLabelsColumn = "SearchDate";

    If I execute that line in the database, I get 30 rows back. However, when the chart is created, I only have the first 8 items shown, labeled 0 through 7. Why are the others missing, and how can I get the actually dates to be displayed?
  2. Answer
    Evgenia avatar
    1398 posts

    Posted 05 Apr 2012 Link to this post

    Hi Bill,

    Since you've always asked this question in the support thread (Ticket ID: 530017), I suggest that we continue our further communication there and avoid duplicate threads.   

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Telerik UI for ASP.NET Core is out
Back to Top