Skip to content

Instantly share code, notes, and snippets.

@patilv
Created February 7, 2014 13:56
Show Gist options
  • Save patilv/8862990 to your computer and use it in GitHub Desktop.
Save patilv/8862990 to your computer and use it in GitHub Desktop.
weeklyhplot
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<script src='http://code.jquery.com/jquery-1.9.1.min.js' type='text/javascript'></script>
<script src='http://code.highcharts.com/highcharts.js' type='text/javascript'></script>
<script src='http://code.highcharts.com/highcharts-more.js' type='text/javascript'></script>
<script src='http://code.highcharts.com/modules/exporting.js' type='text/javascript'></script>
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 800px;
height: 400px;
}
</style>
</head>
<body>
<div id='chartcbc72a67c0d' class='rChart highcharts'></div>
<script type='text/javascript'>
(function($){
$(function () {
var chart = new Highcharts.Chart({
"dom": "chartcbc72a67c0d",
"width": 800,
"height": 400,
"credits": {
"href": null,
"text": null
},
"exporting": {
"enabled": false
},
"title": {
"text": null
},
"yAxis": [
{
"title": {
"text": "value"
}
}
],
"series": [
{
"data": [
[
"1",
11.99
],
[
"2",
11.73
],
[
"3",
12.06
],
[
"4",
12.21
],
[
"5",
11.37
],
[
"6",
11.4
],
[
"7",
12.47
],
[
"8",
11.81
],
[
"9",
11.35
],
[
"10",
11.42
],
[
"11",
11.45
],
[
"12",
11.8
],
[
"13",
11.83
],
[
"14",
12.8
],
[
"15",
11.99
],
[
"16",
12.15
],
[
"17",
12.14
],
[
"18",
10.29
],
[
"WildCard",
12.16
],
[
"Division",
13.19
],
[
"ConfChamp",
13.17
],
[
"SuperBowl",
14.54
]
],
"name": "Mean.Points.Diff",
"type": "line",
"marker": {
"radius": 3
}
},
{
"data": [
[
"1",
-1.22
],
[
"2",
-1.17
],
[
"3",
-1.11
],
[
"4",
-1.24
],
[
"5",
-1.22
],
[
"6",
-1.06
],
[
"7",
-1.28
],
[
"8",
-1.18
],
[
"9",
-1.13
],
[
"10",
-1.29
],
[
"11",
-1.11
],
[
"12",
-1.15
],
[
"13",
-1.21
],
[
"14",
-1.25
],
[
"15",
-1.21
],
[
"16",
-1.11
],
[
"17",
-1.06
],
[
"18",
-1.21
],
[
"WildCard",
-1.35
],
[
"Division",
-1.22
],
[
"ConfChamp",
-1.67
],
[
"SuperBowl",
-2.06
]
],
"name": "Mean.Turnovers.Diff",
"type": "line",
"marker": {
"radius": 3
}
},
{
"data": [
[
"1",
56.74
],
[
"2",
57.25
],
[
"3",
59.11
],
[
"4",
54.82
],
[
"5",
51.54
],
[
"6",
57.46
],
[
"7",
52.66
],
[
"8",
48.53
],
[
"9",
55
],
[
"10",
44.14
],
[
"11",
54.09
],
[
"12",
58.94
],
[
"13",
49.88
],
[
"14",
58.72
],
[
"15",
58.88
],
[
"16",
54.54
],
[
"17",
52.46
],
[
"18",
40.29
],
[
"WildCard",
56.93
],
[
"Division",
63.49
],
[
"ConfChamp",
49.35
],
[
"SuperBowl",
66.73
]
],
"name": "Mean.YardsGained.Diff",
"type": "line",
"marker": {
"radius": 3
}
}
],
"xAxis": [
{
"labels": {
"rotation": -90
},
"style": {
"fontSize": "10px"
},
"categories": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "WildCard", "Division", "ConfChamp", "SuperBowl" ]
}
],
"subtitle": {
"text": null
},
"chart": {
"zoomType": "xy",
"renderTo": "chartcbc72a67c0d"
},
"legend": {
"align": "top",
"verticalAlign": "top",
"layout": "horizontal"
},
"id": "chartcbc72a67c0d"
});
});
})(jQuery);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment