X-axis is date: Only want to show dates in data set

My data set has keys (which are dates), and values. I can graph this no problem, but I’d like the x-axis to only show dates that are present in the data set.

If I change my dates to be strings (so that Plotly.js doesn’t parse them as dates), then it behaves as I’d want. However, I’d like to keep them as dates for formatting purposes. Thanks!

We don’t expose a way to do that at the moment unfortunately.

This request seems to be related to https://github.com/plotly/plotly.js/issues/1382, so I’d recommend subscribing to that issue for the most up-to-date development info.