Jump to content
Software FX Community

Remove all grid lines, including zero point


kknight

Recommended Posts

I have a scatterplot that I want divided into quadrants. 

To do so, I have removed all grid lines and added two custom grid lines, one on the x axis and one on the y axis.

If my data has negative points, a grid line is being displayed at the zero point on either the x or y axis.

How can I remove this zero grid line?

 

Attached is the code I am using:

Dim xGridLine As New CustomGridLine((cht.AxisX.Max + cht.AxisX.Min) / 2, "")

Dim yGridLine As New CustomGridLine((cht.AxisY.Max + cht.AxisY.Min) / 2, "")

xGridLine.Color = Color.LightSteelBlue

yGridLine.Color = Color.LightSteelBlue

cht.AxisX.CustomGridLines.Add(xGridLine)

cht.AxisY.CustomGridLines.Add(yGridLine)

cht.AllSeries.AxisX.Grids.Major.Visible = False

cht.AllSeries.AxisX.Grids.Minor.Visible = False

cht.AllSeries.AxisY.Grids.Major.Visible = False

cht.AllSeries.AxisY.Grids.Minor.Visible = False

For Each xAxis As Axis In cht.AxesX

  xAxis.Grids.Minor.Visible = False

  xAxis.Grids.Major.Visible = False

Next

For Each yAxis As Axis In cht.AxesY

  yAxis.Grids.Minor.Visible = False

  yAxis.Grids.Major.Visible = False

Next

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...