Wealth Accumulation - Highcharts
by verashn
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: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
Highcharts.setOptions({
colors: ['#3d91ce', '#203770', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'],
lang: {
decimalPoint: '.',
thousandsSeparator: ','
},
chart: {
style: {
fontFamily: 'Source Sans Pro'
}
}
});
$('#container').highcharts({
chart: {
type: 'area'
},
title: {
text: 'Wealth Accumulation'
},
xAxis: {
categories: ['3/1/2007', '4/1/2007', '5/1/2007', '6/1/2007', '7/1/2007', '8/1/2007','9/1/2007','10/1/2007']
},
yAxis: {
reversedStacks: false
},
credits: {
enabled: false
},
plotOptions: {
area: {
stacking: 'normal',
lineColor: '#666666',
lineWidth: 1,
marker: {
lineWidth: 1,
lineColor: '#666666'
}
}
},
series: [{
name: 'Net Contributions/Withdrawals',
data: [83521901.34, 73094190.33, 71050674.76, 67006941.87, 65696967.19,55477480.12,57456039.49,57715076.23]
}, {
name: 'Total Return Net of Fees',
data: [0, 2086838.64, 3071740.61, 1961133.91, 2396365.31999999,2472526.84,5119665.27,7104581.82999999]
}]
});
});