anychart.onDocumentReady(function () {
table = anychart.data.table();
['1086-01-01', null, 1710000],
['1190-01-01', null, 3100000],
['1220-01-01', null, 3970000],
['1250-01-01', null, 4230000],
['1279-01-01', null, 4430000],
['1290-01-01', null, 4750000],
['1315-01-01', null, 4690000],
['1325-01-01', null, 4120000],
['1348-01-01', null, 4810000],
['1351-01-01', null, 2600000],
['1377-01-01', null, 2500000],
['1400-01-01', null, 2080000],
['1430-01-01', null, 2020000],
['1450-01-01', null, 1900000],
['1490-01-01', null, 2140000],
['1522-01-01', null, 2350000],
['1541-01-01', null, 2830000],
['1560-01-01', null, 3200000],
['1600-01-01', null, 4110000],
['1650-01-01', null, 5310000],
['1700-01-01', null, 5200000],
['1790-01-01', 3929214, 5836464],
['1795-01-01', 4390561, 7002323],
['1800-01-01', 5236631, 7754875],
['1805-01-01', 5989289, 8182994],
['1810-01-01', 7239881, 8762178],
['1815-01-01', 8722382, 9598787],
['1820-01-01', 9638453, 10402143],
['1825-01-01', 10923857, 10887676],
['1830-01-01', 12866020, 12011830],
['1835-01-01', 15454230, 12778565],
['1840-01-01', 17069453, 13654914],
['1845-01-01', 19234543, 14567232],
['1850-01-01', 23191876, 15288885],
['1855-01-01', 28347121, 16783346],
['1860-01-01', 31443321, 18325052],
['1865-01-01', 34098412, 19998343],
['1870-01-01', 38558371, 21361235],
['1875-01-01', 44728322, 22975983],
['1880-01-01', 49371340, 24397385],
['1885-01-01', 53989443, 25898914],
['1890-01-01', 62979766, 27231229],
['1895-01-01', 71883243, 29232114],
['1900-01-01', 76212168, 30072180],
['1905-01-01', 85023411, 32209584],
['1910-01-01', 92228496, 33561235],
['1915-01-01', 100378232, 34001234],
['1920-01-01', 106021537, 35230225],
['1925-01-01', 118323005, 35958223],
['1930-01-01', 123202624, 37359045],
['1935-01-01', 126232034, 37799411],
['1940-01-01', 132164569, 38084321],
['1945-01-01', 144773641, 38422019],
['1950-01-01', 151325798, 38668830],
['1955-01-01', 160460555, 40698787],
['1960-01-01', 179323175, 41159213],
['1965-01-01', 188232951, 42289387],
['1970-01-01', 203211926, 43460525],
['1975-01-01', 215789873, 43899645],
['1980-01-01', 226545805, 45978080],
['1985-01-01', 239905274, 47223956],
['1990-01-01', 248709873, 48197972],
['1995-01-01', 272119084, 49066487],
['2000-01-01', 281421906, 49138831],
['2005-01-01', 299456285, 51121448],
['2010-01-01', 308745538, 53012456],
['2015-01-01', 318914629, 54986564]
mapping_usa = table.mapAs();
mapping_usa.addField('value', 1);
mapping_uk = table.mapAs();
mapping_uk.addField('value', 2);
var chart = anychart.stock();
var series_usa = chart.plot(0).area(mapping_usa);
series_usa.fill("#CC9933");
series_usa.stroke("#FFCC33");
var series_uk = chart.plot(1).area(mapping_uk);
series_uk.hatchFill("diagonal-cross");
chart.title('Stock Area Demo \nPopulation growth: USA vs UK');
chart.plot(0).yAxis().labels().format(function() {
return this.value/1000000 + "m";
chart.container('container');