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

Help with X-Axis

1 Answer 53 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
FEST
Top achievements
Rank 1
FEST asked on 05 Aug 2011, 11:11 AM
Hi Forum!

I connected a radchart to a sqldatasucer, from that datasource i'll get 11 rows and 2 columns where the frist column is name and second is value. it all goes right, but the x-axis is only showing the first 7 rows. I wwent to the plot area -> x-axis and saw property called max value, i dont think this is the property that is confining my rows but still, when i try to change its value it automaticly goes back to 7. Can anyone help me?

Many thanks,
   FEST

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 10 Aug 2011, 03:14 PM
Hi Fest,

In order to display a range of values along an axis set the AutoScale to false first and then set the axis MaxValue, MinValue and the Step. More about axes can be found here.

You could also use the AddRange method like this:
radChart.PlotArea.XAxis.AutoScale = false;
radChart.PlotArea.XAxis.AddRange(0, 100, 50);

Regarding your issue with not showing all the rows, I've created and attached a sample project using a DataTable with columns and rows similar to those you've described. Could you reproduce your issue there, so we can find what is causing it.

Regards,
Peshito
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Chart (Obsolete)
Asked by
FEST
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or