JavaScript
Highcharts.chart('container', {
chart: {
type: 'area'
},
title: {
text: 'Historic and Estimated Worldwide Population Growth by Region'
},
subtitle: {
text: 'Source: Wikipedia.org'
},
xAxis: {
categories: ['1750', '1800', '1850', '1900', '1950', '1999', '2050'],
tickmarkPlacement: 'on',
title: {
enabled: false
}
},
yAxis: {
min:2000,
title: {
text: 'Billions'
},
labels: {
formatter: function () {
return this.value / 1000;
}
}
},
tooltip: {
split: true,
valueSuffix: ' millions'
},
plotOptions: {
area: {
stacking: 'normal',
lineColor: '#666666',
lineWidth: 1,
marker: {
lineWidth: 1,
lineColor: '#666666'
}
},
series:{
fillOpacity: 1,
}
},
series: [{
name: 'Asia',
data: [20000, 20024, 20048.0288, 20072.086434560002, 20096.172938281477, 20120.288345807417, 20144.43269182239, 20168.606011052576, 20192.80833826584, 20217.03970827176, 20241.30015592169, 20265.5897161088, 20289.90842376813, 20314.256313876653, 20338.633421453305]
}, {
name: 'Africa',
data: [5000, 5006, 10018.0072, 15036.028808640001, 20060.072043210374, 25090.14412966223, 30126.252302617828, 35168.40380538097, 40216.60588994743, 45270.86581701537, 50331.190855995796, 55397.588285023, 60470.06539096503, 65548.62946943419, 70633.28782479752]
}, {
name: 'Europe',
data: [44, 44.052800000000005, 88.15846336000001, 132.31705351603202, 176.52863398025127, 220.79326834102758, 265.11102026303683, 309.4819534873525, 353.9061318315373, 398.3836191897352, 442.9144795327629, 487.4987769082023, 532.1365754404922, 576.8279393310208, 621.5729328582181]
}]
});