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

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

1 Answer 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 16 Jan 2013, 11:29 AM
Hi,

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?

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 21 Jan 2013, 10:07 AM
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.

Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Missing User
Share this question
or