Hi I’m trying make a graph that gives the user options to select different units for the the x axis.
I have my data for the y axis and two sets for the x axis.
The first xaxis data is the default and the second is the same size array except in different units.
I tried to use Plotly.update and update the xaxis, but I can’t seem to get it to work.
I also tried Plotly.restyle and no luck.
I think it might be the way I am implementing the js.
If anyone has any ideas that might work, it would be really helpful. Thank you.