HTMLcopy
1
<div id="container"></div>
CSScopy
8
1
html,
2
body,
3
#container {
4
width: 100%;
5
height: 100%;
6
margin: 0;
7
padding: 0;
8
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function() {
2
3
// load data
4
anychart.data.loadJsonFile('https://static.anychart.com/demos/bubble-chart-tutorial/data.json', function (data) {
5
6
// create a chart
7
chart = anychart.bubble(data);
8
// set a chart title
9
chart.title("Top 30 Grossing Movies");
10
// set titles for axes
11
chart.xAxis().title("Years");
12
chart.yAxis().title("Budget");
13
// draw the chart
14
chart.container("container").draw();
15
16
})
17
18
});