Black Lives Matter. Please consider donating to Black Girls Code today.
Learn about the upcoming Dash Enterprise 4.0 release in the August 5th webinar with Chris Parmer, the Inventor of Dash.

How to make the datetime x axis not stretch

For the following dataframe I have plotted Day vs Correlation_coefficient go.Bar, expecting x axis will have 3 ticks representing the day and one bar for each tick. But in actual plot the x axis shows unwanted time as shown in the following figure. I just want it to display only the values given in the dataframe’s Day column. How can I do that?

          Day  Correlation_coefficient
0  2020-07-27                   -0.103
1  2020-07-26                   -0.029
2  2020-07-25                   -0.021

Screenshot from 2020-07-30 15-32-25