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

[Solved] Remove chart X and Y axis

4 Answers 210 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Paul Tran
Top achievements
Rank 1
Paul Tran asked on 10 Dec 2009, 09:20 PM
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

4 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 11 Dec 2009, 07:36 AM
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.

0
Paul Tran
Top achievements
Rank 1
answered on 14 Dec 2009, 07:47 PM
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.



0
Ves
Telerik team
answered on 15 Dec 2009, 07:56 AM
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.
0
Paul Tran
Top achievements
Rank 1
answered on 15 Dec 2009, 03:57 PM
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!
Tags
Chart (Obsolete)
Asked by
Paul Tran
Top achievements
Rank 1
Answers by
Ves
Telerik team
Paul Tran
Top achievements
Rank 1
Share this question
or