✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

How do you get two lines with unique yaxes to begin at the same vertical point

I have just finished creating your basic Draw the performance of one Stock and one Market Index on the same chart.

The problem is that to properly compare the performance between the two, they both need to start at the same vertical starting point on the left side. Dash is drawing them independently, most likely with consideration for best fit.

How can you define both lines to start at the same vertical point on the left side?

I think the best way to do it now is to chart percentage gain. Both values will be 0 on the left and the graph will be fitted to the gain or fall of the lines. The work will be to get the prices correct as a secondary axis but that should be way easier than the other way around.