Generic JavaScript View SVG output issue


I’ve been looking at integrating more plotly charts and getting the SVG export function working.

For the histogram I’ve got this working but I get an error (or rather lack of output) when testing this on a violin plot.

The SVG code works when testing it and printing to console in the JavaScript view but it doesn’t seem to execute or gets an error in the Image Generation tab. I have tried setting the wait time up to 10 seconds.

The code can be found here:

The code for the SVG export is here:

I’ve not found out if I can debug or see console output for the SVG generation?

Any advice on debugging the SVG generation is appreciated.



1 Like

Hrm, this code executes fine on the nightly build I’ll check 3.6

Works in 3.6 using external chome also.

So I guess if anyone want’s to integrate plotly and generate and SVG output here’s an example.

For further details the integration can be found here:


Thank you for sharing @swebb :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.