Minimum wage during years it changed
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
CSS
series: [{
name: 'Nominal',
data: [3.1, 3.35, 3.8, 4.25, 4.75, 5.15, 5.85, 6.55, 7.25, 7.25, 8.5, 10]
}, {
name: 'Real Dollars based of 2013',
data: [8.76, 8.59, 6.77, 7.27, 7.05, 7.47, 6.57, 7.09, 7.87, 7.25]
}]
8.5, 10
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'column'
},
title: {
text: 'The minimum wage during years it changed'
},
subtitle:{
text: 'Dollars adjusted for inflation are calculated based on the purchasing power of $1 in July of 2013.<br/>Source: Congressional Research Service'
},
xAxis: {
categories: [
'1980',
'1981',
'1990',
'1991',
'1996',
'1997',
'2007',
'2008',
'2009',
'2015',
'2016',
]
},
yAxis: [{
min: 0,
title: {
text: 'Dollars'
}
}, ],
legend: {
shadow: false
},
tooltip: {
shared: true
},
plotOptions: {
column: {
grouping: false,
shadow: false,
borderWidth: 0
}
},
series: [{
name: 'Dollars Adjusted for Inflation',
color: '#CD894E',
data: [8.76, 8.59, 6.77, 7.27, 7.05, 7.47, 6.57, 7.09, 7.87],
}, {
name: 'Dollar amount when passed',
color: 'rgba(126,86,134,.9)',
data: [3.1, 3.35, 3.8, 4.25, 4.75, 5.15, 5.85, 6.55, 7.25],
},
{
name: 'SB41',
color: '#BEAAC2',
data: [null, null, null, null, null, null, null, null, null, 10.10],
},
{
name: 'SB160',
color: '#583C5E',
data: [null, null, null, null, null, null, null, null, null, 8.50, 10],
},
]
});
});