-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.html
More file actions
43 lines (37 loc) · 813 Bytes
/
example.html
File metadata and controls
43 lines (37 loc) · 813 Bytes
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
36
37
38
39
40
41
42
43
<head>
<meta charset="utf-8" />
<title>Visualization Example</title>
<script src="dist/vizzlo.min.js"></script>
</head>
<body>
<h1>Hello World!</h1>
<div id="basic-pie-chart"></div>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded",function() {
Vizzlo.APIKey = '';
Vizzlo.Visualize('basic-pie-chart', {
theme: "scotty",
plugin_id: "17d15712-206e-4cfd-8967-74fda1ff60fd",
title: "This is a pie chart",
data: [
{
label: "Alice",
value: 85
},
{
label:"Bob",
value: 15,
highlighted: true
}
],
settings: {
rulesets: {
value: {
displayAsPercentage: true
}
}
}
});
});
</script>
</body>