JavaScript
Highcharts.chart('container', {
chart: {
type: 'area',
zoomType: 'x'
},
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: {
title: {
text: 'Billions'
},
labels: {
formatter: function() {
return this.value / 1000;
}
}
},
tooltip: {
split: true,
valueSuffix: ' millions'
},
series: [{
name: 'Asia',
color: 'red',
data: [
5.3443842409178615,
4.891966897062957,
4.9297197656705976,
4.790178382769227,
4.374533775262535,
4.813464709557593,
4.905750963836908,
4.892099801450968,
4.787739752791822,
4.7284508822485805,
4.669750289991498,
5.038566229864955,
4.800021305680275,
4.5916205970570445,
4.697027377784252,
4.562488986179233,
4.564762691967189,
4.623172681778669,
4.7659274050965905,
5.035475420765579,
4.60878168605268,
4.994563109241426,
4.549959204159677,
4.588047857396305,
4.672477510757744,
4.857759702019393,
4.839520315639675,
4.4650625651702285,
4.282180151902139,
4.823509888723493,
4.896255254745483,
4.427488699555397,
4.626135811209679,
4.451925681903958,
4.542211519554257,
4.802162528038025,
4.4987798538059,
4.595883681438863,
4.386121517978609,
4.551154837012291,
4.790563144721091,
4.890722787939012,
4.881233597174287,
4.570114278234541,
4.607447292655706,
4.487539228051901,
4.635932094417512,
4.464651362970471,
4.551074657589197,
4.490050399675965,
4.599611544981599,
4.5092974146828055,
4.75708968937397,
...