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

Chart lines acting funny

2 Answers 35 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Web Services
Top achievements
Rank 2
Web Services asked on 09 Mar 2012, 06:40 PM
I'm pretty sure I have things hidden properly, but I still have some lines showing on the xaxis. Can you tell me how to hide them? You can see them here http://cnppid.intellicomweb.com/Graphs/McCounaughy_One-Year.aspx they are the lines right above the month labels
, they're right on the bottom of the x axis. This is what I have in my code

mychart.PlotArea.XAxis.Appearance.MajorGridLines.Visible = False
        mychart.PlotArea.XAxis.Appearance.MinorGridLines.Visible = False

2 Answers, 1 is accepted

Sort by
0
Web Services
Top achievements
Rank 2
answered on 13 Mar 2012, 08:32 PM
I figured out that those are ticks and I need to hide them. I accomplished that with this. Appearance-MajorTick-Visible="false"

However, now I need to set only specific ticks visible and I can't find anywhere on your site to do that. I'm adding the label like so

mychart.PlotArea.XAxis(i("count")).TextBlock.Text = Format(labelDate, "MM/d/yyyy")
                    mychart.PlotArea.XAxis(i("count")).Appearance.RotationAngle = 270
                    mychart.PlotArea.XAxis(i("count")).TextBlock.Appearance.TextProperties.Color = Color.Black


How do I set that tick visible?


0
Evgenia
Telerik team
answered on 14 Mar 2012, 09:26 AM
Hi,

Unfortunately it is not possible to loop through the MajorTicks or MinorTicks and control the visibility of some of them. You can either make all of them visible or none:

RadChart1.PlotArea.YAxis.Appearance.MajorTick.Visible = false;
RadChart1.PlotArea.YAxis.Appearance.MinorTick.Visible = false;

I'm sorry but I can't provide you with any workaround.

All the best,
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
Web Services
Top achievements
Rank 2
Answers by
Web Services
Top achievements
Rank 2
Evgenia
Telerik team
Share this question
or