I would like to change the hover text that is displayed on the x-axis. I know I can change the hover text of the bar using js below
var trace1 = {
x: [0, 1, 2, 3],
y: [10, 11, 21, 31],
text: ["Zero", "One", "Two", "Three"],
type: 'bar'
};
var data = [trace1];
var layout = {barmode: 'stack'};
Plotly.newPlot('myDiv', data, layout);
So how do I change the hover text for the x axis? i.e. have the 2
display as Two
.