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!

Custom X-Axis gridmark labels

Is it possible to create custom axis labels?

For instance, I have a bunch of traces where x is just an array of DateTimes.

However, I’d like to have the x-axis gridmark labels just show the day of week (M, T, W, Th, F) etc, while still preserving the time info.

Thank you in advance.

Here’s how: http://codepen.io/etpinard/pen/zqLxzm

using xaxis.tickvals and xaxis.tickvals

1 Like

Thank you!

(I had checked the plotly.js cheat sheet https://images.plot.ly/plotly-documentation/images/plotly_js_cheat_sheet.pdf and didn’t see anything about tickvals there.)

Is there another resource you go to that displays all the options for every argument?

Thanks again!

Here: https://plot.ly/javascript/reference/

1 Like

@etienne you da man!