Plotly integration into KNIME.
*This library is seemingly redundant from KNIME 4 but may provide a useful hint for custom plotly charts *
Integration so far is available through the Generic JavaScript view
The Generic JavaScript View node allows the execution of JavaScript in an embedded or headless browser.
Plotly can be integrated to provide interactive D3 based charts which can be rendered in the web portal or within the embedded browser (use chromium or chrome).
SVG export functionality is a paid for feature in Plotly. However, as the plots are rendered using SVG we can use some javascript to build our own SVG export feature.
- Get the graph SVG
- Get the second SVG containing the legend and titles etc
- Add the relevant info from SVG 2 into SVG 1
- Return merged SVG
See /generic-javascript-view/svgExport.js for implementation.