Page 1 of 1

aligning left axis of multiple charts

Posted: Tue Nov 27, 2012 5:08 am
by 9337315
The documentation refers to startPos as a way to determine the pixel position of the bottom axis. This does not seem to do anything. The source code also refers to a setPos method.
Is there any way to force the left start position of the bottom axis? I have 2 charts one above another, and the start positions differ depending on the left axis label size. I need them to line up.
Thanks for any help or examples.

Re: aligning left axis of multiple charts

Posted: Mon Dec 03, 2012 12:26 pm
by yeray
Hi,

Excuse us for the delay here.
We've implemented some changes to make this work.
In the next maintenance release, you'll be able to set a x and a width for the chartRect:

Code: Select all

  chart.chartRect.automatic = false;
  chart.chartRect.x = 80;
  chart.chartRect.width = 500;
Setting the same for both charts will result in two aligned charts.

I'll send the modifications to the mail account you have registered in this forum.