aligning left axis of multiple charts

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
WCantrall
Newbie
Newbie
Posts: 27
Joined: Mon May 03, 2004 4:00 am
Location: USA
Contact:

aligning left axis of multiple charts

Post by WCantrall » Tue Nov 27, 2012 5:08 am

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.

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

Re: aligning left axis of multiple charts

Post by Yeray » Mon Dec 03, 2012 12:26 pm

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.
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