Black Lives Matter. Please consider donating to Black Girls Code today.
Dash Enterprise delivers an incredible 21x cost savings 💸Download the e-book!

Can I plot just axis?

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,

Looks like your codepen does just that.

Am I not understanding your question properly?

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.

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

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