Skip to content

Instantly share code, notes, and snippets.

@inodb
Created October 20, 2017 02:19
Show Gist options
  • Save inodb/f2bf8f331d50e94a557cd50718ca1589 to your computer and use it in GitHub Desktop.
Save inodb/f2bf8f331d50e94a557cd50718ca1589 to your computer and use it in GitHub Desktop.
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='data:text/css;base64,Ci8qKioqKioqKioqKioqKioqKioqKgogKiBIVE1MIENTUwogKi8KCgouY2hhcnRXcmFwIHsKICBtYXJnaW46IDA7CiAgcGFkZGluZzogMDsKICBvdmVyZmxvdzogaGlkZGVuOwp9CgoKLyoqKioqKioqKioqKioqKioqKioqCiAqIFRPT0xUSVAgQ1NTCiAqLwoKLm52dG9vbHRpcCB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjU1LDI1NSwyNTUsMSk7CiAgcGFkZGluZzogMXB4OwogIGJvcmRlcjogMXB4IHNvbGlkIHJnYmEoMCwwLDAsLjIpOwogIHotaW5kZXg6IDEwMDAwOwoKICBmb250LWZhbWlseTogQXJpYWw7CiAgZm9udC1zaXplOiAxM3B4OwoKICB0cmFuc2l0aW9uOiBvcGFjaXR5IDUwMG1zIGxpbmVhcjsKICAtbW96LXRyYW5zaXRpb246IG9wYWNpdHkgNTAwbXMgbGluZWFyOwogIC13ZWJraXQtdHJhbnNpdGlvbjogb3BhY2l0eSA1MDBtcyBsaW5lYXI7CgogIHRyYW5zaXRpb24tZGVsYXk6IDUwMG1zOwogIC1tb3otdHJhbnNpdGlvbi1kZWxheTogNTAwbXM7CiAgLXdlYmtpdC10cmFuc2l0aW9uLWRlbGF5OiA1MDBtczsKCiAgLW1vei1ib3gtc2hhZG93OiAwIDVweCAxMHB4IHJnYmEoMCwwLDAsLjIpOwogIC13ZWJraXQtYm94LXNoYWRvdzogMCA1cHggMTBweCByZ2JhKDAsMCwwLC4yKTsKICBib3gtc2hhZG93OiAwIDVweCAxMHB4IHJ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HVzZWQgaW4gdGhlIGV4YW1wbGUuICBJIHNob3VsZCBlaXRoZXIgbWFrZSB0aGVtIHN0YW5kYXJkIGFuZCBsZWF2ZSB0aGVtIGhlcmUsIG9yIG1vdmUgdG8gYSBDU1MgZmlsZSBub3QgaW5jbHVkZWQgaW4gdGhlIGxpYnJhcnkKICovCi5udmQzLm52LWluZGVudGVkdHJlZSAubmFtZSB7CiAgbWFyZ2luLWxlZnQ6IDVweDsKfQoKLm52ZDMubnYtaW5kZW50ZWR0cmVlIC5jbGlja2FibGUgewogIGNvbG9yOiAjMDhDOwogIGN1cnNvcjogcG9pbnRlcjsKfQoKLm52ZDMubnYtaW5kZW50ZWR0cmVlIHNwYW4uY2xpY2thYmxlOmhvdmVyIHsKICBjb2xvcjogIzAwNTU4MDsKICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKfQoKCi5udmQzLm52LWluZGVudGVkdHJlZSAubnYtY2hpbGRyZW5Db3VudCB7CiAgZGlzcGxheTogaW5saW5lLWJsb2NrOwogIG1hcmdpbi1sZWZ0OiA1cHg7Cn0KCi5udmQzLm52LWluZGVudGVkdHJlZSAubnYtdHJlZWljb24gewogIGN1cnNvcjogcG9pbnRlcjsKICAvKgogIGN1cnNvcjogbi1yZXNpemU7CiAgKi8KfQoKLm52ZDMubnYtaW5kZW50ZWR0cmVlIC5udi10cmVlaWNvbi5udi1mb2xkZWQgewogIGN1cnNvcjogcG9pbnRlcjsKICAvKgogIGN1cnNvcjogcy1yZXNpemU7CiAgKi8KfQoKCg=='>
<link rel='stylesheet' href='data:text/css;base64,Lm52ZDMgewogICAgZGlzcGxheTogYmxvY2s7CiAgICBtYXJnaW4tbGVmdDogYXV0bzsKICAgIG1hcmdpbi1yaWdodDogYXV0bzsKICAgIHdpZHRoOiA4MDBweDsKICAgIGhlaWdodDogNDAwcHg7CiAgICAvKiBiYWNrZ3JvdW5kOiAjZWVlOyAqLwp9ICAK'>
<script src='data:application/javascript;base64,LyohIGpRdWVyeSB2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YmMSE9bi5nZXRVVENEYXRlKCl9XSxbeWEudGltZS5mb3JtYXQudXRjKCIlSSAlcCIpLGZ1bmN0aW9uKG4pe3JldHVybiBuLmdldFVUQ0hvdXJzKCl9XSxbeWEudGltZS5mb3JtYXQudXRjKCIlSTolTSIpLGZ1bmN0aW9uKG4pe3JldHVybiBuLmdldFVUQ01pbnV0ZXMoKX1dLFt5YS50aW1lLmZvcm1hdC51dGMoIjolUyIpLGZ1bmN0aW9uKG4pe3JldHVybiBuLmdldFVUQ1NlY29uZHMoKX1dLFt5YS50aW1lLmZvcm1hdC51dGMoIi4lTCIpLGZ1bmN0aW9uKG4pe3JldHVybiBuLmdldFVUQ01pbGxpc2Vjb25kcygpfV1dLHZsPWZhKG1sKTtyZXR1cm4gZGwueWVhcj1mdW5jdGlvbihuLHQpe3JldHVybiBnbC5kb21haW4obi5tYXAoZGEpKS50aWNrcyh0KS5tYXAocGEpfSx5YS50aW1lLnNjYWxlLnV0Yz1mdW5jdGlvbigpe3JldHVybiBsYSh5YS5zY2FsZS5saW5lYXIoKSxkbCx2bCl9LHlhLnRleHQ9Z3QoZnVuY3Rpb24obil7cmV0dXJuIG4ucmVzcG9uc2VUZXh0fSkseWEuanNvbj1mdW5jdGlvbihuLHQpe3JldHVybiBwdChuLCJhcHBsaWNhdGlvbi9qc29uIixtYSx0KX0seWEuaHRtbD1mdW5jdGlvbihuLHQpe3JldHVybiBwdChuLCJ0ZXh0L2h0bWwiLHZhLHQpfSx5YS54bWw9Z3QoZnVuY3Rpb24obil7cmV0dXJuIG4ucmVzcG9uc2VYTUx9KSx5YX0oKTs=' type='text/javascript'></script>
<script src='data:application/javascript;base64,KGZ1bmN0aW9uKCl7ZnVuY3Rpb24gdChlLHQpe3JldHVybihuZXcgRGF0ZSh0LGUrMSwwKSkuZ2V0RGF0ZSgpfWZ1bmN0aW9uIG4oZSx0LG4pe3JldHVybiBmdW5jdGlvbihyLGkscyl7dmFyIG89ZShyKSx1PVtdO288ciYmdChvKTt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dXMgPSAyMDAsCiAgICAgICAgICBkaXN0b3J0aW9uID0gMiwKICAgICAgICAgIGswLAogICAgICAgICAgazEsCiAgICAgICAgICBmb2N1cyA9IFswLCAwXTsKCiAgICAgIGZ1bmN0aW9uIGZpc2hleWUoZCkgewogICAgICAgIHZhciBkeCA9IGQueCAtIGZvY3VzWzBdLAogICAgICAgICAgICBkeSA9IGQueSAtIGZvY3VzWzFdLAogICAgICAgICAgICBkZCA9IE1hdGguc3FydChkeCAqIGR4ICsgZHkgKiBkeSk7CiAgICAgICAgaWYgKCFkZCB8fCBkZCA+PSByYWRpdXMpIHJldHVybiB7eDogZC54LCB5OiBkLnksIHo6IDF9OwogICAgICAgIHZhciBrID0gazAgKiAoMSAtIE1hdGguZXhwKC1kZCAqIGsxKSkgLyBkZCAqIC43NSArIC4yNTsKICAgICAgICByZXR1cm4ge3g6IGZvY3VzWzBdICsgZHggKiBrLCB5OiBmb2N1c1sxXSArIGR5ICogaywgejogTWF0aC5taW4oaywgMTApfTsKICAgICAgfQoKICAgICAgZnVuY3Rpb24gcmVzY2FsZSgpIHsKICAgICAgICBrMCA9IE1hdGguZXhwKGRpc3RvcnRpb24pOwogICAgICAgIGswID0gazAgLyAoazAgLSAxKSAqIHJhZGl1czsKICAgICAgICBrMSA9IGRpc3RvcnRpb24gLyByYWRpdXM7CiAgICAgICAgcmV0dXJuIGZpc2hleWU7CiAgICAgIH0KCiAgICAgIGZpc2hleWUucmFkaXVzID0gZnVuY3Rpb24oXykgewogICAgICAgIGlmICghYXJndW1lbnRzLmxlbmd0aCkgcmV0dXJuIHJhZGl1czsKICAgICAgICByYWRpdXMgPSArXzsKICAgICAgICByZXR1cm4gcmVzY2FsZSgpOwogICAgICB9OwoKICAgICAgZmlzaGV5ZS5kaXN0b3J0aW9uID0gZnVuY3Rpb24oXykgewogICAgICAgIGlmICghYXJndW1lbnRzLmxlbmd0aCkgcmV0dXJuIGRpc3RvcnRpb247CiAgICAgICAgZGlzdG9ydGlvbiA9ICtfOwogICAgICAgIHJldHVybiByZXNjYWxlKCk7CiAgICAgIH07CgogICAgICBmaXNoZXllLmZvY3VzID0gZnVuY3Rpb24oXykgewogICAgICAgIGlmICghYXJndW1lbnRzLmxlbmd0aCkgcmV0dXJuIGZvY3VzOwogICAgICAgIGZvY3VzID0gXzsKICAgICAgICByZXR1cm4gZmlzaGV5ZTsKICAgICAgfTsKCiAgICAgIHJldHVybiByZXNjYWxlKCk7CiAgICB9CiAgfTsKCiAgZnVuY3Rpb24gZDNfZmlzaGV5ZV9zY2FsZShzY2FsZSwgZCwgYSkgewoKICAgIGZ1bmN0aW9uIGZpc2hleWUoXykgewogICAgICB2YXIgeCA9IHNjYWxlKF8pLAogICAgICAgICAgbGVmdCA9IHggPCBhLAogICAgICAgICAgdiwKICAgICAgICAgIHJhbmdlID0gZDMuZXh0ZW50KHNjYWxlLnJhbmdlKCkpLAogICAgICAgICAgbWluID0gcmFuZ2VbMF0sCiAgICAgICAgICBtYXggPSByYW5nZVsxXSwKICAgICAgICAgIG0gPSBsZWZ0ID8gYSAtIG1pbiA6IG1heCAtIGE7CiAgICAgIGlmIChtID09IDApIG0gPSBtYXggLSBtaW47CiAgICAgIHJldHVybiAobGVmdCA/IC0xIDogMSkgKiBtICogKGQgKyAxKSAvIChkICsgKG0gLyBNYXRoLmFicyh4IC0gYSkpKSArIGE7CiAgICB9CgogICAgZmlzaGV5ZS5kaXN0b3J0aW9uID0gZnVuY3Rpb24oXykgewogICAgICBpZiAoIWFyZ3VtZW50cy5sZW5ndGgpIHJldHVybiBkOwogICAgICBkID0gK187CiAgICAgIHJldHVybiBmaXNoZXllOwogICAgfTsKCiAgICBmaXNoZXllLmZvY3VzID0gZnVuY3Rpb24oXykgewogICAgICBpZiAoIWFyZ3VtZW50cy5sZW5ndGgpIHJldHVybiBhOwogICAgICBhID0gK187CiAgICAgIHJldHVybiBmaXNoZXllOwogICAgfTsKCiAgICBmaXNoZXllLmNvcHkgPSBmdW5jdGlvbigpIHsKICAgICAgcmV0dXJuIGQzX2Zpc2hleWVfc2NhbGUoc2NhbGUuY29weSgpLCBkLCBhKTsKICAgIH07CgogICAgZmlzaGV5ZS5uaWNlID0gc2NhbGUubmljZTsKICAgIGZpc2hleWUudGlja3MgPSBzY2FsZS50aWNrczsKICAgIGZpc2hleWUudGlja0Zvcm1hdCA9IHNjYWxlLnRpY2tGb3JtYXQ7CiAgICByZXR1cm4gZDMucmViaW5kKGZpc2hleWUsIHNjYWxlLCAiZG9tYWluIiwgInJhbmdlIik7CiAgfQp9KSgpOwo=' type='text/javascript'></script>
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 800px;
height: 400px;
}
</style>
</head>
<body >
<div id = 'chart4ce3496f550' class = 'rChart nvd3'></div>
<script type='text/javascript'>
$(document).ready(function(){
drawchart4ce3496f550()
});
function drawchart4ce3496f550(){
var opts = {
"dom": "chart4ce3496f550",
"width": 800,
"height": 400,
"x": "Year",
"y": "Population",
"group": "Region",
"type": "stackedAreaChart",
"title": "World Populations",
"id": "chart4ce3496f550"
},
data = [
{
"Region": "AFRICA",
"Year": "1950",
"Population": 0.23
},
{
"Region": "ASIA",
"Year": "1950",
"Population": 1.39
},
{
"Region": "EUROPE",
"Year": "1950",
"Population": 0.55
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1950",
"Population": 0.17
},
{
"Region": "NORTHERN AMERICA",
"Year": "1950",
"Population": 0.17
},
{
"Region": "OCEANIA",
"Year": "1950",
"Population": 0.01
},
{
"Region": "AFRICA",
"Year": "1951",
"Population": 0.23
},
{
"Region": "ASIA",
"Year": "1951",
"Population": 1.42
},
{
"Region": "EUROPE",
"Year": "1951",
"Population": 0.55
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1951",
"Population": 0.17
},
{
"Region": "NORTHERN AMERICA",
"Year": "1951",
"Population": 0.17
},
{
"Region": "OCEANIA",
"Year": "1951",
"Population": 0.01
},
{
"Region": "AFRICA",
"Year": "1952",
"Population": 0.24
},
{
"Region": "ASIA",
"Year": "1952",
"Population": 1.45
},
{
"Region": "EUROPE",
"Year": "1952",
"Population": 0.56
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1952",
"Population": 0.18
},
{
"Region": "NORTHERN AMERICA",
"Year": "1952",
"Population": 0.18
},
{
"Region": "OCEANIA",
"Year": "1952",
"Population": 0.01
},
{
"Region": "AFRICA",
"Year": "1953",
"Population": 0.24
},
{
"Region": "ASIA",
"Year": "1953",
"Population": 1.48
},
{
"Region": "EUROPE",
"Year": "1953",
"Population": 0.57
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1953",
"Population": 0.18
},
{
"Region": "NORTHERN AMERICA",
"Year": "1953",
"Population": 0.18
},
{
"Region": "OCEANIA",
"Year": "1953",
"Population": 0.01
},
{
"Region": "AFRICA",
"Year": "1954",
"Population": 0.25
},
{
"Region": "ASIA",
"Year": "1954",
"Population": 1.51
},
{
"Region": "EUROPE",
"Year": "1954",
"Population": 0.57
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1954",
"Population": 0.19
},
{
"Region": "NORTHERN AMERICA",
"Year": "1954",
"Population": 0.18
},
{
"Region": "OCEANIA",
"Year": "1954",
"Population": 0.01
},
{
"Region": "AFRICA",
"Year": "1955",
"Population": 0.25
},
{
"Region": "ASIA",
"Year": "1955",
"Population": 1.53
},
{
"Region": "EUROPE",
"Year": "1955",
"Population": 0.58
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1955",
"Population": 0.19
},
{
"Region": "NORTHERN AMERICA",
"Year": "1955",
"Population": 0.19
},
{
"Region": "OCEANIA",
"Year": "1955",
"Population": 0.01
},
{
"Region": "AFRICA",
"Year": "1956",
"Population": 0.26
},
{
"Region": "ASIA",
"Year": "1956",
"Population": 1.56
},
{
"Region": "EUROPE",
"Year": "1956",
"Population": 0.58
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1956",
"Population": 0.2
},
{
"Region": "NORTHERN AMERICA",
"Year": "1956",
"Population": 0.19
},
{
"Region": "OCEANIA",
"Year": "1956",
"Population": 0.01
},
{
"Region": "AFRICA",
"Year": "1957",
"Population": 0.27
},
{
"Region": "ASIA",
"Year": "1957",
"Population": 1.59
},
{
"Region": "EUROPE",
"Year": "1957",
"Population": 0.59
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1957",
"Population": 0.2
},
{
"Region": "NORTHERN AMERICA",
"Year": "1957",
"Population": 0.19
},
{
"Region": "OCEANIA",
"Year": "1957",
"Population": 0.01
},
{
"Region": "AFRICA",
"Year": "1958",
"Population": 0.27
},
{
"Region": "ASIA",
"Year": "1958",
"Population": 1.62
},
{
"Region": "EUROPE",
"Year": "1958",
"Population": 0.59
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1958",
"Population": 0.21
},
{
"Region": "NORTHERN AMERICA",
"Year": "1958",
"Population": 0.2
},
{
"Region": "OCEANIA",
"Year": "1958",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1959",
"Population": 0.28
},
{
"Region": "ASIA",
"Year": "1959",
"Population": 1.65
},
{
"Region": "EUROPE",
"Year": "1959",
"Population": 0.6
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1959",
"Population": 0.22
},
{
"Region": "NORTHERN AMERICA",
"Year": "1959",
"Population": 0.2
},
{
"Region": "OCEANIA",
"Year": "1959",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1960",
"Population": 0.28
},
{
"Region": "ASIA",
"Year": "1960",
"Population": 1.69
},
{
"Region": "EUROPE",
"Year": "1960",
"Population": 0.61
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1960",
"Population": 0.22
},
{
"Region": "NORTHERN AMERICA",
"Year": "1960",
"Population": 0.2
},
{
"Region": "OCEANIA",
"Year": "1960",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1961",
"Population": 0.29
},
{
"Region": "ASIA",
"Year": "1961",
"Population": 1.72
},
{
"Region": "EUROPE",
"Year": "1961",
"Population": 0.61
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1961",
"Population": 0.23
},
{
"Region": "NORTHERN AMERICA",
"Year": "1961",
"Population": 0.21
},
{
"Region": "OCEANIA",
"Year": "1961",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1962",
"Population": 0.3
},
{
"Region": "ASIA",
"Year": "1962",
"Population": 1.76
},
{
"Region": "EUROPE",
"Year": "1962",
"Population": 0.62
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1962",
"Population": 0.23
},
{
"Region": "NORTHERN AMERICA",
"Year": "1962",
"Population": 0.21
},
{
"Region": "OCEANIA",
"Year": "1962",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1963",
"Population": 0.31
},
{
"Region": "ASIA",
"Year": "1963",
"Population": 1.79
},
{
"Region": "EUROPE",
"Year": "1963",
"Population": 0.62
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1963",
"Population": 0.24
},
{
"Region": "NORTHERN AMERICA",
"Year": "1963",
"Population": 0.21
},
{
"Region": "OCEANIA",
"Year": "1963",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1964",
"Population": 0.31
},
{
"Region": "ASIA",
"Year": "1964",
"Population": 1.83
},
{
"Region": "EUROPE",
"Year": "1964",
"Population": 0.63
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1964",
"Population": 0.25
},
{
"Region": "NORTHERN AMERICA",
"Year": "1964",
"Population": 0.22
},
{
"Region": "OCEANIA",
"Year": "1964",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1965",
"Population": 0.32
},
{
"Region": "ASIA",
"Year": "1965",
"Population": 1.87
},
{
"Region": "EUROPE",
"Year": "1965",
"Population": 0.64
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1965",
"Population": 0.25
},
{
"Region": "NORTHERN AMERICA",
"Year": "1965",
"Population": 0.22
},
{
"Region": "OCEANIA",
"Year": "1965",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1966",
"Population": 0.33
},
{
"Region": "ASIA",
"Year": "1966",
"Population": 1.92
},
{
"Region": "EUROPE",
"Year": "1966",
"Population": 0.64
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1966",
"Population": 0.26
},
{
"Region": "NORTHERN AMERICA",
"Year": "1966",
"Population": 0.22
},
{
"Region": "OCEANIA",
"Year": "1966",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1967",
"Population": 0.34
},
{
"Region": "ASIA",
"Year": "1967",
"Population": 1.97
},
{
"Region": "EUROPE",
"Year": "1967",
"Population": 0.64
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1967",
"Population": 0.27
},
{
"Region": "NORTHERN AMERICA",
"Year": "1967",
"Population": 0.22
},
{
"Region": "OCEANIA",
"Year": "1967",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1968",
"Population": 0.35
},
{
"Region": "ASIA",
"Year": "1968",
"Population": 2.02
},
{
"Region": "EUROPE",
"Year": "1968",
"Population": 0.65
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1968",
"Population": 0.27
},
{
"Region": "NORTHERN AMERICA",
"Year": "1968",
"Population": 0.23
},
{
"Region": "OCEANIA",
"Year": "1968",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1969",
"Population": 0.36
},
{
"Region": "ASIA",
"Year": "1969",
"Population": 2.07
},
{
"Region": "EUROPE",
"Year": "1969",
"Population": 0.65
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1969",
"Population": 0.28
},
{
"Region": "NORTHERN AMERICA",
"Year": "1969",
"Population": 0.23
},
{
"Region": "OCEANIA",
"Year": "1969",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1970",
"Population": 0.37
},
{
"Region": "ASIA",
"Year": "1970",
"Population": 2.12
},
{
"Region": "EUROPE",
"Year": "1970",
"Population": 0.66
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1970",
"Population": 0.29
},
{
"Region": "NORTHERN AMERICA",
"Year": "1970",
"Population": 0.23
},
{
"Region": "OCEANIA",
"Year": "1970",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1971",
"Population": 0.38
},
{
"Region": "ASIA",
"Year": "1971",
"Population": 2.17
},
{
"Region": "EUROPE",
"Year": "1971",
"Population": 0.66
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1971",
"Population": 0.3
},
{
"Region": "NORTHERN AMERICA",
"Year": "1971",
"Population": 0.23
},
{
"Region": "OCEANIA",
"Year": "1971",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1972",
"Population": 0.38
},
{
"Region": "ASIA",
"Year": "1972",
"Population": 2.22
},
{
"Region": "EUROPE",
"Year": "1972",
"Population": 0.67
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1972",
"Population": 0.3
},
{
"Region": "NORTHERN AMERICA",
"Year": "1972",
"Population": 0.24
},
{
"Region": "OCEANIA",
"Year": "1972",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1973",
"Population": 0.4
},
{
"Region": "ASIA",
"Year": "1973",
"Population": 2.28
},
{
"Region": "EUROPE",
"Year": "1973",
"Population": 0.67
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1973",
"Population": 0.31
},
{
"Region": "NORTHERN AMERICA",
"Year": "1973",
"Population": 0.24
},
{
"Region": "OCEANIA",
"Year": "1973",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1974",
"Population": 0.41
},
{
"Region": "ASIA",
"Year": "1974",
"Population": 2.33
},
{
"Region": "EUROPE",
"Year": "1974",
"Population": 0.67
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1974",
"Population": 0.32
},
{
"Region": "NORTHERN AMERICA",
"Year": "1974",
"Population": 0.24
},
{
"Region": "OCEANIA",
"Year": "1974",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1975",
"Population": 0.42
},
{
"Region": "ASIA",
"Year": "1975",
"Population": 2.38
},
{
"Region": "EUROPE",
"Year": "1975",
"Population": 0.68
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1975",
"Population": 0.33
},
{
"Region": "NORTHERN AMERICA",
"Year": "1975",
"Population": 0.24
},
{
"Region": "OCEANIA",
"Year": "1975",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1976",
"Population": 0.43
},
{
"Region": "ASIA",
"Year": "1976",
"Population": 2.43
},
{
"Region": "EUROPE",
"Year": "1976",
"Population": 0.68
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1976",
"Population": 0.33
},
{
"Region": "NORTHERN AMERICA",
"Year": "1976",
"Population": 0.24
},
{
"Region": "OCEANIA",
"Year": "1976",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1977",
"Population": 0.44
},
{
"Region": "ASIA",
"Year": "1977",
"Population": 2.48
},
{
"Region": "EUROPE",
"Year": "1977",
"Population": 0.68
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1977",
"Population": 0.34
},
{
"Region": "NORTHERN AMERICA",
"Year": "1977",
"Population": 0.25
},
{
"Region": "OCEANIA",
"Year": "1977",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1978",
"Population": 0.45
},
{
"Region": "ASIA",
"Year": "1978",
"Population": 2.53
},
{
"Region": "EUROPE",
"Year": "1978",
"Population": 0.69
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1978",
"Population": 0.35
},
{
"Region": "NORTHERN AMERICA",
"Year": "1978",
"Population": 0.25
},
{
"Region": "OCEANIA",
"Year": "1978",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1979",
"Population": 0.46
},
{
"Region": "ASIA",
"Year": "1979",
"Population": 2.58
},
{
"Region": "EUROPE",
"Year": "1979",
"Population": 0.69
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1979",
"Population": 0.36
},
{
"Region": "NORTHERN AMERICA",
"Year": "1979",
"Population": 0.25
},
{
"Region": "OCEANIA",
"Year": "1979",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1980",
"Population": 0.48
},
{
"Region": "ASIA",
"Year": "1980",
"Population": 2.63
},
{
"Region": "EUROPE",
"Year": "1980",
"Population": 0.69
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1980",
"Population": 0.37
},
{
"Region": "NORTHERN AMERICA",
"Year": "1980",
"Population": 0.25
},
{
"Region": "OCEANIA",
"Year": "1980",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1981",
"Population": 0.49
},
{
"Region": "ASIA",
"Year": "1981",
"Population": 2.68
},
{
"Region": "EUROPE",
"Year": "1981",
"Population": 0.7
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1981",
"Population": 0.37
},
{
"Region": "NORTHERN AMERICA",
"Year": "1981",
"Population": 0.26
},
{
"Region": "OCEANIA",
"Year": "1981",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1982",
"Population": 0.51
},
{
"Region": "ASIA",
"Year": "1982",
"Population": 2.73
},
{
"Region": "EUROPE",
"Year": "1982",
"Population": 0.7
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1982",
"Population": 0.38
},
{
"Region": "NORTHERN AMERICA",
"Year": "1982",
"Population": 0.26
},
{
"Region": "OCEANIA",
"Year": "1982",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1983",
"Population": 0.52
},
{
"Region": "ASIA",
"Year": "1983",
"Population": 2.78
},
{
"Region": "EUROPE",
"Year": "1983",
"Population": 0.7
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1983",
"Population": 0.39
},
{
"Region": "NORTHERN AMERICA",
"Year": "1983",
"Population": 0.26
},
{
"Region": "OCEANIA",
"Year": "1983",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1984",
"Population": 0.53
},
{
"Region": "ASIA",
"Year": "1984",
"Population": 2.84
},
{
"Region": "EUROPE",
"Year": "1984",
"Population": 0.71
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1984",
"Population": 0.4
},
{
"Region": "NORTHERN AMERICA",
"Year": "1984",
"Population": 0.26
},
{
"Region": "OCEANIA",
"Year": "1984",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1985",
"Population": 0.55
},
{
"Region": "ASIA",
"Year": "1985",
"Population": 2.9
},
{
"Region": "EUROPE",
"Year": "1985",
"Population": 0.71
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1985",
"Population": 0.41
},
{
"Region": "NORTHERN AMERICA",
"Year": "1985",
"Population": 0.27
},
{
"Region": "OCEANIA",
"Year": "1985",
"Population": 0.02
},
{
"Region": "AFRICA",
"Year": "1986",
"Population": 0.57
},
{
"Region": "ASIA",
"Year": "1986",
"Population": 2.96
},
{
"Region": "EUROPE",
"Year": "1986",
"Population": 0.71
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1986",
"Population": 0.41
},
{
"Region": "NORTHERN AMERICA",
"Year": "1986",
"Population": 0.27
},
{
"Region": "OCEANIA",
"Year": "1986",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1987",
"Population": 0.58
},
{
"Region": "ASIA",
"Year": "1987",
"Population": 3.02
},
{
"Region": "EUROPE",
"Year": "1987",
"Population": 0.71
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1987",
"Population": 0.42
},
{
"Region": "NORTHERN AMERICA",
"Year": "1987",
"Population": 0.27
},
{
"Region": "OCEANIA",
"Year": "1987",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1988",
"Population": 0.6
},
{
"Region": "ASIA",
"Year": "1988",
"Population": 3.08
},
{
"Region": "EUROPE",
"Year": "1988",
"Population": 0.72
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1988",
"Population": 0.43
},
{
"Region": "NORTHERN AMERICA",
"Year": "1988",
"Population": 0.27
},
{
"Region": "OCEANIA",
"Year": "1988",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1989",
"Population": 0.61
},
{
"Region": "ASIA",
"Year": "1989",
"Population": 3.14
},
{
"Region": "EUROPE",
"Year": "1989",
"Population": 0.72
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1989",
"Population": 0.44
},
{
"Region": "NORTHERN AMERICA",
"Year": "1989",
"Population": 0.28
},
{
"Region": "OCEANIA",
"Year": "1989",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1990",
"Population": 0.63
},
{
"Region": "ASIA",
"Year": "1990",
"Population": 3.2
},
{
"Region": "EUROPE",
"Year": "1990",
"Population": 0.72
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1990",
"Population": 0.45
},
{
"Region": "NORTHERN AMERICA",
"Year": "1990",
"Population": 0.28
},
{
"Region": "OCEANIA",
"Year": "1990",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1991",
"Population": 0.65
},
{
"Region": "ASIA",
"Year": "1991",
"Population": 3.26
},
{
"Region": "EUROPE",
"Year": "1991",
"Population": 0.72
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1991",
"Population": 0.46
},
{
"Region": "NORTHERN AMERICA",
"Year": "1991",
"Population": 0.28
},
{
"Region": "OCEANIA",
"Year": "1991",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1992",
"Population": 0.67
},
{
"Region": "ASIA",
"Year": "1992",
"Population": 3.32
},
{
"Region": "EUROPE",
"Year": "1992",
"Population": 0.72
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1992",
"Population": 0.46
},
{
"Region": "NORTHERN AMERICA",
"Year": "1992",
"Population": 0.29
},
{
"Region": "OCEANIA",
"Year": "1992",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1993",
"Population": 0.68
},
{
"Region": "ASIA",
"Year": "1993",
"Population": 3.37
},
{
"Region": "EUROPE",
"Year": "1993",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1993",
"Population": 0.47
},
{
"Region": "NORTHERN AMERICA",
"Year": "1993",
"Population": 0.29
},
{
"Region": "OCEANIA",
"Year": "1993",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1994",
"Population": 0.7
},
{
"Region": "ASIA",
"Year": "1994",
"Population": 3.42
},
{
"Region": "EUROPE",
"Year": "1994",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1994",
"Population": 0.48
},
{
"Region": "NORTHERN AMERICA",
"Year": "1994",
"Population": 0.29
},
{
"Region": "OCEANIA",
"Year": "1994",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1995",
"Population": 0.72
},
{
"Region": "ASIA",
"Year": "1995",
"Population": 3.47
},
{
"Region": "EUROPE",
"Year": "1995",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1995",
"Population": 0.49
},
{
"Region": "NORTHERN AMERICA",
"Year": "1995",
"Population": 0.3
},
{
"Region": "OCEANIA",
"Year": "1995",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1996",
"Population": 0.74
},
{
"Region": "ASIA",
"Year": "1996",
"Population": 3.52
},
{
"Region": "EUROPE",
"Year": "1996",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1996",
"Population": 0.5
},
{
"Region": "NORTHERN AMERICA",
"Year": "1996",
"Population": 0.3
},
{
"Region": "OCEANIA",
"Year": "1996",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1997",
"Population": 0.76
},
{
"Region": "ASIA",
"Year": "1997",
"Population": 3.57
},
{
"Region": "EUROPE",
"Year": "1997",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1997",
"Population": 0.5
},
{
"Region": "NORTHERN AMERICA",
"Year": "1997",
"Population": 0.3
},
{
"Region": "OCEANIA",
"Year": "1997",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1998",
"Population": 0.78
},
{
"Region": "ASIA",
"Year": "1998",
"Population": 3.62
},
{
"Region": "EUROPE",
"Year": "1998",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1998",
"Population": 0.51
},
{
"Region": "NORTHERN AMERICA",
"Year": "1998",
"Population": 0.31
},
{
"Region": "OCEANIA",
"Year": "1998",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "1999",
"Population": 0.79
},
{
"Region": "ASIA",
"Year": "1999",
"Population": 3.67
},
{
"Region": "EUROPE",
"Year": "1999",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "1999",
"Population": 0.52
},
{
"Region": "NORTHERN AMERICA",
"Year": "1999",
"Population": 0.31
},
{
"Region": "OCEANIA",
"Year": "1999",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "2000",
"Population": 0.81
},
{
"Region": "ASIA",
"Year": "2000",
"Population": 3.71
},
{
"Region": "EUROPE",
"Year": "2000",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2000",
"Population": 0.53
},
{
"Region": "NORTHERN AMERICA",
"Year": "2000",
"Population": 0.31
},
{
"Region": "OCEANIA",
"Year": "2000",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "2001",
"Population": 0.83
},
{
"Region": "ASIA",
"Year": "2001",
"Population": 3.76
},
{
"Region": "EUROPE",
"Year": "2001",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2001",
"Population": 0.53
},
{
"Region": "NORTHERN AMERICA",
"Year": "2001",
"Population": 0.32
},
{
"Region": "OCEANIA",
"Year": "2001",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "2002",
"Population": 0.85
},
{
"Region": "ASIA",
"Year": "2002",
"Population": 3.81
},
{
"Region": "EUROPE",
"Year": "2002",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2002",
"Population": 0.54
},
{
"Region": "NORTHERN AMERICA",
"Year": "2002",
"Population": 0.32
},
{
"Region": "OCEANIA",
"Year": "2002",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "2003",
"Population": 0.88
},
{
"Region": "ASIA",
"Year": "2003",
"Population": 3.85
},
{
"Region": "EUROPE",
"Year": "2003",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2003",
"Population": 0.55
},
{
"Region": "NORTHERN AMERICA",
"Year": "2003",
"Population": 0.32
},
{
"Region": "OCEANIA",
"Year": "2003",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "2004",
"Population": 0.9
},
{
"Region": "ASIA",
"Year": "2004",
"Population": 3.9
},
{
"Region": "EUROPE",
"Year": "2004",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2004",
"Population": 0.56
},
{
"Region": "NORTHERN AMERICA",
"Year": "2004",
"Population": 0.33
},
{
"Region": "OCEANIA",
"Year": "2004",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "2005",
"Population": 0.92
},
{
"Region": "ASIA",
"Year": "2005",
"Population": 3.94
},
{
"Region": "EUROPE",
"Year": "2005",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2005",
"Population": 0.56
},
{
"Region": "NORTHERN AMERICA",
"Year": "2005",
"Population": 0.33
},
{
"Region": "OCEANIA",
"Year": "2005",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "2006",
"Population": 0.94
},
{
"Region": "ASIA",
"Year": "2006",
"Population": 3.99
},
{
"Region": "EUROPE",
"Year": "2006",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2006",
"Population": 0.57
},
{
"Region": "NORTHERN AMERICA",
"Year": "2006",
"Population": 0.33
},
{
"Region": "OCEANIA",
"Year": "2006",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "2007",
"Population": 0.97
},
{
"Region": "ASIA",
"Year": "2007",
"Population": 4.03
},
{
"Region": "EUROPE",
"Year": "2007",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2007",
"Population": 0.58
},
{
"Region": "NORTHERN AMERICA",
"Year": "2007",
"Population": 0.33
},
{
"Region": "OCEANIA",
"Year": "2007",
"Population": 0.03
},
{
"Region": "AFRICA",
"Year": "2008",
"Population": 0.99
},
{
"Region": "ASIA",
"Year": "2008",
"Population": 4.08
},
{
"Region": "EUROPE",
"Year": "2008",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2008",
"Population": 0.59
},
{
"Region": "NORTHERN AMERICA",
"Year": "2008",
"Population": 0.34
},
{
"Region": "OCEANIA",
"Year": "2008",
"Population": 0.04
},
{
"Region": "AFRICA",
"Year": "2009",
"Population": 1.02
},
{
"Region": "ASIA",
"Year": "2009",
"Population": 4.12
},
{
"Region": "EUROPE",
"Year": "2009",
"Population": 0.73
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2009",
"Population": 0.59
},
{
"Region": "NORTHERN AMERICA",
"Year": "2009",
"Population": 0.34
},
{
"Region": "OCEANIA",
"Year": "2009",
"Population": 0.04
},
{
"Region": "AFRICA",
"Year": "2010",
"Population": 1.04
},
{
"Region": "ASIA",
"Year": "2010",
"Population": 4.17
},
{
"Region": "EUROPE",
"Year": "2010",
"Population": 0.74
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2010",
"Population": 0.6
},
{
"Region": "NORTHERN AMERICA",
"Year": "2010",
"Population": 0.34
},
{
"Region": "OCEANIA",
"Year": "2010",
"Population": 0.04
},
{
"Region": "AFRICA",
"Year": "2011",
"Population": 1.07
},
{
"Region": "ASIA",
"Year": "2011",
"Population": 4.22
},
{
"Region": "EUROPE",
"Year": "2011",
"Population": 0.74
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2011",
"Population": 0.61
},
{
"Region": "NORTHERN AMERICA",
"Year": "2011",
"Population": 0.35
},
{
"Region": "OCEANIA",
"Year": "2011",
"Population": 0.04
},
{
"Region": "AFRICA",
"Year": "2012",
"Population": 1.1
},
{
"Region": "ASIA",
"Year": "2012",
"Population": 4.26
},
{
"Region": "EUROPE",
"Year": "2012",
"Population": 0.74
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2012",
"Population": 0.61
},
{
"Region": "NORTHERN AMERICA",
"Year": "2012",
"Population": 0.35
},
{
"Region": "OCEANIA",
"Year": "2012",
"Population": 0.04
},
{
"Region": "AFRICA",
"Year": "2013",
"Population": 1.13
},
{
"Region": "ASIA",
"Year": "2013",
"Population": 4.31
},
{
"Region": "EUROPE",
"Year": "2013",
"Population": 0.74
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2013",
"Population": 0.62
},
{
"Region": "NORTHERN AMERICA",
"Year": "2013",
"Population": 0.35
},
{
"Region": "OCEANIA",
"Year": "2013",
"Population": 0.04
},
{
"Region": "AFRICA",
"Year": "2014",
"Population": 1.16
},
{
"Region": "ASIA",
"Year": "2014",
"Population": 4.35
},
{
"Region": "EUROPE",
"Year": "2014",
"Population": 0.74
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2014",
"Population": 0.63
},
{
"Region": "NORTHERN AMERICA",
"Year": "2014",
"Population": 0.36
},
{
"Region": "OCEANIA",
"Year": "2014",
"Population": 0.04
},
{
"Region": "AFRICA",
"Year": "2015",
"Population": 1.19
},
{
"Region": "ASIA",
"Year": "2015",
"Population": 4.39
},
{
"Region": "EUROPE",
"Year": "2015",
"Population": 0.74
},
{
"Region": "LATIN AMERICA AND THE CARIBBEAN",
"Year": "2015",
"Population": 0.63
},
{
"Region": "NORTHERN AMERICA",
"Year": "2015",
"Population": 0.36
},
{
"Region": "OCEANIA",
"Year": "2015",
"Population": 0.04
}
]
if(!(opts.type==="pieChart" || opts.type==="sparklinePlus" || opts.type==="bulletChart")) {
var data = d3.nest()
.key(function(d){
//return opts.group === undefined ? 'main' : d[opts.group]
//instead of main would think a better default is opts.x
return opts.group === undefined ? opts.y : d[opts.group];
})
.entries(data);
}
if (opts.disabled != undefined){
data.map(function(d, i){
d.disabled = opts.disabled[i]
})
}
nv.addGraph(function() {
var chart = nv.models[opts.type]()
.width(opts.width)
.height(opts.height)
if (opts.type != "bulletChart"){
chart
.x(function(d) { return d[opts.x] })
.y(function(d) { return d[opts.y] })
}
chart
.margin({
"left": 75,
"bottom": 75
})
chart.xAxis
.axisLabel("Year")
chart.yAxis
.axisLabel("Population (in billions)")
d3.select("#" + opts.id)
.append('svg')
.datum(data)
.transition().duration(500)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
};
</script>
<script></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment