Created
June 11, 2013 23:37
-
-
Save abresler/5761777 to your computer and use it in GitHub Desktop.
Notre Dame 2012-2013 Football Player Stated Majors by Race -- Aragorn Alpha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> | |
<style> | |
.rChart { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
width: 800px; | |
height: 400px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id='chart158b8a1b80' class='rChart highcharts'></div> | |
<script type='text/javascript'> | |
(function($){ | |
$(function () { | |
var chart = new Highcharts.Chart({ | |
"dom": "chart158b8a1b80", | |
"width": 800, | |
"height": 400, | |
"credits": { | |
"href": null, | |
"text": null | |
}, | |
"title": { | |
"text": "Notre Dame Football: Breakdown of 2012-2013 Stated Majors by Race" | |
}, | |
"yAxis": { | |
"title": { | |
"text": "Number" | |
} | |
}, | |
"series": [ | |
{ | |
"data": [ | |
[ | |
"ARTS", | |
8 | |
], | |
[ | |
"BIZMAN", | |
3 | |
] | |
], | |
"name": "AA", | |
"type": "bar", | |
"marker": { | |
"radius": 3 | |
} | |
}, | |
{ | |
"data": [ | |
[ | |
"ARTS", | |
5 | |
], | |
[ | |
"BIZMAN", | |
13 | |
], | |
[ | |
"LIBART", | |
1 | |
], | |
[ | |
"PSYC", | |
2 | |
], | |
[ | |
"SOCI", | |
3 | |
] | |
], | |
"name": "C", | |
"type": "bar", | |
"marker": { | |
"radius": 3 | |
} | |
}, | |
{ | |
"data": [ | |
[ | |
"BIZMAN", | |
1 | |
] | |
], | |
"name": "H", | |
"type": "bar", | |
"marker": { | |
"radius": 3 | |
} | |
}, | |
{ | |
"data": [ | |
[ | |
"ARTS", | |
1 | |
], | |
[ | |
"SOCI", | |
2 | |
] | |
], | |
"name": "PI", | |
"type": "bar", | |
"marker": { | |
"radius": 3 | |
} | |
} | |
], | |
"xAxis": { | |
"title": { | |
"text": "Major.Code" | |
}, | |
"categories": [ "ARTS", "BIZMAN", "LIBART", "PSYC", "SOCI" ], | |
"labels": { | |
"rotation": -45, | |
"align": "right", | |
"style": { | |
"fontSize": "13px", | |
"fontFamily": "Verdana, sans-serif" | |
} | |
} | |
}, | |
"subtitle": { | |
"text": "Draft Visualization Using Data from Aragorn Technologies" | |
}, | |
"id": "chart158b8a1b80", | |
"chart": { | |
"renderTo": "chart158b8a1b80" | |
}, | |
"plotOptions": { | |
"column": { | |
"dataLabels": { | |
"enabled": true, | |
"rotation": -90, | |
"align": "right", | |
"color": "#FFFFFF", | |
"x": 4, | |
"y": 10, | |
"style": { | |
"fontSize": "13px", | |
"fontFamily": "Verdana, sans-serif" | |
} | |
} | |
} | |
}, | |
"legend": { | |
"align": "right", | |
"verticalAlign": "middle", | |
"layout": "vertical", | |
"title": { | |
"text": "Race" | |
} | |
} | |
}); | |
}); | |
})(jQuery); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment