Chart lines acting funny

Thread is closed for posting
3 posts, 0 answers
  1. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 09 Mar 2012 Link to this post

    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 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. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 13 Mar 2012 Link to this post

    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?

  3. Evgenia
    Evgenia avatar
    1437 posts

    Posted 14 Mar 2012 Link to this post


    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,
    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.
Back to Top