Generic JavaScript View SVG output issue

Hi

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: https://gist.github.com/webbres/20160b453d99f878a13fd5b8edbca1df

The code for the SVG export is here: https://gist.github.com/webbres/d8fdee6ee6f28779e407088d60158fc2

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.

Cheers

Sam

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: https://github.com/webbres/knime-plotly

3 Likes

Thank you for sharing @swebb :slight_smile:

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