Jump to content
Software FX Community

Remove all grid lines, including zero point


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.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


For Each yAxis As Axis In cht.AxesY

  yAxis.Grids.Minor.Visible = False

  yAxis.Grids.Major.Visible = False


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...