Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Axis Formatting Issue

I’m passing years as strings on the x axis, ie: '09, '10, '11, '12 … and would like them displayed just like that. Plotly seems to want to format them as numbers no matter what I do. Some help with the tickformat function would be greatly appreciated. Thanks!

You can fully customize the axis labels using xaxis.tickvals and xaxis.tickvals. Example: http://codepen.io/etpinard/pen/zqLxzm

This is perfect, thank you!

1 Like