if ($("#graph1").length) {
graph1();
}
if ($("#graph2a").length) {
graph2a();
}
if ($("#graph2b").length) {
graph2b();
}
if ($("#graph4").length) {
graph4();
}
if ($("#graph5").length) {
graph5();
}
if ($("#graph6").length) {
graph6();
}
if ($("#graph7").length) {
$("#graph7").css("height", "400px")
graph7();
}
function graph1() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'graph1',
defaultSeriesType: 'column'
},
title: {
text: null
},
xAxis: {
categories: ['Undergraduate', 'Graduate']
},
yAxis: {
min: 0,
gridLineWidth: 0,
labels: {
enabled: false
},
title: {
text: null
}
},
tooltip: {
formatter: function() {
return '' +
this.x + ': ' + Highcharts.numberFormat(this.y, 0, ",");
}
},
plotOptions: {
series: {
pointWidth: 80
},
column: {
pointPadding: 0.2,
borderWidth: 0,
dataLabels: {
enabled: true,
formatter: function() {
return Highcharts.numberFormat(this.y, 0, ",");
}
}
}
},
series: [{
name: 'Full-time',
color: "#586a9b",
data: [6301, 682]
},
{
name: 'Part-time',
color: "#e6ab76",
data: [1202, 1222]
}]
});
}
function graph2a() {
var grap2a = new Highcharts.Chart({
chart: {
renderTo: 'graph2a',
defaultSeriesType: 'bar',
marginRight: 30
},
title: {
text: "First Time Full-Time Students Starting Fall 2004"
},
xAxis: {
categories: ['4 Years Later', '6 Years Later']
},
yAxis: {
min: 0,
max: 100,
gridLineWidth: 0,
labels: {
enabled: false
},
title: {
text: null
}
},
legend: {
backgroundColor: '#FFFFFF',
reversed: true
},
tooltip: {
formatter: function() {
return '' +
this.series.name + ': ' + this.y + '%';
}
},
plotOptions: {
series: {
stacking: 'normal'
}
},
series: [{
dataLabels: {
enabled: true,
align: "right",
color: "#000",
x: 50,
formatter: function() {
return Highcharts.numberFormat(this.total, 1) + "%";
}
},
name: 'Graduated from WCU',
color: "#1d3065",
data: [32.6, 52.0]
},
{
name: 'Graduated at Another Institution',
color: "#8a9ccd",
data: [4.9, 11.3]
},
{
name: 'Still Enrolled at WCU',
color: "#9ca9cd",
data: [25.0, 3.1]
},
{
name: 'Still Enrolled at Another Institution',
color: "#586a9b",
data: [17.8, 11.3]
}]
});
}
function graph2b() {
var grap2b = new Highcharts.Chart({
chart: {
renderTo: 'graph2b',
defaultSeriesType: 'bar',
marginRight: 30
},
title: {
text: "Full Time Transfer Students Starting Fall 2004"
},
xAxis: {
categories: ['4 Years Later', '6 Years Later']
},
yAxis: {
min: 0,
max: 100,
gridLineWidth: 0,
labels: {
enabled: false
},
title: {
text: null
}
},
legend: {
backgroundColor: '#FFFFFF',
reversed: true
},
tooltip: {
formatter: function() {
return '' +
this.series.name + ': ' + this.y + '%';
}
},
plotOptions: {
series: {
stacking: 'normal'
}
},
series: [{
dataLabels: {
enabled: true,
align: "right",
color: "#000",
x: 50,
formatter: function() {
return Highcharts.numberFormat(this.total, 1) + "%";
}
},
name: 'Graduated from WCU',
color: "#1d3065",
data: [31.5, 50.0]
},
{
name: 'Graduated at Another Institution',
color: "#8a9ccd",
data: [6.1, 10.3]
},
{
name: 'Still Enrolled at WCU',
color: "#9ca9cd",
data: [22.6, 2.7]
},
{
name: 'Still Enrolled at Another Institution',
color: "#586a9b",
data: [19.1, 13.7]
}]
});
}
function graph4() {
graph4 = new Highcharts.Chart({
chart: {
renderTo: 'graph4',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: ''
},
tooltip: {
formatter: function() {
return this.point.name;
}
},
plotOptions: {
pie: {
size: "65%",
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
color: '#000000',
connectorColor: '#000000',
formatter: function() {
return this.point.name;
}
}
}
},
series: [{
type: 'pie',
name: 'Costs',
data: [
{name: "Room & Board
(on campus)
$6,980.00", y:6980, color:"#965b26"},
{name: "Other expenses
(books, transportation, etc..)
$3,971.00", y:3971, color:"#e6d476"},
{name: "Tuition (in-state)
$2,018.00", y:2018, color:"#ada26d"},
{name: "Required Fees
$3,369.00", y:3369, color:"#ad8b6d"}
]
}]
});
}
function graph5() {
chart5 = new Highcharts.Chart({
chart: {
renderTo: 'graph5',
defaultSeriesType: 'bar'
},
title: {
text: ''
},
tooltip: {
formatter: function() {
return '' + this.x + ': ' + Highcharts.numberFormat(this.y, 0) + "%";
}
},
plotOptions: {
series: {
pointWidth: 40
},
bar: {
dataLabels: {
enabled: true,
formatter: function() {
return Highcharts.numberFormat(this.y, 0) + "%";
}
}
}
},
xAxis: {
categories: ['Any Student Financial Aid', 'Any Grants or Scholarships', 'Federal Grants', 'Pell Grants', 'State/Local Grants or Scholarships', 'Institution Grants or Scholarships', 'Student Loans'],
title: {
text: null
}
},
yAxis: {
min: 0,
max: 100,
gridLineWidth: 0,
labels: {
enabled: false
},
title: {
text: null
}
},
legend: {
enabled: false
},
credits: {
enabled: false
},
series: [{
name: 'Data',
data: [
{
y: 77,
color: "#8a9ccd"
},
{
y: 67,
color: "#f3e49a"
},
{
y: 28,
color: "#ad8b6d"
},
{
y: 28,
color: "#4e5874"
},
{
y: 52,
color: "#e6ab76"
},
{
y: 56,
color: "#ada26d"
},
{
y: 50,
color: "#965b26"
}
]
}]
});
}
function graph6() {
chart6 = new Highcharts.Chart({
chart: {
renderTo: 'graph6',
defaultSeriesType: 'column'
},
title: {
text: null
},
xAxis: {
categories: ['New Freshman', 'Transfers']
},
yAxis: {
min: 0,
gridLineWidth: 0,
labels: {
enabled: false
},
title: {
text: null
}
},
tooltip: {
formatter: function() {
return '' +
this.x + ' ' + this.series.name + ': ' + Highcharts.numberFormat(this.y, 0, ",");
}
},
plotOptions: {
series: {
pointWidth: 50
},
column: {
pointPadding: 0.2,
borderWidth: 0,
dataLabels: {
enabled: true,
formatter: function() {
return Highcharts.numberFormat(this.y, 0, ",");
}
}
}
},
series: [{
name: 'Applied',
color: "#586a9b",
data: [14979, 1889]
},
{
name: 'Admitted',
color: "#e6ab76",
data: [5813, 1305]
},
{
name: 'Enrolled',
color: "#965b26",
data: [1440, 792]
}]
});
}
function graph7() {
chart7 = new Highcharts.Chart({
chart: {
renderTo: 'graph7',
defaultSeriesType: 'bar',
marginLeft: 210
},
title: {
text: ''
},
tooltip: {
formatter: function() {
return '' + this.x + ': ' + this.y + "%";
}
},
plotOptions: {
series: {
pointWidth: 40
},
bar: {
dataLabels: {
enabled: true,
formatter: function() {
return this.y + "%";
}
}
}
},
xAxis: {
categories: ["Employment", "Starting or Raising a Family", "Military", "Volunteer Service", "Undergraduate Study", "Graduate Study", "Other"],
title: {
text: null
}
},
yAxis: {
min: 0,
max: 100,
gridLineWidth: 0,
labels: {
enabled: false
},
title: {
text: null
}
},
legend: {
enabled: false
},
credits: {
enabled: false
},
series: [{
name: 'Data',
data: [{y:0, color: "#e6c276"},{y:0, color:"#e6d476"},{y:0, color:"#e6ab76"},{y:0, color:"#ad986d"},{y:0, color:"#ada26d"},{y:0, color:"#ad8b6d"},{y:0, color: "#967226"}]
}]
});
}