{ "cells": [ { "cell_type": "markdown", "metadata": { "papermill": { "duration": 0.010925, "end_time": "2019-09-24T09:49:21.794239", "exception": false, "start_time": "2019-09-24T09:49:21.783314", "status": "completed" }, "tags": [] }, "source": [ "In this notebook we plot the world population and the gross domestic product per country" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "papermill": { "duration": 0.020995, "end_time": "2019-09-24T09:49:21.849334", "exception": false, "start_time": "2019-09-24T09:49:21.828339", "status": "completed" }, "tags": [ "parameters" ] }, "outputs": [], "source": [ "year = 2000" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "papermill": { "duration": 0.013179, "end_time": "2019-09-24T09:49:21.866509", "exception": false, "start_time": "2019-09-24T09:49:21.853330", "status": "completed" }, "tags": [ "injected-parameters" ] }, "outputs": [], "source": [ "# Parameters\n", "year = 2017\n" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "papermill": { "duration": 1.232749, "end_time": "2019-09-24T09:49:23.102994", "exception": false, "start_time": "2019-09-24T09:49:21.870245", "status": "completed" }, "tags": [] }, "outputs": [], "source": [ "from plots import sundial_plot" ] }, { "cell_type": "markdown", "metadata": { "papermill": { "duration": 0.04115, "end_time": "2019-09-24T09:49:23.147805", "exception": false, "start_time": "2019-09-24T09:49:23.106655", "status": "completed" }, "tags": [] }, "source": [ "## World Population" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "papermill": { "duration": 1.66921, "end_time": "2019-09-24T09:49:24.825874", "exception": false, "start_time": "2019-09-24T09:49:23.156664", "status": "completed" }, "tags": [] }, "outputs": [ { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "hoverinfo": "text", "labels": [ "Aruba", "Afghanistan", "Angola", "Albania", "Andorra", "United Arab Emirates", "Argentina", "Armenia", "American Samoa", "Antigua and Barbuda", "Australia", "Austria", "Azerbaijan", "Burundi", "Belgium", "Benin", "Burkina Faso", "Bangladesh", "Bulgaria", "Bahrain", "Bahamas, The", "Bosnia and Herzegovina", "Belarus", "Belize", "Bermuda", "Bolivia", "Brazil", "Barbados", "Brunei Darussalam", "Bhutan", "Botswana", "Central African Republic", "Canada", "Switzerland", "Channel Islands", "Chile", "China", "Cote d'Ivoire", "Cameroon", "Congo, Dem. Rep.", "Congo, Rep.", "Colombia", "Comoros", "Cabo Verde", "Costa Rica", "Cuba", "Curacao", "Cayman Islands", "Cyprus", "Czech Republic", "Germany", "Djibouti", "Dominica", "Denmark", "Dominican Republic", "Algeria", "Ecuador", "Egypt, Arab Rep.", "Eritrea", "Spain", "Estonia", "Ethiopia", "Finland", "Fiji", "France", "Faroe Islands", "Micronesia, Fed. Sts.", "Gabon", "United Kingdom", "Georgia", "Ghana", "Gibraltar", "Guinea", "Gambia, The", "Guinea-Bissau", "Equatorial Guinea", "Greece", "Grenada", "Greenland", "Guatemala", "Guam", "Guyana", "Hong Kong SAR, China", "Honduras", "Croatia", "Haiti", "Hungary", "Indonesia", "Isle of Man", "India", "Ireland", "Iran, Islamic Rep.", "Iraq", "Iceland", "Israel", "Italy", "Jamaica", "Jordan", "Japan", "Kazakhstan", "Kenya", "Kyrgyz Republic", "Cambodia", "Kiribati", "St. Kitts and Nevis", "Korea, Rep.", "Kuwait", "Lao PDR", "Lebanon", "Liberia", "Libya", "St. Lucia", "Liechtenstein", "Sri Lanka", "Lesotho", "Lithuania", "Luxembourg", "Latvia", "Macao SAR, China", "St. Martin (French part)", "Morocco", "Monaco", "Moldova", "Madagascar", "Maldives", "Mexico", "Marshall Islands", "North Macedonia", "Mali", "Malta", "Myanmar", "Montenegro", "Mongolia", "Northern Mariana Islands", "Mozambique", "Mauritania", "Mauritius", "Malawi", "Malaysia", "Namibia", "New Caledonia", "Niger", "Nigeria", "Nicaragua", "Netherlands", "Norway", "Nepal", "Nauru", "New Zealand", "Oman", "Pakistan", "Panama", "Peru", "Philippines", "Palau", "Papua New Guinea", "Poland", "Puerto Rico", "Korea, Dem. People’s Rep.", "Portugal", "Paraguay", "West Bank and Gaza", "French Polynesia", "Qatar", "Romania", "Russian Federation", "Rwanda", "Saudi Arabia", "Sudan", "Senegal", "Singapore", "Solomon Islands", "Sierra Leone", "El Salvador", "San Marino", "Somalia", "Serbia", "South Sudan", "Sao Tome and Principe", "Suriname", "Slovak Republic", "Slovenia", "Sweden", "Eswatini", "Sint Maarten (Dutch part)", "Seychelles", "Syrian Arab Republic", "Turks and Caicos Islands", "Chad", "Togo", "Thailand", "Tajikistan", "Turkmenistan", "Timor-Leste", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Tuvalu", "Taiwan, China", "Tanzania", "Uganda", "Ukraine", "Uruguay", "United States", "Uzbekistan", "St. Vincent and the Grenadines", "Venezuela, RB", "British Virgin Islands", "Virgin Islands (U.S.)", "Vietnam", "Vanuatu", "Samoa", "Kosovo", "Yemen, Rep.", "South Africa", "Zambia", "Zimbabwe", "East Asia & Pacific", "Europe & Central Asia", "Latin America & Caribbean ", "Middle East & North Africa", "North America", "South Asia", "Sub-Saharan Africa ", "World" ], "parents": [ "Latin America & Caribbean ", "South Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "Europe & Central Asia", "Middle East & North Africa", "Latin America & Caribbean ", "Europe & Central Asia", "East Asia & Pacific", "Latin America & Caribbean ", "East Asia & Pacific", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "South Asia", "Europe & Central Asia", "Middle East & North Africa", "Latin America & Caribbean ", "Europe & Central Asia", "Europe & Central Asia", "Latin America & Caribbean ", "North America", "Latin America & Caribbean ", "Latin America & Caribbean ", "Latin America & Caribbean ", "East Asia & Pacific", "South Asia", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "North America", "Europe & Central Asia", "Europe & Central Asia", "Latin America & Caribbean ", "East Asia & Pacific", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Latin America & Caribbean ", "Latin America & Caribbean ", "Latin America & Caribbean ", "Europe & Central Asia", "Europe & Central Asia", "Europe & Central Asia", "Middle East & North Africa", "Latin America & Caribbean ", "Europe & Central Asia", "Latin America & Caribbean ", "Middle East & North Africa", "Latin America & Caribbean ", "Middle East & North Africa", "Sub-Saharan Africa ", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "East Asia & Pacific", "Europe & Central Asia", "Europe & Central Asia", "East Asia & Pacific", "Sub-Saharan Africa ", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Europe & Central Asia", "Latin America & Caribbean ", "Europe & Central Asia", "Latin America & Caribbean ", "East Asia & Pacific", "Latin America & Caribbean ", "East Asia & Pacific", "Latin America & Caribbean ", "Europe & Central Asia", "Latin America & Caribbean ", "Europe & Central Asia", "East Asia & Pacific", "Europe & Central Asia", "South Asia", "Europe & Central Asia", "Middle East & North Africa", "Middle East & North Africa", "Europe & Central Asia", "Middle East & North Africa", "Europe & Central Asia", "Latin America & Caribbean ", "Middle East & North Africa", "East Asia & Pacific", "Europe & Central Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "East Asia & Pacific", "East Asia & Pacific", "Latin America & Caribbean ", "East Asia & Pacific", "Middle East & North Africa", "East Asia & Pacific", "Middle East & North Africa", "Sub-Saharan Africa ", "Middle East & North Africa", "Latin America & Caribbean ", "Europe & Central Asia", "South Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "Europe & Central Asia", "Europe & Central Asia", "East Asia & Pacific", "Latin America & Caribbean ", "Middle East & North Africa", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "South Asia", "Latin America & Caribbean ", "East Asia & Pacific", "Europe & Central Asia", "Sub-Saharan Africa ", "Middle East & North Africa", "East Asia & Pacific", "Europe & Central Asia", "East Asia & Pacific", "East Asia & Pacific", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "East Asia & Pacific", "Sub-Saharan Africa ", "East Asia & Pacific", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Europe & Central Asia", "Europe & Central Asia", "South Asia", "East Asia & Pacific", "East Asia & Pacific", "Middle East & North Africa", "South Asia", "Latin America & Caribbean ", "Latin America & Caribbean ", "East Asia & Pacific", "East Asia & Pacific", "East Asia & Pacific", "Europe & Central Asia", "Latin America & Caribbean ", "East Asia & Pacific", "Europe & Central Asia", "Latin America & Caribbean ", "Middle East & North Africa", "East Asia & Pacific", "Middle East & North Africa", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "Middle East & North Africa", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "East Asia & Pacific", "East Asia & Pacific", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Europe & Central Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Europe & Central Asia", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Sub-Saharan Africa ", "Middle East & North Africa", "Latin America & Caribbean ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "East Asia & Pacific", "Europe & Central Asia", "Europe & Central Asia", "East Asia & Pacific", "East Asia & Pacific", "Latin America & Caribbean ", "Middle East & North Africa", "Europe & Central Asia", "East Asia & Pacific", "East Asia & Pacific", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Europe & Central Asia", "Latin America & Caribbean ", "North America", "Europe & Central Asia", "Latin America & Caribbean ", "Latin America & Caribbean ", "Latin America & Caribbean ", "Latin America & Caribbean ", "East Asia & Pacific", "East Asia & Pacific", "East Asia & Pacific", "Europe & Central Asia", "Middle East & North Africa", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "World", "World", "World", "World", "World", "World", "World", "" ], "text": [ "105,366", "36,296,400", "29,816,748", "2,873,457", "77,001", "9,487,203", "44,044,811", "2,944,809", "55,620", "95,426", "24,601,860", "8,797,566", "9,854,033", "10,827,024", "11,375,158", "11,175,204", "19,193,284", "159,670,593", "7,075,947", "1,494,074", "381,761", "3,351,527", "9,498,264", "375,769", "63,874", "11,192,854", "207,833,831", "286,233", "424,473", "745,568", "2,205,128", "4,596,028", "36,540,268", "8,451,840", "168,665", "18,470,439", "1,386,395,000", "24,437,469", "24,566,045", "81,398,764", "5,110,702", "48,901,066", "813,892", "537,497", "4,949,954", "11,339,259", "160,175", "63,382", "1,179,680", "10,594,438", "82,657,002", "944,097", "71,458", "5,764,980", "10,513,131", "41,389,198", "16,785,361", "96,442,593", "nan", "46,593,236", "1,317,384", "106,400,024", "5,508,214", "877,459", "66,865,144", "48,331", "111,459", "2,064,823", "66,058,859", "3,728,004", "29,121,471", "33,728", "12,067,539", "2,213,894", "1,828,146", "1,262,001", "10,754,679", "110,874", "56,171", "16,914,936", "164,281", "775,221", "7,391,700", "9,429,013", "4,124,531", "10,982,366", "9,787,966", "264,645,886", "83,598", "1,338,658,835", "4,807,388", "80,673,951", "37,552,781", "343,400", "8,713,300", "60,536,709", "2,920,853", "9,779,173", "126,785,797", "18,037,776", "50,221,473", "6,198,200", "16,009,414", "114,158", "52,045", "51,466,201", "4,056,097", "6,953,035", "6,811,873", "4,702,228", "6,580,724", "180,955", "37,800", "21,444,000", "2,091,412", "2,828,403", "596,336", "1,942,248", "622,585", "36,560", "35,581,294", "38,392", "3,549,196", "25,570,540", "496,402", "124,777,324", "58,058", "2,081,996", "18,512,394", "467,999", "53,382,581", "622,373", "3,113,779", "56,562", "28,649,007", "4,282,574", "1,264,613", "17,670,260", "31,105,028", "2,402,603", "280,350", "21,602,472", "190,873,311", "6,384,855", "17,131,296", "5,276,968", "27,627,124", "12,876", "4,793,900", "4,665,935", "207,896,686", "4,106,771", "31,444,297", "105,173,264", "17,808", "8,438,029", "37,974,826", "3,325,001", "25,429,985", "10,300,300", "6,867,062", "4,454,805", "276,103", "2,724,724", "19,587,491", "144,496,740", "11,980,937", "33,099,147", "40,813,396", "15,419,381", "5,612,253", "636,038", "7,488,431", "6,388,122", "33,671", "14,589,119", "7,020,858", "10,910,759", "207,089", "570,496", "5,439,232", "2,066,388", "10,057,698", "1,124,753", "40,574", "95,843", "17,068,002", "37,115", "15,016,773", "7,698,475", "69,209,858", "8,880,268", "5,757,669", "1,243,261", "101,998", "1,384,072", "11,433,443", "81,101,892", "11,370", "nan", "54,663,906", "41,162,465", "44,831,135", "3,436,646", "325,147,121", "32,388,600", "109,827", "29,390,409", "29,577", "107,268", "94,596,642", "285,510", "195,352", "1,830,700", "27,834,821", "57,000,451", "16,853,688", "14,236,745", "2,290,649,533", "915,420,161", "635,372,515", "441,255,234", "361,751,263", "1,792,835,608", "1,046,740,781", "7,510,990,456" ], "type": "sunburst", "values": [ 105366.0, 36296400.0, 29816748.0, 2873457.0, 77001.0, 9487203.0, 44044811.0, 2944809.0, 55620.0, 95426.0, 24601860.0, 8797566.0, 9854033.0, 10827024.0, 11375158.0, 11175204.0, 19193284.0, 159670593.0, 7075947.0, 1494074.0, 381761.0, 3351527.0, 9498264.0, 375769.0, 63874.0, 11192854.0, 207833831.0, 286233.0, 424473.0, 745568.0, 2205128.0, 4596028.0, 36540268.0, 8451840.0, 168665.0, 18470439.0, 1386395000.0, 24437469.0, 24566045.0, 81398764.0, 5110702.0, 48901066.0, 813892.0, 537497.0, 4949954.0, 11339259.0, 160175.0, 63382.0, 1179680.0, 10594438.0, 82657002.0, 944097.0, 71458.0, 5764980.0, 10513131.0, 41389198.0, 16785361.0, 96442593.0, null, 46593236.0, 1317384.0, 106400024.0, 5508214.0, 877459.0, 66865144.0, 48331.0, 111459.0, 2064823.0, 66058859.0, 3728004.0, 29121471.0, 33728.0, 12067539.0, 2213894.0, 1828146.0, 1262001.0, 10754679.0, 110874.0, 56171.0, 16914936.0, 164281.0, 775221.0, 7391700.0, 9429013.0, 4124531.0, 10982366.0, 9787966.0, 264645886.0, 83598.0, 1338658835.0, 4807388.0, 80673951.0, 37552781.0, 343400.0, 8713300.0, 60536709.0, 2920853.0, 9779173.0, 126785797.0, 18037776.0, 50221473.0, 6198200.0, 16009414.0, 114158.0, 52045.0, 51466201.0, 4056097.0, 6953035.0, 6811873.0, 4702228.0, 6580724.0, 180955.0, 37800.0, 21444000.0, 2091412.0, 2828403.0, 596336.0, 1942248.0, 622585.0, 36560.0, 35581294.0, 38392.0, 3549196.0, 25570540.0, 496402.0, 124777324.0, 58058.0, 2081996.0, 18512394.0, 467999.0, 53382581.0, 622373.0, 3113779.0, 56562.0, 28649007.0, 4282574.0, 1264613.0, 17670260.0, 31105028.0, 2402603.0, 280350.0, 21602472.0, 190873311.0, 6384855.0, 17131296.0, 5276968.0, 27627124.0, 12876.0, 4793900.0, 4665935.0, 207896686.0, 4106771.0, 31444297.0, 105173264.0, 17808.0, 8438029.0, 37974826.0, 3325001.0, 25429985.0, 10300300.0, 6867062.0, 4454805.0, 276103.0, 2724724.0, 19587491.0, 144496740.0, 11980937.0, 33099147.0, 40813396.0, 15419381.0, 5612253.0, 636038.0, 7488431.0, 6388122.0, 33671.0, 14589119.0, 7020858.0, 10910759.0, 207089.0, 570496.0, 5439232.0, 2066388.0, 10057698.0, 1124753.0, 40574.0, 95843.0, 17068002.0, 37115.0, 15016773.0, 7698475.0, 69209858.0, 8880268.0, 5757669.0, 1243261.0, 101998.0, 1384072.0, 11433443.0, 81101892.0, 11370.0, null, 54663906.0, 41162465.0, 44831135.0, 3436646.0, 325147121.0, 32388600.0, 109827.0, 29390409.0, 29577.0, 107268.0, 94596642.0, 285510.0, 195352.0, 1830700.0, 27834821.0, 57000451.0, 16853688.0, 14236745.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] } ], "layout": { "height": 800, "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "scatter": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "World Population (World Bank, 2017)" }, "width": 800 } }, "text/html": [ "
\n", " \n", " \n", "
\n", " \n", "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "sundial_plot('SP.POP.TOTL', 'World Population', year)" ] }, { "cell_type": "markdown", "metadata": { "papermill": { "duration": 0.065791, "end_time": "2019-09-24T09:49:24.957787", "exception": false, "start_time": "2019-09-24T09:49:24.891996", "status": "completed" }, "tags": [] }, "source": [ "## Gross Domestic Product (current USD)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "papermill": { "duration": 0.457098, "end_time": "2019-09-24T09:49:25.475339", "exception": false, "start_time": "2019-09-24T09:49:25.018241", "status": "completed" }, "tags": [] }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "hoverinfo": "text", "labels": [ "Aruba", "Afghanistan", "Angola", "Albania", "Andorra", "United Arab Emirates", "Argentina", "Armenia", "American Samoa", "Antigua and Barbuda", "Australia", "Austria", "Azerbaijan", "Burundi", "Belgium", "Benin", "Burkina Faso", "Bangladesh", "Bulgaria", "Bahrain", "Bahamas, The", "Bosnia and Herzegovina", "Belarus", "Belize", "Bermuda", "Bolivia", "Brazil", "Barbados", "Brunei Darussalam", "Bhutan", "Botswana", "Central African Republic", "Canada", "Switzerland", "Channel Islands", "Chile", "China", "Cote d'Ivoire", "Cameroon", "Congo, Dem. Rep.", "Congo, Rep.", "Colombia", "Comoros", "Cabo Verde", "Costa Rica", "Cuba", "Curacao", "Cayman Islands", "Cyprus", "Czech Republic", "Germany", "Djibouti", "Dominica", "Denmark", "Dominican Republic", "Algeria", "Ecuador", "Egypt, Arab Rep.", "Eritrea", "Spain", "Estonia", "Ethiopia", "Finland", "Fiji", "France", "Faroe Islands", "Micronesia, Fed. Sts.", "Gabon", "United Kingdom", "Georgia", "Ghana", "Gibraltar", "Guinea", "Gambia, The", "Guinea-Bissau", "Equatorial Guinea", "Greece", "Grenada", "Greenland", "Guatemala", "Guam", "Guyana", "Hong Kong SAR, China", "Honduras", "Croatia", "Haiti", "Hungary", "Indonesia", "Isle of Man", "India", "Ireland", "Iran, Islamic Rep.", "Iraq", "Iceland", "Israel", "Italy", "Jamaica", "Jordan", "Japan", "Kazakhstan", "Kenya", "Kyrgyz Republic", "Cambodia", "Kiribati", "St. Kitts and Nevis", "Korea, Rep.", "Kuwait", "Lao PDR", "Lebanon", "Liberia", "Libya", "St. Lucia", "Liechtenstein", "Sri Lanka", "Lesotho", "Lithuania", "Luxembourg", "Latvia", "Macao SAR, China", "St. Martin (French part)", "Morocco", "Monaco", "Moldova", "Madagascar", "Maldives", "Mexico", "Marshall Islands", "North Macedonia", "Mali", "Malta", "Myanmar", "Montenegro", "Mongolia", "Northern Mariana Islands", "Mozambique", "Mauritania", "Mauritius", "Malawi", "Malaysia", "Namibia", "New Caledonia", "Niger", "Nigeria", "Nicaragua", "Netherlands", "Norway", "Nepal", "Nauru", "New Zealand", "Oman", "Pakistan", "Panama", "Peru", "Philippines", "Palau", "Papua New Guinea", "Poland", "Puerto Rico", "Korea, Dem. People’s Rep.", "Portugal", "Paraguay", "West Bank and Gaza", "French Polynesia", "Qatar", "Romania", "Russian Federation", "Rwanda", "Saudi Arabia", "Sudan", "Senegal", "Singapore", "Solomon Islands", "Sierra Leone", "El Salvador", "San Marino", "Somalia", "Serbia", "South Sudan", "Sao Tome and Principe", "Suriname", "Slovak Republic", "Slovenia", "Sweden", "Eswatini", "Sint Maarten (Dutch part)", "Seychelles", "Syrian Arab Republic", "Turks and Caicos Islands", "Chad", "Togo", "Thailand", "Tajikistan", "Turkmenistan", "Timor-Leste", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Tuvalu", "Taiwan, China", "Tanzania", "Uganda", "Ukraine", "Uruguay", "United States", "Uzbekistan", "St. Vincent and the Grenadines", "Venezuela, RB", "British Virgin Islands", "Virgin Islands (U.S.)", "Vietnam", "Vanuatu", "Samoa", "Kosovo", "Yemen, Rep.", "South Africa", "Zambia", "Zimbabwe", "East Asia & Pacific", "Europe & Central Asia", "Latin America & Caribbean ", "Middle East & North Africa", "North America", "South Asia", "Sub-Saharan Africa ", "World" ], "parents": [ "Latin America & Caribbean ", "South Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "Europe & Central Asia", "Middle East & North Africa", "Latin America & Caribbean ", "Europe & Central Asia", "East Asia & Pacific", "Latin America & Caribbean ", "East Asia & Pacific", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "South Asia", "Europe & Central Asia", "Middle East & North Africa", "Latin America & Caribbean ", "Europe & Central Asia", "Europe & Central Asia", "Latin America & Caribbean ", "North America", "Latin America & Caribbean ", "Latin America & Caribbean ", "Latin America & Caribbean ", "East Asia & Pacific", "South Asia", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "North America", "Europe & Central Asia", "Europe & Central Asia", "Latin America & Caribbean ", "East Asia & Pacific", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Latin America & Caribbean ", "Latin America & Caribbean ", "Latin America & Caribbean ", "Europe & Central Asia", "Europe & Central Asia", "Europe & Central Asia", "Middle East & North Africa", "Latin America & Caribbean ", "Europe & Central Asia", "Latin America & Caribbean ", "Middle East & North Africa", "Latin America & Caribbean ", "Middle East & North Africa", "Sub-Saharan Africa ", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "East Asia & Pacific", "Europe & Central Asia", "Europe & Central Asia", "East Asia & Pacific", "Sub-Saharan Africa ", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Europe & Central Asia", "Latin America & Caribbean ", "Europe & Central Asia", "Latin America & Caribbean ", "East Asia & Pacific", "Latin America & Caribbean ", "East Asia & Pacific", "Latin America & Caribbean ", "Europe & Central Asia", "Latin America & Caribbean ", "Europe & Central Asia", "East Asia & Pacific", "Europe & Central Asia", "South Asia", "Europe & Central Asia", "Middle East & North Africa", "Middle East & North Africa", "Europe & Central Asia", "Middle East & North Africa", "Europe & Central Asia", "Latin America & Caribbean ", "Middle East & North Africa", "East Asia & Pacific", "Europe & Central Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "East Asia & Pacific", "East Asia & Pacific", "Latin America & Caribbean ", "East Asia & Pacific", "Middle East & North Africa", "East Asia & Pacific", "Middle East & North Africa", "Sub-Saharan Africa ", "Middle East & North Africa", "Latin America & Caribbean ", "Europe & Central Asia", "South Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "Europe & Central Asia", "Europe & Central Asia", "East Asia & Pacific", "Latin America & Caribbean ", "Middle East & North Africa", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "South Asia", "Latin America & Caribbean ", "East Asia & Pacific", "Europe & Central Asia", "Sub-Saharan Africa ", "Middle East & North Africa", "East Asia & Pacific", "Europe & Central Asia", "East Asia & Pacific", "East Asia & Pacific", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "East Asia & Pacific", "Sub-Saharan Africa ", "East Asia & Pacific", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Europe & Central Asia", "Europe & Central Asia", "South Asia", "East Asia & Pacific", "East Asia & Pacific", "Middle East & North Africa", "South Asia", "Latin America & Caribbean ", "Latin America & Caribbean ", "East Asia & Pacific", "East Asia & Pacific", "East Asia & Pacific", "Europe & Central Asia", "Latin America & Caribbean ", "East Asia & Pacific", "Europe & Central Asia", "Latin America & Caribbean ", "Middle East & North Africa", "East Asia & Pacific", "Middle East & North Africa", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "Middle East & North Africa", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "East Asia & Pacific", "East Asia & Pacific", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Europe & Central Asia", "Sub-Saharan Africa ", "Europe & Central Asia", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Europe & Central Asia", "Europe & Central Asia", "Europe & Central Asia", "Sub-Saharan Africa ", "Latin America & Caribbean ", "Sub-Saharan Africa ", "Middle East & North Africa", "Latin America & Caribbean ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "East Asia & Pacific", "Europe & Central Asia", "Europe & Central Asia", "East Asia & Pacific", "East Asia & Pacific", "Latin America & Caribbean ", "Middle East & North Africa", "Europe & Central Asia", "East Asia & Pacific", "East Asia & Pacific", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Europe & Central Asia", "Latin America & Caribbean ", "North America", "Europe & Central Asia", "Latin America & Caribbean ", "Latin America & Caribbean ", "Latin America & Caribbean ", "Latin America & Caribbean ", "East Asia & Pacific", "East Asia & Pacific", "East Asia & Pacific", "Europe & Central Asia", "Middle East & North Africa", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "Sub-Saharan Africa ", "World", "World", "World", "World", "World", "World", "World", "" ], "text": [ "2,700,558,659", "20,191,764,940", "122,123,822,334", "13,025,062,196", "3,013,387,424", "382,575,085,092", "642,695,864,756", "11,527,458,566", "634,000,000", "1,510,084,751", "1,330,803,227,996", "416,835,975,862", "40,865,558,912", "3,172,416,146", "494,901,708,704", "9,246,696,924", "12,322,864,245", "249,723,862,487", "58,220,973,783", "35,432,686,170", "12,162,100,000", "18,080,118,128", "54,726,595,249", "1,862,614,800", "nan", "37,508,642,258", "2,053,594,973,993", "4,673,500,000", "12,128,089,000", "2,528,007,911", "17,406,565,823", "2,167,501,640", "1,646,867,220,617", "678,965,423,322", "nan", "277,746,457,910", "12,143,491,448,186", "38,053,610,009", "34,922,782,311", "38,019,265,626", "8,701,334,800", "311,789,874,617", "1,068,124,330", "1,771,235,958", "58,174,550,212", "96,851,000,000", "3,116,610,112", "3,570,575,151", "22,141,864,999", "215,913,545,038", "3,693,204,332,230", "1,844,674,435", "496,726,249", "329,865,553,843", "75,931,656,815", "167,555,280,113", "104,295,862,000", "235,369,129,338", "nan", "1,314,314,164,402", "26,611,651,599", "81,716,326,731", "252,331,136,734", "5,270,335,185", "2,586,285,406,562", "nan", "336,427,500", "14,892,609,693", "2,637,866,340,434", "15,081,330,942", "58,996,776,244", "nan", "9,915,311,049", "1,489,464,788", "1,346,841,897", "12,289,913,729", "203,085,551,429", "1,126,882,296", "nan", "75,620,095,538", "5,859,000,000", "3,555,205,811", "341,648,103,475", "22,940,179,174", "55,201,417,479", "8,408,252,995", "139,761,138,103", "1,015,423,455,783", "nan", "2,652,551,202,555", "334,834,010,486", "454,012,768,724", "193,158,783,784", "24,489,493,459", "353,268,411,919", "1,946,570,340,341", "14,781,107,822", "40,765,867,419", "4,859,950,558,539", "162,886,867,832", "78,757,391,333", "7,702,934,800", "22,177,200,512", "185,572,502", "992,007,403", "1,530,750,923,149", "119,551,599,077", "16,853,087,485", "53,393,799,668", "3,285,455,000", "38,115,981,879", "1,810,139,889", "nan", "88,019,706,804", "2,578,265,356", "47,544,459,559", "62,316,359,824", "30,463,302,414", "50,559,431,846", "nan", "109,708,728,849", "6,400,946,586", "9,669,759,987", "11,465,850,504", "4,865,546,026", "1,158,071,006,810", "204,173,400", "11,279,509,014", "15,339,614,407", "12,748,803,180", "66,719,084,836", "4,844,592,067", "11,433,635,876", "1,593,000,000", "12,651,912,500", "4,975,432,191", "13,259,351,418", "6,303,292,264", "314,707,268,050", "13,566,192,143", "nan", "8,119,710,126", "375,745,486,521", "13,843,586,680", "831,809,944,961", "399,488,897,844", "24,880,266,905", "113,880,715", "202,590,814,085", "70,783,875,163", "304,951,818,494", "62,283,800,000", "210,702,303,186", "313,619,747,740", "289,823,500", "22,277,692,409", "526,371,021,089", "104,250,200,000", "nan", "219,308,126,634", "39,008,900,332", "14,498,100,000", "nan", "166,928,571,429", "211,406,933,991", "1,578,624,060,588", "9,135,454,442", "688,586,133,333", "123,053,386,001", "21,081,669,870", "338,406,474,039", "1,321,131,091", "3,739,577,973", "24,927,970,000", "1,632,860,041", "4,509,001,513", "44,120,424,392", "nan", "375,040,174", "3,068,766,110", "95,617,670,260", "48,455,919,386", "535,607,385,506", "4,433,664,364", "nan", "1,503,168,690", "nan", "962,525,840", "9,975,692,095", "4,765,866,980", "455,275,517,239", "7,157,865,188", "37,926,285,714", "2,487,269,437", "430,174,169", "22,250,455,019", "39,952,095,561", "851,549,231,503", "40,620,557", "nan", "53,320,625,959", "25,995,031,850", "112,190,355,158", "56,488,991,831", "19,485,393,853,000", "59,159,949,231", "785,222,509", "nan", "nan", "3,855,000,000", "223,779,865,815", "849,708,343", "841,538,413", "7,227,764,977", "26,818,703,093", "348,871,647,962", "25,868,142,077", "22,813,010,116", "23,293,052,280,872", "21,498,482,968,772", "5,518,414,251,525", "3,205,069,078,223", "21,132,261,073,617", "3,347,712,176,123", "1,675,112,398,108", "80,890,941,975,150" ], "type": "sunburst", "values": [ 2700558659.21788, 20191764940.1602, 122123822333.591, 13025062195.7906, 3013387423.93509, 382575085091.899, 642695864756.35, 11527458565.7334, 634000000.0, 1510084750.74074, 1330803227996.08, 416835975862.194, 40865558912.3867, 3172416146.3921, 494901708704.269, 9246696923.66155, 12322864244.9183, 249723862487.361, 58220973782.7715, 35432686170.2128, 12162100000.0, 18080118128.3854, 54726595249.1849, 1862614800.0, null, 37508642257.5977, 2053594973992.61, 4673500000.0, 12128088999.9276, 2528007911.35353, 17406565823.2986, 2167501639.76783, 1646867220617.47, 678965423322.021, null, 277746457909.868, 12143491448186.1, 38053610009.4172, 34922782310.6416, 38019265625.856, 8701334800.21976, 311789874617.096, 1068124329.86257, 1771235958.20125, 58174550211.5503, 96851000000.0, 3116610111.73184, 3570575151.26723, 22141864998.8731, 215913545038.43, 3693204332229.78, 1844674434.50371, 496726248.518519, 329865553842.833, 75931656814.657, 167555280113.181, 104295862000.0, 235369129337.711, null, 1314314164402.2, 26611651598.9453, 81716326730.819, 252331136734.129, 5270335184.70768, 2586285406561.51, null, 336427500.0, 14892609693.1667, 2637866340434.13, 15081330942.4188, 58996776244.424, null, 9915311049.15133, 1489464787.85603, 1346841897.00437, 12289913729.3358, 203085551429.132, 1126882296.2963, null, 75620095537.5005, 5859000000.0, 3555205811.13802, 341648103474.824, 22940179173.6147, 55201417479.3925, 8408252995.16143, 139761138102.757, 1015423455783.28, null, 2652551202555.27, 334834010485.56, 454012768723.589, 193158783783.784, 24489493459.0074, 353268411918.577, 1946570340341.13, 14781107821.7513, 40765867418.8999, 4859950558538.97, 162886867831.694, 78757391333.0088, 7702934800.12836, 22177200511.5811, 185572501.532802, 992007403.125926, 1530750923148.7, 119551599076.822, 16853087485.4118, 53393799668.325, 3285455000.0, 38115981878.5647, 1810139888.88889, null, 88019706803.834, 2578265355.71255, 47544459558.9514, 62316359824.1281, 30463302413.7289, 50559431846.4989, null, 109708728848.535, 6400946585.53076, 9669759987.02633, 11465850504.0067, 4865546025.86599, 1158071006809.62, 204173400.0, 11279509013.9119, 15339614406.6617, 12748803180.3035, 66719084835.9898, 4844592066.71174, 11433635875.9316, 1593000000.0, 12651912500.4128, 4975432190.51025, 13259351418.4459, 6303292264.18905, 314707268049.991, 13566192142.5835, null, 8119710126.32655, 375745486520.656, 13843586679.5401, 831809944960.879, 399488897844.046, 24880266905.4961, 113880715.219337, 202590814084.991, 70783875162.5488, 304951818494.066, 62283800000.0, 210702303186.432, 313619747740.186, 289823500.0, 22277692408.8879, 526371021088.561, 104250200000.0, null, 219308126633.628, 39008900331.6733, 14498100000.0, null, 166928571428.571, 211406933991.363, 1578624060588.26, 9135454442.14013, 688586133333.333, 123053386001.137, 21081669870.0624, 338406474038.67, 1321131090.73503, 3739577973.23943, 24927970000.0, 1632860040.56795, 4509001513.2827, 44120424391.86, null, 375040173.816889, 3068766109.75333, 95617670260.1145, 48455919386.0505, 535607385506.432, 4433664364.24725, null, 1503168689.81984, null, 962525840.0, 9975692095.40855, 4765866980.38429, 455275517239.347, 7157865188.25222, 37926285714.2857, 2487269437.36822, 430174168.740104, 22250455018.8067, 39952095560.8829, 851549231502.615, 40620557.1335093, null, 53320625958.5628, 25995031850.1545, 112190355158.178, 56488991831.0239, 19485393853000.0, 59159949231.4924, 785222509.144563, null, null, 3855000000.0, 223779865815.183, 849708342.698412, 841538412.998896, 7227764976.79274, 26818703092.5852, 348871647962.321, 25868142076.7897, 22813010116.1292, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] } ], "layout": { "height": 800, "template": { "data": { "bar": [ { "error_x": { "color": "#2a3f5f" }, "error_y": { "color": "#2a3f5f" }, "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "#E5ECF6", "width": 0.5 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "baxis": { "endlinecolor": "#2a3f5f", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "#2a3f5f" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "parcoords" } ], "scatter": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "colorscale": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "#EBF0F8" }, "line": { "color": "white" } }, "header": { "fill": { "color": "#C8D4E3" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "#2a3f5f", "arrowhead": 0, "arrowwidth": 1 }, "colorscale": { "diverging": [ [ 0, "#8e0152" ], [ 0.1, "#c51b7d" ], [ 0.2, "#de77ae" ], [ 0.3, "#f1b6da" ], [ 0.4, "#fde0ef" ], [ 0.5, "#f7f7f7" ], [ 0.6, "#e6f5d0" ], [ 0.7, "#b8e186" ], [ 0.8, "#7fbc41" ], [ 0.9, "#4d9221" ], [ 1, "#276419" ] ], "sequential": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ], "sequentialminus": [ [ 0.0, "#0d0887" ], [ 0.1111111111111111, "#46039f" ], [ 0.2222222222222222, "#7201a8" ], [ 0.3333333333333333, "#9c179e" ], [ 0.4444444444444444, "#bd3786" ], [ 0.5555555555555556, "#d8576b" ], [ 0.6666666666666666, "#ed7953" ], [ 0.7777777777777778, "#fb9f3a" ], [ 0.8888888888888888, "#fdca26" ], [ 1.0, "#f0f921" ] ] }, "colorway": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#FFA15A", "#19d3f3", "#FF6692", "#B6E880", "#FF97FF", "#FECB52" ], "font": { "color": "#2a3f5f" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "#E5ECF6", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "mapbox": { "style": "light" }, "paper_bgcolor": "white", "plot_bgcolor": "#E5ECF6", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "radialaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "#E5ECF6", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "line": { "color": "#2a3f5f" } }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" }, "bgcolor": "#E5ECF6", "caxis": { "gridcolor": "white", "linecolor": "white", "ticks": "" } }, "title": { "x": 0.05 }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Gross Domestic Product (World Bank, 2017)" }, "width": 800 } }, "text/html": [ "
\n", " \n", " \n", "
\n", " \n", "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "sundial_plot('NY.GDP.MKTP.CD', 'Gross Domestic Product', year)" ] } ], "metadata": { "jupytext": { "formats": "ipynb,md" }, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.3" }, "papermill": { "duration": 4.981095, "end_time": "2019-09-24T09:49:26.073353", "environment_variables": {}, "exception": null, "input_path": "world_facts.ipynb", "output_path": "world_facts_2017.ipynb", "parameters": { "year": 2017 }, "start_time": "2019-09-24T09:49:21.092258", "version": "1.2.0" } }, "nbformat": 4, "nbformat_minor": 2 }