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.
- If your plot is being made on the client, you would first send your plot to the server function
- 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.
- Load the media object and send to the client.
Below I referenced plotly docs and a post on the forum.