how to hide horizontal line on the logarithmic y-axis at value 1

2 posts, 0 answers
  1. Peter
    Peter avatar
    1 posts
    Member since:
    Sep 2011

    Posted 16 Jan 2013 Link to this post


    I have a telerik radchart with a logarithmic y-axis.
    The scale range is between 0.001 and 100.
    I made ​​all grid lines invisible. But at value 1 there is still a horizontal grid line visible.
    if i switch this grid line invisible via: 

    Style style = new Style(typeof(System.Windows.Shapes.Line));
    style.Setters.Add(new Setter() { Property = System.Windows.Shapes.Line.StrokeThicknessProperty, Value = 0 });
    yAxis.AxisStyles.StripLineStyle = style;

    the horzontal gridline disappears.
    But the vertical y-axis line disappears too.

    What can i do to hide the horizontal line at value 1, without hiding the vertical y-axis line?
  2. Missing user
    Missing user avatar

    Posted 21 Jan 2013 Link to this post

    Hello Peter,

    You can use the following line of code:
    this.RadChart1.DefaultView.ChartArea.AxisY.PlotAreaAxisVisibility = Visibility.Collapsed;

    Kind regards,
    Ivan N.
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top