Black Lives Matter. Please consider donating to Black Girls Code today.

How to remove the axis lines in plotly

I want a plotly graph without any lines and axes.How do I achieve it?

There are a couple of options e.g.
set axis visible to false as well as changing showgrid & zeroline depending on your needs.
Here is a demo.
more info https://plotly.com/javascript/reference/#layout-xaxis

Yes I found the solution already but thanks for the answer. @archmoj

1 Like