-
Notifications
You must be signed in to change notification settings - Fork 0
/
baarchart.html
55 lines (48 loc) · 1000 Bytes
/
baarchart.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div id="chart" style="width:600px;height:400px;"></div>
<!--[if lt IE 9]><script src="js/excanvas.min.js"></script><![endif]-->
<script src="flotr2.min.js"> </script>
<script>
window.onload = function () {
wins = [[0,13],[1,11],[2,15],[3,15],[4,18],[5,21],[6,28]];
var years = [
[0, "2006"],
[1, "2007"],
[2, "2008"],
[3, "2009"],
[4, "2010"],
[5, "2011"],
[6, "2012"],
];
Flotr.draw(document.getElementById("chart"),[wins], {
title: "Manchester City Wins",
colors: ["#89AFD2"],
bars: {
show: true,
barWidth: 0.5,
shadowSize: 0,
fillOpacity: 1,
lineWidth: 0,
},
yaxis: {
min: 0,
tickDecimals: 0,
},
xaxis: {
ticks: years,
},
grid: {
horizontalLines: false,
verticalLines: false,
}
});
};
</script>
</body>
</html>