HOSTING

Share a Plotly chart as a link

Plotly writes any figure to an HTML file with fig.write_html. Upload that file and send a link that opens the chart, with hover, zoom and the legend toggles, in any browser. No Dash server needed.

4 min read·

A Plotly chart exported as a PNG loses the hover values, zoom and legend toggles that made it worth building. Plotly can write the interactive chart to a single HTML file, and a hosted link opens that file in any browser without Python or Jupyter. For Bokeh or Altair charts, see sharing a Bokeh or Altair chart.

Save the chart as one file

  • ✓Any figure, from plotly.express or plotly.graph_objects: fig.write_html("chart.html").
  • ✓By default the Plotly library is written into the file, so it works offline and needs nothing beside it. A simple chart saved this way is about 4.8 MB (Plotly 7.1).
  • ✓fig.write_html("chart.html", include_plotlyjs="cdn") loads the library from cdn.plot.ly instead. The same chart is under 10 KB, and viewers need an internet connection.
  • ✓In a Jupyter notebook, run the same line in a cell. The file lands next to the notebook.

Why an uploaded Plotly file shows a blank page

include_plotlyjs="directory" writes chart.html plus a separate plotly.min.js, and the page loads the library from that second file. Upload chart.html on its own and the library is missing, so the page loads with no chart. full_html=False writes only a div for pasting into another page, not a page that opens by itself. Save again with the default or with "cdn" and upload the new file. Other causes are covered in why an AI-built page breaks when hosted.

What works in a static file

Everything in the figure runs in the browser: hover labels, zoom, pan, box and lasso select, clicking legend items to hide a series, dropdown buttons and sliders defined in the layout, animation frames, and the camera controls on 3D charts. The toolbar’s "Download plot as a PNG" button also works on the hosted link.

Pass config to change the toolbar, for example fig.write_html("chart.html", config={"displaylogo": False}).

Dash apps are different: callbacks run Python on a server, so a Dash app does not save to a static file. Each figure inside it can still be written with write_html and shared on its own.

Upload it and send the link

Drag chart.html onto the FileShare Pro dashboard and copy the link. The free plan accepts files up to 100 MB, which covers a chart with the library embedded and a large dataset inside it.

Viewers need no account and nothing to install. Shared pages carry a noindex tag, so a chart of internal numbers does not appear in search results. On Pro you can add a password: password-protecting an HTML page.

Update the chart without a new link

When the numbers change, write the file again and upload it over the old one. The link stays the same and the previous version is kept in history: updating a shared link without changing it.

Turn on comments and readers can leave a note on the page after typing a name, such as a question about an outlier. The view count shows whether the person you sent it to has opened it.

Frequently asked

How do I share an interactive Plotly chart with someone who does not use Python?

Run fig.write_html("chart.html"), upload the file and send the link. It opens in any browser with hover and zoom working.

Why is my Plotly HTML file so large?

The default write_html embeds the whole Plotly library, about 4.8 MB. Use include_plotlyjs="cdn" for a file of a few kilobytes that loads the library from cdn.plot.ly.

Why is my Plotly chart blank after uploading?

The file was most likely saved with include_plotlyjs="directory" and expects plotly.min.js next to it. Save it again with the default or with "cdn".

Can I share a Dash app this way?

No. Dash runs Python callbacks on a server. Individual Plotly figures from the app can be saved with write_html and shared as links.

Is it free?

Yes. The free plan hosts up to 50 files of up to 100 MB each, with view counts and comments included. Password-protected links are on Pro.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free