x-axis labels visibility

Thread is closed for posting
3 posts, 1 answers
  1. Sonia
    Sonia avatar
    90 posts
    Member since:
    Mar 2012

    Posted 22 Apr 2013 Link to this post

    Although i have coded the x-axis label to be hidden, it is still visible in my application.

    This is the statement.
    chart.PlotArea.XAxis.AxisLabel.Visible = false;

    What i am doing wrong?
  2. Answer
    Ves
    Admin
    Ves avatar
    2879 posts

    Posted 25 Apr 2013 Link to this post

    Hi Sonia,

    This code does hide successfully the axis label at our end. Still, if you need to hide the axis item labels i.e. the values along the axis you should use this line:

    chart.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false;


    Regards,
    Ves
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sonia
    Sonia avatar
    90 posts
    Member since:
    Mar 2012

    Posted 26 Apr 2013 Link to this post

    I though that setting AxisLabel.Visible to false hides the items. Your post has helped me to understand that this is different from the item labels.
    Thank you.
Back to Top