Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TeeChart and drawing gridlines

94 views
Skip to first unread message

Pete

unread,
Feb 17, 2006, 1:21:12 AM2/17/06
to
Hi,

I am using the TeeChart that came with Delphi 7.

I want to let the user choose to display a gridline either every increment
(default) or every 2nd increment or every 5th increment.

How do I do this with TeeChart Standard?

I have looked at drawing the lines manually in the Charts AfterDraw event.
Is this the way to so it? If so can someone please give me some example
code.

Thanks
Pete


Pete

unread,
Feb 19, 2006, 5:55:54 PM2/19/06
to

Anyone got any ideas on this one?

Chris Ireland

unread,
Feb 20, 2006, 3:17:40 AM2/20/06
to
Hello Pete,

Well, you might want to start by investigating the TChartAxis.Increment
property, e.g.
Chart1.BottomAxis.Increment := 3;

and also looking at the TChartAxis.MinorGrid, e.g.
Chart1.BottomAxis.MinorGrid.Visible := true;
Chart1.BottomAxis.MinorGrid.Style := psDot;
Chart1.BottomAxis.MinorGrid.Color := clMedGray;
Chart1.BottomAxis.MinorTickCount := 1;

Please be aware that we at Steema Software have our own
forums/newsgroups which can be read from:
http://www.steema.com/support/support.html

Best regards,

Christopher Ireland
Steema Sofware

po...@hotmail.com

unread,
Feb 20, 2006, 7:25:25 PM2/20/06
to
Hi Chistopher,

Thanks. I have now got all my gridlines appearing as they should. I
now need to find out how to make them appear when the chart is printed.
:)

Thanks
Pete

0 new messages