Force axis length to match for two graphs

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
Bruce
Newbie
Newbie
Posts: 9
Joined: Fri Jul 31, 2020 12:00 am

Force axis length to match for two graphs

Post by Bruce » Thu Jun 27, 2024 3:30 am

Hi
another question please. Is there a way to force a TeeChart axis to have some fixed length. I have a situation with two graphs positioned in panels one above another and would like to have them line up so that time events relative to the same values on the x axis line up. I also need to have a legend for each grapgh and this is where things fail. If I have different length series titles for the legends for each graph, then the legends change dimension and the graphs automatically resize. I would be nice to be able to lock axis dimensions in some way and have other aspects of the total TeeChart adjust the size of other components or blank space as neccessary.

Thanks

Bruce
Bruce

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Force axis length to match for two graphs

Post by Yeray » Mon Jul 01, 2024 8:32 am

Hello Bruce,

You can manually align two charts playing with margins as in these examples:

viewtopic.php?f=3&t=10620#p44547
viewtopic.php?f=3&t=15313&p=67918#p67918
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply