Home › forums › Feature Requests & Feedback › Aligning Multiple Vertical Charts
This topic contains 7 replies, has 3 voices, and was last updated by Sanjoy 3 years, 3 months ago.
I have three charts and all share the same x axis data, but different Y data. The charts would look extremely better, if it’s possible to somehow vertically align the y axes, so the upper 2 X axes could be dropped. I’d propose to allow to give a fixed margin on either side.
Thanks for your feed-back. Are you looking for axisY/Y2 margin?
I tried, but it somehow depends on the axes labels. Here I put all six to 160px to illustrate.
As of now the exact same feature is not available. You have to do little manipulation using labelMaxWidth and margin of axis.
Is this feature on the CanvasJS backlog?
I also have the same problem. I want to have two vertically aligned charts and have the same width of the chart area for both.
As you can see the width of the chart area for both are the same.
But with CanvasJS I only managed to create this:
Current (wrong) behaviour
Is there a way (with the current version) of recreating the first behaviour?
As of now this feature is not available in our library. Here is an workaround to align the axis.
My use case is for the Y-Axis to be on the right side, for the left side your solution works perfectly, is it possible to do it if the Y-Axis is on the right?
We have just released v1.9.6 Beta with Methods & Properties, which allows you to programmatically export chart as image, print chart, access internally calculated values, etc. Please refer to the release blog for more information.
Please check this jsfiddle.
You can do the same for axisY2. Here is updated fiddle with aligning axisY2.
You must be logged in to reply to this topic.