Skip to content

Instantly share code, notes, and snippets.

@abresler
Created June 11, 2013 22:52
Show Gist options
  • Save abresler/5761469 to your computer and use it in GitHub Desktop.
Save abresler/5761469 to your computer and use it in GitHub Desktop.
ND vs School Major Comparison -- Aragorn Alpha
<!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='chart158798940fb' class='rChart highcharts'></div>
<script type='text/javascript'>
(function($){
$(function () {
var chart = new Highcharts.Chart({
"dom": "chart158798940fb",
"width": 800,
"height": 400,
"credits": {
"href": null,
"text": null
},
"title": {
"text": "Notre Dame Football vs School Major Comparison"
},
"yAxis": {
"title": {
"text": "2012-2013 Percentage of ND Football Stated Majors"
},
"labels": {
"format": "{value} %"
}
},
"series": [
{
"data": [
[
0.0048146,
0,
0
]
],
"name": "AG",
"type": "line",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.020221,
0,
0
]
],
"name": "ARCH",
"type": "bubble",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.048146,
0.35897,
0.35897
]
],
"name": "ARTS",
"type": "scatter",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.046221,
0,
0
]
],
"name": "BIO",
"type": "line",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.20125,
0.4359,
0.4359
]
],
"name": "BIZMAN",
"type": "bubble",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.017814,
0,
0
]
],
"name": "COMP",
"type": "scatter",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.15985,
0,
0
]
],
"name": "CONST",
"type": "line",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.038999,
0,
0
]
],
"name": "ENG",
"type": "bubble",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.090997,
0,
0
]
],
"name": "ENGIN",
"type": "scatter",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.088108,
0,
0
]
],
"name": "FORLAN",
"type": "line",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.03611,
0,
0
]
],
"name": "GENSTUD",
"type": "bubble",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.065961,
0,
0
]
],
"name": "HEALTH",
"type": "scatter",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.030814,
0,
0
]
],
"name": "HIST",
"type": "line",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.013,
0.025641,
0.025641
]
],
"name": "LIBART",
"type": "bubble",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.016851,
0,
0
]
],
"name": "MATH",
"type": "scatter",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.017814,
0,
0
]
],
"name": "NATRESC",
"type": "line",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.013962,
0,
0
]
],
"name": "PHIL",
"type": "bubble",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.017814,
0,
0
]
],
"name": "PHYSSCI",
"type": "scatter",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.048146,
0.051282,
0.051282
]
],
"name": "PSYC",
"type": "line",
"marker": {
"radius": 3
}
},
{
"data": [
[
0.02311,
0,
0
]
],
"name": "RELIG",
"type": "bubble",
"marker": {
"radius": 3
}
},
{
"data": [
[
0,
0.12821,
0.12821
]
],
"name": "SOCI",
"type": "scatter",
"marker": {
"radius": 3
}
}
],
"xAxis": {
"title": {
"text": "2011-2012 Notre Dame % of Bachelor Degrees Conferred"
},
"labels": {
"format": "{value} %"
}
},
"subtitle": {
"text": "Draft Visualization Using Data from Aragorn Technologies"
},
"id": "chart158798940fb",
"chart": {
"renderTo": "chart158798940fb"
},
"legend": {
"align": "right",
"verticalAlign": "middle",
"layout": "vertical",
"title": {
"text": "Major ID"
}
}
});
});
})(jQuery);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment