anychart.onDocumentReady(function () {
var chart = anychart.sparkline([1.3, 2, 1.4, 4, 2.3, 6]);
chart.title({text: 'Get chart as SVG with predefined paper size and orientation', orientation: 'top'});
chart.container('container');
var SVGstring = chart.toSvg('a4', true);