Can I plot just axis?


#1

Hi, I am trying to to plot just axis without any data points. Is it possible to do with plotly ?
Note: I am plotting different charts below and I want to plot xaxis in different space

Codepen: https://codepen.io/suribabu_95/pen/pdmBPE?editors=0010

Thank You,


#2

Looks like your codepen does just that.

Am I not understanding your question properly?


#3

Its is not taking the actual x values. It is always plotting the same values on axis irrespective of x values I provide in data.


#4

Yes, as your trace has an empty y, we ignore it altogether.

You can get the desired results using xaxis.tickvals and xaxis.ticktext: