-
Notifications
You must be signed in to change notification settings - Fork 0
/
bubbles.html
58 lines (43 loc) · 1.37 KB
/
bubbles.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
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SimpleCharts Bubbles</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: 800px;
lheight: 50px;
border: 1px solid #aaa;
}
</style>
</head>
<body>
<!--div id="canvas" style="width: 1000px;margin:auto;margin-top: 20px;margin-bottom: 20px" ></div-->
<div id="canvas" style="max-width: 900px;margin:auto;" ></div>
<script type="text/javascript">
var objData={
canvasID : 'canvas',
chartType:'bubbles',
gridSettings:{
bubbleStyle : {fill : '#98cc7f', stroke:'#61a441'},
},
title:{text:'Test Columns', align:'left'},
subTitle:{text:'Test Columns', align:'left'},
axisTitles : {xTitle:'Removed Waste (t)', yTitle: 'Cost (£)'},
keys : {position:'top', align:'left'},
dataNames : ['Removed Waste (t): ', 'Cost: £', 'Num of Sites: '],
dataSet : [
{ data : [7, 2000, 2], name: 'Derbyshire County Council'},
{ data : [85.568, 122.4, 8], name: 'Bedfordshire Council'},
{ data : [25, 6, 3], name: 'Buckinghamshire Council'},
{ data : [17.22, 240, 2], name: 'Central Beds SoR Contract'},
{ data : [52.973, 98.93, 5], name: 'Essex Council'},
{ data : [62.12, 150.5, 1], name: 'Estate Lighting Solutions'},
]
};
chartLoader('BubbleChart', objData);
</script>
</body>
</html>