svg

Returns the SVG representation of the chart. The returned string is a self-contained SVG document that can be used as is or converted to other formats using tools like Inkscape and ImageMagick. Both programs provide command-line interface suitable for server-side processing.

This method is obsoleted by exportSVG, but will remain fully functional.

Returns

String the SVG representation of the chart.

Example - get the SVG representation of the chart

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    { data: [1] }
  ]
});
var chart = $("#chart").data("kendoChart");
var svg = chart.svg();
console.log(svg); // displays the SVG string
</script>
In this article
Not finding the help you need? Improve this article