anychart.onDocumentReady(function () {
var stage = anychart.graphics.create("container");
var chart = anychart.line();
chart.line([10, 4, 17, 20, 16, 35, 6, 15]);
chart.title("Save chart as SVG file with width and height set.");
var customLabel = anychart.standalones.label();
customLabel.background({fill: "#9E9E9E"});
customLabel.text("Save image");
customLabel.fontColor("#fff");
customLabel.listen("click", function () {
chart.saveAsSvg(400, 300);
customLabel.container(stage);