-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPieChart.html
More file actions
75 lines (68 loc) · 2.92 KB
/
Copy pathPieChart.html
File metadata and controls
75 lines (68 loc) · 2.92 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>MindFusion Charting Sample - PieChart</title>
<link href="common/samples.css" rel="stylesheet" />
<script type="text/javascript" src="common/samples.js"></script>
</head>
<body>
<input type="hidden" id="collapsed" />
<div id="header">
<div style="float: left; margin-left: 5px;">
<a href="index.html" style="margin-left: 10px;">Index</a>
</div>
<div style="float: right; margin-right: 5px;">
<a href="PieChart.js" style="margin-right: 10px;">View source</a>
<button id="expandButton" onclick="onExpandCollapse()">
›
</button>
</div>
</div>
<div id="info">
<div id="infoTab" style="padding: 10px;">
<h1>
Market Share Distribution
</h1>
<p id="pinfo">
This sample demonstrates the PieChart control, showcasing data distribution with interactive
rotation, slice detachment, and doughnut mode toggling.
</p>
</div>
</div>
<div id="content">
<div id="controls" style="height: auto; max-height: 180px; overflow-y: auto;">
<div class="control-row" style="margin-bottom: 15px;">
<label><input type="checkbox" id="doughnut"> Doughnut</label>
<label style="margin-left: 15px;"><input type="checkbox" id="allowRotate"> Allow Rotate</label>
<label style="margin-left: 15px;"><input type="checkbox" id="showDataLabels"> Show Labels</label>
</div>
<div class="control-row" style="margin-bottom: 15px;">
<strong>Detached Slices:</strong>
<label id="label0" style="margin-left: 10px;"><input type="checkbox" id="slice0" value="0"> Year 1</label>
<label id="label1" style="margin-left: 10px;"><input type="checkbox" id="slice1" value="1"> Year 2</label>
<label id="label2" style="margin-left: 10px;"><input type="checkbox" id="slice2" value="2"> Year 3</label>
<label id="label3" style="margin-left: 10px;"><input type="checkbox" id="slice3" value="3"> Year 4</label>
</div>
<div class="control-row">
<label>Chart Padding <input type="range" id="chartPadding" min="0" max="50" style="width: 80px;" /></label>
<label style="margin-left: 20px;">Start Angle <input type="range" id="startAngle" min="0" max="360" style="width: 80px;" /></label>
</div>
</div>
<div style="position: absolute; left: 0px; top: 180px; bottom: 0px; right: 0px">
<canvas id="pieChart" style="width: 100%; height: 100%; display: block;">
</canvas>
</div>
</div>
<div id="footer">
<span id="copyright"></span>
</div>
<script src="Scripts/drawing.js" type="text/javascript"></script>
<script src="Scripts/controls.js" type="text/javascript"></script>
<script src="Scripts/common.js" type="text/javascript"></script>
<script src="Scripts/common-collections.js" type="text/javascript"></script>
<script src="Scripts/gauges.js" type="text/javascript"></script>
<script src="Scripts/charting.js" type="text/javascript"></script>
<script type="text/javascript" src="PieChart.js"></script>
</body>
</html>