Page 1 of 1

extra vertical grid line

Posted: Fri Mar 19, 2010 1:42 pm
by 10554148
I attach an image of a section of my chart.
As you can see, the TPointSeries draws an extra unwanted vertical grid line and the corresponding x-axis text that looks messy. How do I stop it from drawing the vertical grid line as well as adding the axis text?
extraline.PNG
extraline.PNG (5.21 KiB) Viewed 3138 times

Re: extra vertical grid line

Posted: Fri Mar 19, 2010 2:26 pm
by yeray
Hi superman007,

You could hide the bottom axis:

Code: Select all

  Chart1.Axes.Bottom.Visible:=false;
Or you could hide the grid lines and the labels separately:

Code: Select all

  Chart1.Axes.Bottom.Grid.Visible:=false;
  Chart1.Axes.Bottom.Labels:=false;

Re: extra vertical grid line

Posted: Fri Mar 19, 2010 2:59 pm
by 10554148
That will get rid of all the grid lines. I don't want that. I want to only get rid of the grid line that is drawn for the TPointSeries (the "extra" grid line that you can see in the image that goes through the green arrow).

Re: extra vertical grid line

Posted: Fri Mar 19, 2010 3:46 pm
by narcis
Hi superman007,

To be able to provide an accurate answer, could you please attach a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.

Re: extra vertical grid line

Posted: Mon Mar 22, 2010 10:07 am
by 10554148
I have fixed the issue by putting in a blank label into the AddXY function call.

Re: extra vertical grid line

Posted: Mon Mar 22, 2010 12:08 pm
by yeray
Hi superman007,

Ah, I think I've understood what you wanted to do do. You only want to hide the label drawn at the TPointSeries.
I'm grad to see you've found the solution!