-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolumns.html
55 lines (43 loc) · 1.37 KB
/
columns.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SimpleCharts Columns</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;
height: 50px;
border: 1px solid #aaa;
}
div{
min-height:30px;
border:1px solid;
}
</style>
</head>
<body>
<div id="canvas" style="max-width: 600px;margin:auto;" ></div>
<script type="text/javascript">
var objData={
canvasID : 'canvas',
chartType:'columns',
title:{text:'Test Columns', align:'left'},
subTitle:{text:'Test Columns', align:'left'},
axisTitles : {xTitle:'Customers', yTitle: 'CO2 (tonnes)'},
keys : {position:'right', align:'top'},
labels : ['John Lewis','Internal Projects',
'Nuffield Health', 'Morrisons', 'Multi Storey Carpark Sheffield', 'Waitrose',
'Boots', 'Asda', 'M&S', 'Village Outlet', 'EE', 'Marks & Spencer', 'Simons Development LTD',
'Magna Park','Pure Gym', 'Multi Storey Carpark Stafford', 'JLP', 'Buttermarket Shopping Centre'],
dataSet : [
{
data : [3626.8812, 43326.3103, 496.1106, 7682.4436, 190.07, 1127.4844,673.5668,6087.886,1229.0503,8335.9516,66.4822,352.3406,284.803,673.4203,1101.0603,997.8092,243.7603,215.3752], name: 'CO2', color : '90-#ccc-#a1a1a1:100-90'
},
]
};
chartLoader('Columns', objData);
</script>
</body>
</html>