forked from ljb-2000/theme
-
Notifications
You must be signed in to change notification settings - Fork 2
/
maps_iframe.html
53 lines (46 loc) · 1.29 KB
/
maps_iframe.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
<!DOCTYPE html>
<html lang="en">
<head>
<link type="text/css" rel="stylesheet" href="lib/css/morris.css"/>
</head>
<body>
<div id="hero-donut" class="graph" style="width:160px;height:160px;position:absolute;left:20px;"></div>
<!-- REF CDN JQUERY -->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="lib/js/raphael.min.js"></script>
<script src="lib/js/morris.min.js"></script>
<script>
$(function () {
Morris.Donut({
element: 'hero-donut',
data: [
{label: 'Jam', value: 25 },
{label: 'Frosted', value: 40 },
{label: 'Custard', value: 25 },
{label: 'Sugar', value: 10 }
],
colors: ['#7BAEDA', '#8DCD8D', '#F4C583', '#ACACCF'],
formatter: function (y) { return y + "%" }
});
Morris.Bar({
element: 'hero-bar',
data: [
{device: 'iPhone', geekbench: 136},
{device: 'iPhone 3G', geekbench: 137},
{device: 'iPhone 3GS', geekbench: 275},
{device: 'iPhone 4', geekbench: 380},
{device: 'iPhone 4S', geekbench: 655},
{device: 'iPhone 5', geekbench: 1571}
],
xkey: 'device',
ykeys: ['geekbench'],
labels: ['Geekbench'],
barRatio: 0.4,
xLabelAngle: 35,
barColors: ['#8DCD8D', '#F4C583', '#ACACCF'],
hideHover: 'auto'
});
});
</script>
</body>
</html>