anychart.onDocumentReady(function () {
chart = anychart.sparkline([1.3, 2, 1.4, 4, 2.3, 6]);
chart.title({text: 'Save chart as SVG file with paper size and landscape orientation set', orientation: 'top'});
chart.container('container');
chart.saveAsSvg('a5', true);