HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.line([
3
{x: 'Theatre', value: 10},
4
{x: 'Literature', value: 4},
5
{x: 'Cinema', value: 17},
6
{x: 'Music', value: 20},
7
{x: 'Sculpture', value: 16},
8
{x: 'Art', value: 35},
9
{x: 'Painting', value: 6}
10
]);
11
12
// Get animation.
13
var animationSettings = chart.animation();
14
animationSettings.duration(3000);
15
animationSettings.enabled(true);
16
17
chart.title('Get and modify animation object');
18
chart.container('container');
19
chart.draw();
20
});