I have seen this answer, but what happens if you have three charts
? And in general, have n charts
stacked one ontop of each other and you want the chart
bodies (areas
) to align with each other?
I would be satisfied to see a result for three charts
, but a function
that takes a list
of charts and aligns them is the most useful.
Also, does this answer presume the charts already have all data in them? What if the data is added at runtime
dynamically and you need to keep the charts aligned? The problem is the y-axis labels
may change in size as new data appears ( a negative sign appears, or more decimal places, more digits, etc), pushing the chart body to the right, and therefore misligning them with other chart areas stacked above/below it.
Being able to assign a stable Y-axis label extent
no matter how big the label gets goes along way to solving some of these problems. How is this done?