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

Chart only showing the first 8 items

1 Answer 37 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 02 Apr 2012, 10:45 PM
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";
this.Page.Controls.Add(sqlDataSource);
RadChart1.DataSourceID = "myDataSource";
RadChart1.Series[0].DataYColumn = "AverageSoldPrice";
RadChart1.PlotArea.XAxis.DataLabelsColumn = "SearchDate";
RadChart1.DataBind();

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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Evgenia
Telerik team
answered on 05 Apr 2012, 02:57 PM
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.   

Regards,
Evgenia
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.
Tags
Chart (Obsolete)
Asked by
Bill
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or