Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Can I set all tick marks to land on Sunday?

I have trouble setting all tick marks on X-axis to land on Sunday. No matter what date I choose for tick0, all tick marks land on Saturday for some reason. The same parameter settings work in python, but not on plotly.js

Here is my code:

‘xaxis1’: {‘anchor’: ‘y1’,
‘domain’: [0, 1.0],
‘tick0’: ‘2016-01-03’, # This is a random Sunday so all tick marks will land on Sunday
’dtick’: 604800000.0, # This is 7 days in milliseconds. 7 * 86400000.0

data for xaxis are date strings in the format ‘2016-01-01’


thanks for your help. It still shows Saturdays…


This is what I’m seeing: