-
Notifications
You must be signed in to change notification settings - Fork 0
/
donut.html
77 lines (56 loc) · 1.68 KB
/
donut.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SimpleCharts Donut</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: 400px;margin:auto;" ></div>
<script type="text/javascript">
var objData={
canvasID : 'canvas',
chartType:'donut',
title:{text:'Test Donut', align:'left'},
subTitle:{text:'Test Donut', align:'left'},
keys : {position:'right', align:'left'},
// settings : {donutWidth:40, maxDonutFont:50, },
dataSet : [
{ data : [0.50], name: 'Derbyshire County Council', color:'#67af45'},
{ data : [65.00], name: 'Bedfordshire Council', color:'#188ee2'},
{ data : [34.50], name: 'Derby', color:'#F7464A'},
]
};
chartLoader('DonutChart', objData);
/**/
//####################################################################
//####################################################################
//####################################################################
/*
var Grid=new Paper('canvas');
Grid.mkLine(10, 100, 100, 200);//, { color : 'red' });
Grid.mkRect(30, 100, 100, 20);//, { color : 'red' });
alert(Grid.getDimension('height'));
/**/
//####################################################################
//####################################################################
/*
window.addEventListener('resize', function () {
"use strict";
grid.Reload();
grid=new ColumnChart(objData);
//window.location.reload();
// alert('heloo');
});
*/
</script>
</body>
</html>