-
Notifications
You must be signed in to change notification settings - Fork 0
/
sunburst.html
49 lines (37 loc) · 1.12 KB
/
sunburst.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SimpleCharts Sunburst</title>
<script type="text/javascript" src="raphael.min.js"></script>
<script type="text/javascript" src="simpleCharts.min.js"></script>
<style type="text/css">
#canvas {
lwidth: 500px;
lheight: 50px;
border: 1px solid #aaa;
}
</style>
</head>
<body>
<div id="canvas" style="max-width: 600px;margin:auto;" ></div>
<script type="text/javascript">
var objData={
canvasID : 'canvas',
chartType:'sunburst',
gridSettings:{
donutWidth:60,
orderData:false,
},
title:{text:'Test Donut', align:'left'},
subTitle:{text:'Test Donut', align:'left'},
keys : {position:'right', align:'bottom'},
dataSet : [
{ data : [20.50, [8.40, 5.60, 6.50]], name: ['Derbyshire County Council', ['Metal', 'Glass', 'Cardboard']], color:'#67af45'},
{ data : [45.00, [20.60, 24.40]], name: ['Bedfordshire Council', ['Wood', 'Plastic']], color:'#188ee2'},
{ data : [34.50, [15.35, 5.10, 14.05]], name: ['Derby', ['Glass', 'Paper', 'Others']], color:'#F7464A'},
]
};
chartLoader('SunburstChart', objData);
</script>
</html>