anychart.onDocumentReady(function () {
var dataSet = anychart.data.set([
var data1 = dataSet.mapAs({x: 0, value: 1});
var data2 = dataSet.mapAs({x: 0, value: 2});
var chart = anychart.line();
chart.animation(true, 3000);
chart.title('Enable animation with duration');
chart.container('container');