-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo_pie.html
36 lines (30 loc) · 943 Bytes
/
demo_pie.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
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ChartLine</title>
<link rel="stylesheet" href="css/demo.css" type="text/css">
<script src="js/raphael-min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/sc.pie.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
window.onload = function () {
new ChartPie({
id:'show_demo',
width:'400',
height:'400',
title:{string: 'PIEチャート',option: {fill: 'brown','font-size': 18} },
data:[
// value is percent
{string:"111",color:"red",value:0.1},
{string:"2222",color:"green",value:0.6},
{string:"33333",color:"blue",value:0.3}
]
}).draw();
};
</script>
</head>
<body>
<p>PieChart(Animate)</p>
<div id="show_demo" style="width:400"></div>
<div id="debug"></div>
</body>
</html>