How to fix grid width by inches or pixels

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

How to fix grid width by inches or pixels

Post by elmec » Sat Nov 16, 2013 7:42 am

How to fix the grid width by inches or pixels, not the numbers of points?
So when the Tchart resized, the grid width will be kept fixed.
Attachments
Grid Width by Pixels.png
Grid Width by Pixels.png (67.16 KiB) Viewed 5769 times

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

Re: How to fix grid width by inches or pixels

Post by Narcís » Mon Nov 18, 2013 8:31 am

Hi elmec,

You could calculate the axis range (Maximum minus Minimum) and then divide it for the number of grid lines you'd like to get and set Increment property accordingly.
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

elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

Re: How to fix grid width by inches or pixels

Post by elmec » Mon Nov 18, 2013 9:56 am

Hello Narcís,

I meant that how to fix the grid width without changing Increment
when TChart resized.

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

Re: How to fix grid width by inches or pixels

Post by Narcís » Mon Nov 18, 2013 10:42 am

Hi elmec,

Use custom labels instead then. You'll find an example at All Features\Welcome!\Axes\Labels\Custom Labels in the features demo.
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

Post Reply