R – Aligning Multiple Charts in Flex Charting

actionscriptapache-flexchartsflex-charting

I have multiple line charts in Flex Charting (3.x). The charts (and number of charts) are being dynamically generated, and are either of "type A" or "type B." The type of data on the Y-axis is different for type A then it is for type B. The x-axis is time.

Each chart is placed in its own VBox (with a few other things) that make up a larger canvas of the Type A or Type B. This VBox is given an absolute X position.

It is very high priority that the different charts line up, so that comparisons (in time) can be made.

What ends up happening is that the vertical axis for some charts takes up more width then others, so the charts are no longer aligned in time.

I have tried playing the VerticalAxisRenderers/AxisRenderer width, but that had no effect.

Any advice would be greatly appreciated.

Best Answer

You can try to set the same gutter left for the both charts. That might help. I had a similar issues, but haven't figured a better answer yet.

Related Topic