Custom Grid

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
RogerNye
Newbie
Newbie
Posts: 11
Joined: Mon Jan 12, 2009 12:00 am

Custom Grid

Post by RogerNye » Mon Oct 04, 2010 7:06 pm

Hi,
I need to make a 2D chart with grid lines behind that are not evenly-spaced.
For instance, daily x values with monthly grid lines (31 days in Jan, 28 days in Feb etc).
It gets a bit more complicated as there may be missing data, so I want to be able to determine which points have grid lines based on the x-values.

How can I do this please?
Are there any handy examples among the samples?

I am using the SWT Java version.

Many thanks
Roger

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Custom Grid

Post by Narcís » Wed Oct 06, 2010 9:59 am

Hi Roger,

The easiest way to do that is setting axis labels style being set to points text labels. Therefore you'll only get grid lines for those points.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

RogerNye
Newbie
Newbie
Posts: 11
Joined: Mon Jan 12, 2009 12:00 am

Re: Custom Grid

Post by RogerNye » Thu Oct 07, 2010 12:13 pm

Thanks Narcís,
That worked well.

Post Reply