JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'bar'
},
title: {
text: 'Mens basketball players who entered the game (2014-present)'
},
subtitle: {
text: 'Source: <a>ESPN.com</a>'
},
xAxis: {
categories: ['San Diego State', 'Arizona', 'Montana State', 'Samford', 'Arkansas Little-Rock', 'Portland State', 'Seattle', 'South Dakota', 'Pepperdine', 'Vanguard', 'Oregon', 'Texas A&M-CC', 'Louisville', 'Stephen F. Austin','Morgan State', 'UC Davis', 'Hawaii', 'UC Santa Barbara', 'Cal Poly', 'UC Irvine', 'Long Beach St.', 'Hawaii', 'UC Riverside', 'CSU Fullerton', 'UCD', 'Cal Poly', 'UC Santa Barbara', 'Bethesda', 'UC Irvine', 'CSU Fullerton', 'UC Riverside', 'Long Beach St.', 'UC Davis', 'NIU', 'Wright State', 'South Dakota',],
title: {
text: null
}
},
yAxis: {
min: 0,
title: {
text: 'Number of players',
align: 'high'
},
labels: {
overflow: 'justify'
}
},
tooltip: {
valueSuffix: ' players'
},
plotOptions: {
bar: {
dataLabels: {
enabled: true
}
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
x: -40,
y: 80,
floating: true,
borderWidth: 1,
backgroundColor: ((Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'),
shadow: true
},
credits: {
enabled: false
},
series: [{
name: 'Opponents',
data: [10,
14, 10, 11, 10,
9,
8,
10,
10,
11,
14,
10,
12,
11,
10,
9,
10,
11,
9,
13,
11,
11,
8,
11,
8,
8,
9,
8,
11,
10,
10,
11,
9,
11,
10,
10,]
}, {
...