Downloading Plotly interactive graphs in html and pdf format

The plot would need to be converted on the server side and then sent to the client. Here is an idea that should work, but I haven’t tested it. This is a bit more roundabout than you probably want, but from what I know it’s probably the easiest method.

  1. If your plot is being made on the client, you would first send your plot to the server function
  2. Write the plot to a data table row, being sure to save the row ID. You could write a background function that periodically removes these.
  3. Load the media object and send to the client.

Below I referenced plotly docs and a post on the forum.

1 Like