Remove chart X and Y axis

Thread is closed for posting
5 posts, 0 answers
  1. Paul Tran
    Paul Tran avatar
    13 posts
    Member since:
    Jul 2009

    Posted 10 Dec 2009 Link to this post

    Hi,

    I am currently using the Radchart object to simulate a progress bar. I was able to do it. Now, I want to remove the X and Y axis scale, as you can see on the attached image. Is there a way to remove them?

    Thanks,
    Paul
  2. Ves
    Admin
    Ves avatar
    2927 posts

    Posted 11 Dec 2009 Link to this post

    Hello Paul,

    RadChart1.PlotArea.XAxis.Visible = true; and RadChart1.PlotArea.YAxis.Visible = true; should do the trick.
     
    Regards,
    Ves
    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.

  3. Paul Tran
    Paul Tran avatar
    13 posts
    Member since:
    Jul 2009

    Posted 14 Dec 2009 Link to this post

    HI,

    I tried your solution in my code behind:

    WeightProgressionChart.PlotArea.XAxis.Visible = ChartAxisVisibility.False;
    WeightProgressionChart.PlotArea.YAxis.Visible = ChartAxisVisibility.False;

    I also tried this in my page:

    <PlotArea XAxis-Visible="False" YAxis-Visible="False">

    Both solutions did not work. My screen loads indefinitely without showing any errors.



  4. Ves
    Admin
    Ves avatar
    2927 posts

    Posted 15 Dec 2009 Link to this post

    Hi Paul,

    You can find attached a small example. I am sorry about this -- of course it should be Visible = false. Still, the attached page works as expected for me. It is not likely that hiding the axes would hang the page. If the example does not seem to help, can you please send a sample of the hanging page in a support ticket, so we can investigate it? Thanks.
     
    All the best,
    Ves
    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.
  5. Paul Tran
    Paul Tran avatar
    13 posts
    Member since:
    Jul 2009

    Posted 15 Dec 2009 Link to this post

    Hi,

    I found the problem, there's seems to be a bug when I try to remove the axis and the AutoLayout is set to true. I removed this property from the RadChart and it works perfectly.

    Thanks for the help!
Back to Top