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

Chart area shrinks when text mode is activated

Hi,
I am trying to add permanent text to a candlestick chart. The text is read from a panda dataframe.

To make the text appear always consistently, I added a scatter plot with a horizontal line at the top of the candlestick chart and activated the mode “text” only (you can see a bunch of numbers at the top of the chart below). However, when I do that, the chart area along x-direction shrinks as you can see in the picture. Without the text mode, both subplots have similar ranges in the x-direction.

Do you know how to fix this?

Thanks