Gantt chart with plotly express in Dash


Is the Gantt chart created with plotly express timeline supported in Dash? The chart in Dash is represented incorrectly while it is correct just as a shown figure in html or jupyter notebook kernel. Moreover, the timelines in the charts differ as well.
I tried to set the size of the chart and set the configuration to autosizable, but it didn’t help. The chart didn’t change. Do you have any idea how it can be resolved?

Thank you in advance!

Original chart:

The chart in Dash: