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.bubble();
3
chart.bubble([
4
[1, 25, 4],
5
[2, 15, 2],
6
[3, 20, 3],
7
[4, 11, 1]
8
]);
9
10
// Sets maximum size of the bubble.
11
chart.maxBubbleSize("15%");
12
13
chart.title("Set maximum bubble size.");
14
chart.container("container");
15
chart.draw();
16
});