I have a chart with three y axis on the right one on top of another, with no overlap. Each axis has different label widths. The default axis labels are always displayed correctly. My custom axis labels are clipped when they are longer than the default axis labels.
The default right axis automatically moves the chart over to make room to display the labels.
My custom axes do not automatically shrink the chart to make room for the lables. My labels are not displayed because they are clipped at the edge of the window.
I tried fixing this by using tChart1.Panel.MarginRight to reserve some space.
The problem is the default right axis moves in even further than the panel margin, wasting space.
How can I make the chart reserve space for my custom axis labels just like it does for the default ones?
Need help with custom axis labels.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi lt4111,
Knowing this you can try setting a custom axis label for the custom axes or for the default axis:
Knowing this you can try setting a custom axis label for the custom axes or for the default axis:
axis1.Labels.CustomSize = 50;
//or
tChart1.Axes.Left.Labels.CustomSize = 50;
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 |