I’ve noticed that when I want to update range on an axis with date type, I must provide the dates as strings. With Date objects it does not work (see codepen.
However parsing and formatting Date strings is quite tricky (taking into account zones and UTC). Normally I use moment.js for handling Dates to avoid the hell.
What is the recommended formatting function I should use with Plotly.js?