Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
TickMarks without gray horizontal line
posted

Does anyone know how I can keep my tickmarks on my Y2 axis but get rid of the gray horizantal line that goes across at each interval? I have a column chart and a line charts and the gray horizontal lines don't always match up (Even thought I have the tickmarks set to "smart", so rather than figure out how to get them to always match, I'm trying to delete the horizontal line from the Y@ axis...but I want to keep the tickmarks values on the actual Y2 axis. Thanks!

 

 Dim axis4 As New AxisItem()
                axis4.OrientationType = AxisNumber.Y2_Axis
                axis4.DataType = AxisDataType.Numeric
                axis4.SetLabelAxisType = SetLabelAxisType.GroupBySeries
                axis4.Labels.ItemFormatString = "<DATA_VALUE:0.##>"
                axis4.Labels.HorizontalAlign = Drawing.StringAlignment.Near
                axis4.Labels.VerticalAlign = Drawing.StringAlignment.Center
                axis4.Labels.Orientation = TextOrientation.Horizontal
                axis4.LineColor = Drawing.Color.Black
                axis4.LineThickness = 1
                 myChartArea.Axes.Add(axis4)

 

  • 28496
    Offline posted

     i think you are talking about the MajorGridlines, which you can disable with axis4.MajorGridlines.Visible = false