-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
35 lines (32 loc) · 1005 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<meta name="author" content="AnyChart">
<!--AnyChart modules-->
<script src="https://cdn.anychart.com/releases/v8/js/anychart-bundle.min.js"></script>
<style>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="container"></div>
<script>
anychart.onDocumentReady(function () {
// {{data}} token is replaced by the server with the site data during the page rendering
var data = '{{data}}';
// create a chart and set the data
var chart = anychart.pie(data);
// set the chart title
chart.title("Pie Chart: data loaded with ElasticSearch");
// set the container id and initiate drawing the chart
chart.container("container").draw();
});
</script>
</body>
</html>