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
//create area chart
3
var chart = anychart.bubble();
4
5
//turn on chart animation
6
chart.animation(true);
7
8
//set container id for the chart
9
chart.container('container');
10
11
chart.bubble([
12
[0.9, 2.0, 0.2],
13
[1.4, 0.46, 1],
14
[1.3, 1.2, 1.5],
15
[1.5, 1.7, 1.6],
16
[1.2, 1.9, 1.8]
17
]);
18
19
chart.bubble([
20
[1.0, 1.4, 1.1],
21
[1.2, 1.46, 1],
22
[1.5, 1.2, 1.2],
23
[1.9, 1.7, 0.5],
24
[1.8, 1.9, 0.8]
25
]);
26
27
chart.bubble([
28
[0.9, 0.4, 0.5],
29
[1.2, 2.1, 0.1],
30
[1.3, 0.52, 1.2],
31
[1.9, 0.7, .25],
32
[1.6, 0.9, 0.8]
33
]);
34
35
//initiate chart drawing
36
chart.draw();
37
});