Skip to content
Dmitry Voytsekhovskiy edited this page May 17, 2016 · 1 revision

The latest IDD has a limited support for exporting of plots to SVG. It allows figure, numeric axis and polyline to be exported to SVG element of the SVG.js library.

The sample code is:

var chart = InteractiveDataDisplay.asPlot($("#chart"));
var svg = chart.exportToSvg();
            
$("#chart_svg").html(svg.svg());   // shows svg in the browser
$("#output").text(svg.svg());         // shows svg source text in the browser

See the sample page Vector export.

Clone this wiki locally