Open toolslive opened 1 month ago
You can set layout.xaxis.type = 'category'
to keep the strings.
You can also set layout.autotypenumbers = 'strict'
(which is currently in the default plotly.py template, but in plain plotly.js the default is 'convert types'
) https://plotly.com/javascript/reference/layout/#layout-autotypenumbers
It should just use strings as labels (just like what happens when
x= ['a','b','c','d']
). A simple work around is to prefix the strings with
to sabotage the convertion.