Help with X-Axis

Thread is closed for posting
2 posts, 0 answers
  1. FEST
    FEST avatar
    31 posts
    Member since:
    Jul 2011

    Posted 05 Aug 2011 Link to this post

    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,
  2. Peshito
    Peshito avatar
    590 posts

    Posted 10 Aug 2011 Link to this post

    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.

    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.

Back to Top