Skip to content

Commit 05bbb1b

Browse files
author
Andrew McNamara
committed
Add simple pie chart widget.
1 parent 3c09194 commit 05bbb1b

File tree

4 files changed

+3828
-156
lines changed

4 files changed

+3828
-156
lines changed

index.html

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<html>
2+
<head>
3+
<script type="text/javascript" src="./react-dashboard.js"></script>
4+
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
5+
</head>
6+
<body>
7+
8+
<div id="examples">
9+
<div id="pieSample"/>
10+
</div>
11+
</body>
12+
13+
<script>
14+
$(document).ready(function() {
15+
var pieChartData = [
16+
{
17+
value: 300,
18+
color:"#F7464A",
19+
highlight: "#FF5A5E",
20+
label: "Red"
21+
},
22+
{
23+
value: 50,
24+
color: "#46BFBD",
25+
highlight: "#5AD3D1",
26+
label: "Green"
27+
},
28+
{
29+
value: 100,
30+
color: "#FDB45C",
31+
highlight: "#FFC870",
32+
label: "Yellow"
33+
}
34+
];
35+
36+
JobReady.Dashboard.addPieChart('pieSample','Sample Pie Chart', '', pieChartData);
37+
38+
});
39+
40+
</script>
41+
</html>

0 commit comments

Comments
 (0)