Hello
i'm using two Charts and i want to have the right Y-Axis of the Charts on the same X-Position.
The right Y-Axis in the upper Chart is an costum axis, in the lower chart it's the default right axis.
It also could be inverted (upper Chart is default axis and lower Chart is custom axis)
To make it more easier i have uploaded two pictures, the first one is what i have until now.
The secound one is what i want to have (edited with Paint).
I tryed to use the Chart.Panel.MarginRight Propertie but that doesn't work for me because the legend moves too when it was set.
Can someone help me to achieve this goal?
Best regards
Franz
Sync Axis Position between two Charts
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Sync Axis Position between two Charts
Hi Franz,
Custom axes don't calculate margins automatically. You can either set desired margin manually or for a more dynamic solution implement something as the PlaceAxes method Sandra posted here. Also, for the margin between the chart and the legend you can use tChart1.Legend.HorizMargin property.
Hope this helps.
Custom axes don't calculate margins automatically. You can either set desired margin manually or for a more dynamic solution implement something as the PlaceAxes method Sandra posted here. Also, for the margin between the chart and the legend you can use tChart1.Legend.HorizMargin property.
Hope this helps.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Sync Axis Position between two Charts
Hi Narcís,
thank you for your help.
I set the Chart.Legend.HorizMargin in the Chart.BeforeDraw-Event and it works very well.
thank you for your help.
I set the Chart.Legend.HorizMargin in the Chart.BeforeDraw-Event and it works very well.