diff --git a/Plotly/plotly express.ipynb b/Plotly/plotly express.ipynb new file mode 100644 index 0000000..f682323 --- /dev/null +++ b/Plotly/plotly express.ipynb @@ -0,0 +1,48196 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "C8wjb0p8pf-q" + }, + "source": [ + "### About Plotly\n", + "\n", + "Plotly is a Data Viz library by the company Plotly based out of Canada with support in languages such as Python, Js, Julia etc.\n", + "\n", + "#### Advantages\n", + "\n", + "- Multi language support\n", + "- Lot's of graphs\n", + "- Interactive plots\n", + "- Beautiful plots\n", + "\n", + "Does not work with live data streams. Dash can be explored for that." + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "WQcbeMspu_MY" + }, + "source": [ + "### The Plotly Roadmap\n", + "\n", + "- Plotly Go\n", + "- Plotly Express\n", + "- Dash" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "haHyNfvvq345" + }, + "source": [ + "### Working with Plotly Go" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "id": "p-24Zfm8q9Y_" + }, + "outputs": [], + "source": [ + "# import the libraries\n", + "import plotly.graph_objects as go\n", + "import numpy as np\n", + "import pandas as pd\n", + "import plotly.express as px" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "id": "6hre_rcKGLvO" + }, + "outputs": [], + "source": [ + "# import datasets\n", + "tips = px.data.tips()\n", + "iris = px.data.iris()\n", + "gap = px.data.gapminder()" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 206 + }, + "id": "E3yShZXqnaSo", + "outputId": "04e94555-058d-41d2-ca93-a44c3323d0b3" + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
countrycontinentyearlifeExppopgdpPercapiso_alphaiso_num
0AfghanistanAsia195228.8018425333779.445314AFG4
1AfghanistanAsia195730.3329240934820.853030AFG4
2AfghanistanAsia196231.99710267083853.100710AFG4
3AfghanistanAsia196734.02011537966836.197138AFG4
4AfghanistanAsia197236.08813079460739.981106AFG4
\n", + "
" + ], + "text/plain": [ + " country continent year lifeExp pop gdpPercap iso_alpha \\\n", + "0 Afghanistan Asia 1952 28.801 8425333 779.445314 AFG \n", + "1 Afghanistan Asia 1957 30.332 9240934 820.853030 AFG \n", + "2 Afghanistan Asia 1962 31.997 10267083 853.100710 AFG \n", + "3 Afghanistan Asia 1967 34.020 11537966 836.197138 AFG \n", + "4 Afghanistan Asia 1972 36.088 13079460 739.981106 AFG \n", + "\n", + " iso_num \n", + "0 4 \n", + "1 4 \n", + "2 4 \n", + "3 4 \n", + "4 4 " + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gap.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 423 + }, + "id": "TDb5xPPED7sg", + "outputId": "0417272e-48f3-49d8-89e7-a09df087c006" + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
countrycontinentyearlifeExppopgdpPercapiso_alphaiso_num
11AfghanistanAsia200743.82831889923974.580338AFG4
23AlbaniaEurope200776.42336005235937.029526ALB8
35AlgeriaAfrica200772.301333332166223.367465DZA12
47AngolaAfrica200742.731124204764797.231267AGO24
59ArgentinaAmericas200775.3204030192712779.379640ARG32
...........................
1655VietnamAsia200774.249852623562441.576404VNM704
1667West Bank and GazaAsia200773.42240183323025.349798PSE275
1679Yemen, Rep.Asia200762.698222117432280.769906YEM887
1691ZambiaAfrica200742.384117460351271.211593ZMB894
1703ZimbabweAfrica200743.48712311143469.709298ZWE716
\n", + "

142 rows × 8 columns

\n", + "
" + ], + "text/plain": [ + " country continent year lifeExp pop gdpPercap \\\n", + "11 Afghanistan Asia 2007 43.828 31889923 974.580338 \n", + "23 Albania Europe 2007 76.423 3600523 5937.029526 \n", + "35 Algeria Africa 2007 72.301 33333216 6223.367465 \n", + "47 Angola Africa 2007 42.731 12420476 4797.231267 \n", + "59 Argentina Americas 2007 75.320 40301927 12779.379640 \n", + "... ... ... ... ... ... ... \n", + "1655 Vietnam Asia 2007 74.249 85262356 2441.576404 \n", + "1667 West Bank and Gaza Asia 2007 73.422 4018332 3025.349798 \n", + "1679 Yemen, Rep. Asia 2007 62.698 22211743 2280.769906 \n", + "1691 Zambia Africa 2007 42.384 11746035 1271.211593 \n", + "1703 Zimbabwe Africa 2007 43.487 12311143 469.709298 \n", + "\n", + " iso_alpha iso_num \n", + "11 AFG 4 \n", + "23 ALB 8 \n", + "35 DZA 12 \n", + "47 AGO 24 \n", + "59 ARG 32 \n", + "... ... ... \n", + "1655 VNM 704 \n", + "1667 PSE 275 \n", + "1679 YEM 887 \n", + "1691 ZMB 894 \n", + "1703 ZWE 716 \n", + "\n", + "[142 rows x 8 columns]" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# scatter plot using plotly go\n", + "temp_df = gap[gap['year'] == 2007]\n", + "temp_df" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "jFzYczQ1oDCI", + "outputId": "3e7bb16f-35be-4406-a67d-f1d33b40ffdc" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "mode": "markers", + "type": "scatter", + "x": [ + 43.828, + 76.423, + 72.301, + 42.731, + 75.32, + 81.235, + 79.829, + 75.635, + 64.062, + 79.441, + 56.728, + 65.554, + 74.852, + 50.728, + 72.39, + 73.005, + 52.295, + 49.58, + 59.723, + 50.43, + 80.653, + 44.74100000000001, + 50.651, + 78.553, + 72.961, + 72.889, + 65.152, + 46.462, + 55.322, + 78.782, + 48.328, + 75.748, + 78.273, + 76.486, + 78.332, + 54.791, + 72.235, + 74.994, + 71.33800000000002, + 71.878, + 51.57899999999999, + 58.04, + 52.947, + 79.313, + 80.657, + 56.735, + 59.448, + 79.406, + 60.022, + 79.483, + 70.259, + 56.007, + 46.38800000000001, + 60.916, + 70.19800000000001, + 82.208, + 73.33800000000002, + 81.757, + 64.69800000000001, + 70.65, + 70.964, + 59.545, + 78.885, + 80.745, + 80.546, + 72.567, + 82.603, + 72.535, + 54.11, + 67.297, + 78.623, + 77.58800000000002, + 71.993, + 42.592, + 45.678, + 73.952, + 59.44300000000001, + 48.303, + 74.241, + 54.467, + 64.164, + 72.801, + 76.195, + 66.803, + 74.543, + 71.164, + 42.082, + 62.069, + 52.90600000000001, + 63.785, + 79.762, + 80.204, + 72.899, + 56.867, + 46.859, + 80.196, + 75.64, + 65.483, + 75.53699999999998, + 71.752, + 71.421, + 71.688, + 75.563, + 78.098, + 78.74600000000002, + 76.442, + 72.476, + 46.242, + 65.528, + 72.777, + 63.062, + 74.002, + 42.56800000000001, + 79.972, + 74.663, + 77.926, + 48.159, + 49.339, + 80.941, + 72.396, + 58.556, + 39.613, + 80.884, + 81.70100000000002, + 74.143, + 78.4, + 52.517, + 70.616, + 58.42, + 69.819, + 73.923, + 71.777, + 51.542, + 79.425, + 78.242, + 76.384, + 73.747, + 74.249, + 73.422, + 62.698, + 42.38399999999999, + 43.487 + ], + "y": [ + 974.5803384, + 5937.029525999998, + 6223.367465, + 4797.231267, + 12779.37964, + 34435.367439999995, + 36126.4927, + 29796.04834, + 1391.253792, + 33692.60508, + 1441.284873, + 3822.137084, + 7446.298803, + 12569.85177, + 9065.800825, + 10680.79282, + 1217.032994, + 430.0706916, + 1713.778686, + 2042.09524, + 36319.23501, + 706.016537, + 1704.063724, + 13171.63885, + 4959.114854, + 7006.580419, + 986.1478792, + 277.5518587, + 3632.557798, + 9645.06142, + 1544.750112, + 14619.222719999998, + 8948.102923, + 22833.30851, + 35278.41874, + 2082.4815670000007, + 6025.3747520000015, + 6873.262326000001, + 5581.180998, + 5728.353514, + 12154.08975, + 641.3695236000002, + 690.8055759, + 33207.0844, + 30470.0167, + 13206.48452, + 752.7497265, + 32170.37442, + 1327.60891, + 27538.41188, + 5186.050003, + 942.6542111, + 579.2317429999998, + 1201.637154, + 3548.3308460000007, + 39724.97867, + 18008.94444, + 36180.78919, + 2452.210407, + 3540.651564, + 11605.71449, + 4471.061906, + 40675.99635, + 25523.2771, + 28569.7197, + 7320.8802620000015, + 31656.06806, + 4519.461171, + 1463.249282, + 1593.06548, + 23348.139730000006, + 47306.98978, + 10461.05868, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 12451.6558, + 1042.581557, + 1803.151496, + 10956.99112, + 11977.57496, + 3095.7722710000007, + 9253.896111, + 3820.17523, + 823.6856205, + 944, + 4811.060429, + 1091.359778, + 36797.93332, + 25185.00911, + 2749.320965, + 619.6768923999998, + 2013.977305, + 49357.19017, + 22316.19287, + 2605.94758, + 9809.185636, + 4172.838464, + 7408.905561, + 3190.481016, + 15389.924680000002, + 20509.64777, + 19328.70901, + 7670.122558, + 10808.47561, + 863.0884639000002, + 1598.435089, + 21654.83194, + 1712.472136, + 9786.534714, + 862.5407561000002, + 47143.17964, + 18678.31435, + 25768.25759, + 926.1410683, + 9269.657808, + 28821.0637, + 3970.095407, + 2602.394995, + 4513.480643, + 33859.74835, + 37506.41907, + 4184.548089, + 28718.27684, + 1107.482182, + 7458.396326999998, + 882.9699437999999, + 18008.50924, + 7092.923025, + 8458.276384, + 1056.380121, + 33203.26128, + 42951.65309, + 10611.46299, + 11415.80569, + 2441.576404, + 3025.349798, + 2280.769906, + 1271.211593, + 469.70929810000007 + ] + }, + { + "mode": "lines", + "type": "scatter", + "x": [ + 0, + 1, + 2 + ], + "y": [ + 0, + 90, + 30000 + ] + } + ], + "layout": { + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "Life Exp Vs GDP per Capita for 2007" + }, + "xaxis": { + "title": { + "text": "Life Exp" + } + }, + "yaxis": { + "title": { + "text": "GDP" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Creating a figure\n", + "trace1 = go.Scatter(\n", + " x = temp_df['lifeExp'],\n", + " y = temp_df['gdpPercap'],\n", + " mode = 'markers' # For scatter plot\n", + ")\n", + "\n", + "trace2 = go.Scatter(x = [0,1,2], y = [0,90,30000], mode = 'lines') # For line plot\n", + "\n", + "# data is a list -> You can pass either one plot or multiple plots\n", + "data = [trace1,trace2]\n", + "\n", + "layout = go.Layout(\n", + " title = 'Life Exp Vs GDP per Capita for 2007', \n", + " xaxis = {'title':'Life Exp'},\n", + " yaxis = {'title':'GDP'}\n", + ")\n", + "\n", + "# Creating a figure\n", + "fig = go.Figure(data, layout)\n", + "\n", + "# Printing the figure\n", + "fig.show()" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "4T_G3_7WT0z9", + "outputId": "4a4b79d5-875c-4e16-b1da-267eed551af1" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 31889923, + 708573, + 150448339, + 14131858, + 1318683096, + 6980412, + 1110396331, + 223547000, + 69453570, + 27499638, + 6426679, + 127467972, + 6053193, + 23301725, + 49044790, + 2505559, + 3921278, + 24821286, + 2874127, + 47761980, + 28901790, + 3204897, + 169270617, + 91077287, + 27601038, + 4553009, + 20378239, + 19314747, + 23174294, + 65068149, + 85262356, + 4018332, + 22211743 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 43.828, + 75.635, + 64.062, + 59.723, + 72.961, + 82.208, + 64.69800000000001, + 70.65, + 70.964, + 59.545, + 80.745, + 82.603, + 72.535, + 67.297, + 78.623, + 77.58800000000002, + 71.993, + 74.241, + 66.803, + 62.069, + 63.785, + 75.64, + 65.483, + 71.688, + 72.777, + 79.972, + 72.396, + 74.143, + 78.4, + 70.616, + 74.249, + 73.422, + 62.698 + ], + "xaxis": "x", + "y": [ + 974.5803384, + 29796.04834, + 1391.253792, + 1713.778686, + 4959.114854, + 39724.97867, + 2452.210407, + 3540.651564, + 11605.71449, + 4471.061906, + 25523.2771, + 31656.06806, + 4519.461171, + 1593.06548, + 23348.139730000006, + 47306.98978, + 10461.05868, + 12451.6558, + 3095.7722710000007, + 944, + 1091.359778, + 22316.19287, + 2605.94758, + 3190.481016, + 21654.83194, + 47143.17964, + 3970.095407, + 4184.548089, + 28718.27684, + 7458.396326999998, + 2441.576404, + 3025.349798, + 2280.769906 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 3600523, + 8199783, + 10392226, + 4552198, + 7322858, + 4493312, + 10228744, + 5468120, + 5238460, + 61083916, + 82400996, + 10706290, + 9956108, + 301931, + 4109086, + 58147733, + 684736, + 16570613, + 4627926, + 38518241, + 10642836, + 22276056, + 10150265, + 5447502, + 2009245, + 40448191, + 9031088, + 7554661, + 71158647, + 60776238 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 76.423, + 79.829, + 79.441, + 74.852, + 73.005, + 75.748, + 76.486, + 78.332, + 79.313, + 80.657, + 79.406, + 79.483, + 73.33800000000002, + 81.757, + 78.885, + 80.546, + 74.543, + 79.762, + 80.196, + 75.563, + 78.098, + 72.476, + 74.002, + 74.663, + 77.926, + 80.941, + 80.884, + 81.70100000000002, + 71.777, + 79.425 + ], + "xaxis": "x", + "y": [ + 5937.029525999998, + 36126.4927, + 33692.60508, + 7446.298803, + 10680.79282, + 14619.222719999998, + 22833.30851, + 35278.41874, + 33207.0844, + 30470.0167, + 32170.37442, + 27538.41188, + 18008.94444, + 36180.78919, + 40675.99635, + 28569.7197, + 9253.896111, + 36797.93332, + 49357.19017, + 15389.924680000002, + 20509.64777, + 10808.47561, + 9786.534714, + 18678.31435, + 25768.25759, + 28821.0637, + 33859.74835, + 37506.41907, + 8458.276384, + 33203.26128 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 33333216, + 12420476, + 8078314, + 1639131, + 14326203, + 8390505, + 17696293, + 4369038, + 10238807, + 710960, + 64606759, + 3800610, + 18013409, + 496374, + 80264543, + 551201, + 4906585, + 76511887, + 1454867, + 1688359, + 22873338, + 9947814, + 1472041, + 35610177, + 2012649, + 3193942, + 6036914, + 19167654, + 13327079, + 12031795, + 3270065, + 1250882, + 33757175, + 19951656, + 2055080, + 12894865, + 135031164, + 798094, + 8860588, + 199579, + 12267493, + 6144562, + 9118773, + 43997828, + 42292929, + 1133066, + 38139640, + 5701579, + 10276158, + 29170398, + 11746035, + 12311143 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 72.301, + 42.731, + 56.728, + 50.728, + 52.295, + 49.58, + 50.43, + 44.74100000000001, + 50.651, + 65.152, + 46.462, + 55.322, + 48.328, + 54.791, + 71.33800000000002, + 51.57899999999999, + 58.04, + 52.947, + 56.735, + 59.448, + 60.022, + 56.007, + 46.38800000000001, + 54.11, + 42.592, + 45.678, + 73.952, + 59.44300000000001, + 48.303, + 54.467, + 64.164, + 72.801, + 71.164, + 42.082, + 52.90600000000001, + 56.867, + 46.859, + 76.442, + 46.242, + 65.528, + 63.062, + 42.56800000000001, + 48.159, + 49.339, + 58.556, + 39.613, + 52.517, + 58.42, + 73.923, + 51.542, + 42.38399999999999, + 43.487 + ], + "xaxis": "x", + "y": [ + 6223.367465, + 4797.231267, + 1441.284873, + 12569.85177, + 1217.032994, + 430.0706916, + 2042.09524, + 706.016537, + 1704.063724, + 986.1478792, + 277.5518587, + 3632.557798, + 1544.750112, + 2082.4815670000007, + 5581.180998, + 12154.08975, + 641.3695236000002, + 690.8055759, + 13206.48452, + 752.7497265, + 1327.60891, + 942.6542111, + 579.2317429999998, + 1463.249282, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 1042.581557, + 1803.151496, + 10956.99112, + 3820.17523, + 823.6856205, + 4811.060429, + 619.6768923999998, + 2013.977305, + 7670.122558, + 863.0884639000002, + 1598.435089, + 1712.472136, + 862.5407561000002, + 926.1410683, + 9269.657808, + 2602.394995, + 4513.480643, + 1107.482182, + 882.9699437999999, + 7092.923025, + 1056.380121, + 1271.211593, + 469.70929810000007 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 40301927, + 9119152, + 190010647, + 33390141, + 16284741, + 44227550, + 4133884, + 11416987, + 9319622, + 13755680, + 6939688, + 12572928, + 8502814, + 7483763, + 2780132, + 108700891, + 5675356, + 3242173, + 6667147, + 28674757, + 3942491, + 1056608, + 301139947, + 3447496, + 26084662 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 75.32, + 65.554, + 72.39, + 80.653, + 78.553, + 72.889, + 78.782, + 78.273, + 72.235, + 74.994, + 71.878, + 70.259, + 60.916, + 70.19800000000001, + 72.567, + 76.195, + 72.899, + 75.53699999999998, + 71.752, + 71.421, + 78.74600000000002, + 69.819, + 78.242, + 76.384, + 73.747 + ], + "xaxis": "x", + "y": [ + 12779.37964, + 3822.137084, + 9065.800825, + 36319.23501, + 13171.63885, + 7006.580419, + 9645.06142, + 8948.102923, + 6025.3747520000015, + 6873.262326000001, + 5728.353514, + 5186.050003, + 1201.637154, + 3548.3308460000007, + 7320.8802620000015, + 11977.57496, + 2749.320965, + 9809.185636, + 4172.838464, + 7408.905561, + 19328.70901, + 18008.50924, + 42951.65309, + 10611.46299, + 11415.80569 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 20434176, + 4115771 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 81.235, + 80.204 + ], + "xaxis": "x", + "y": [ + 34435.367439999995, + 25185.00911 + ], + "yaxis": "y" + } + ], + "layout": { + "legend": { + "itemsizing": "constant", + "title": { + "text": "continent" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "title": { + "text": "lifeExp" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "gdpPercap" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# plot life exp and gdp scatter plot -> continent as color -> pop as size -> hover name -> range_x/range_y -> log_x/log_y\n", + "px.scatter(\n", + " temp_df, \n", + " x = 'lifeExp', \n", + " y = 'gdpPercap', \n", + " color = 'continent',\n", + " size = 'pop',\n", + " size_max = 100, \n", + " hover_name = 'country' # title of hover block\n", + ")\n", + "# Just like seaborn, we have to pass the dataframe first and then by passing columns we can perform multivariate analysis" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "1aOFFQJLkSTP", + "outputId": "919ef81e-d4c6-449f-b9e3-7ff4f8ed86aa" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1952
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 8425333, + 120447, + 46886859, + 4693836, + 556263527, + 2125900, + 372000000, + 82052000, + 17272000, + 5441766, + 1620914, + 86459025, + 607914, + 8865488, + 20947571, + 160000, + 1439529, + 6748378, + 800663, + 20092996, + 9182536, + 507833, + 41346560, + 22438691, + 4005677, + 1127000, + 7982342, + 3661549, + 8550362, + 21289402, + 26246839, + 1030585, + 4963829 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 28.801, + 50.93899999999999, + 37.484, + 39.417, + 44, + 60.96, + 37.37300000000001, + 37.468, + 44.869, + 45.32, + 65.39, + 63.03, + 43.158, + 50.056, + 47.453, + 55.565, + 55.928, + 48.463, + 42.244, + 36.319, + 36.157, + 37.578, + 43.43600000000001, + 47.752, + 39.875, + 60.396, + 57.593, + 45.883, + 58.5, + 50.848, + 40.412, + 43.16, + 32.548 + ], + "xaxis": "x", + "y": [ + 779.4453145, + 9867.084765, + 684.2441716, + 368.4692856, + 400.448611, + 3054.421209, + 546.5657493, + 749.6816546, + 3035.326002, + 4129.766056, + 4086.522128, + 3216.956347, + 1546.907807, + 1088.277758, + 1030.592226, + 108382.3529, + 4834.804067, + 1831.132894, + 786.5668575, + 331, + 545.8657228999998, + 1828.230307, + 684.5971437999998, + 1272.880995, + 6459.554823, + 2315.138227, + 1083.53203, + 1643.485354, + 1206.947913, + 757.7974177, + 605.0664917, + 1515.5923289999996, + 781.7175761 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1952
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 1282697, + 6927772, + 8730405, + 2791000, + 7274900, + 3882229, + 9125183, + 4334000, + 4090500, + 42459667, + 69145952, + 7733250, + 9504000, + 147962, + 2952156, + 47666000, + 413834, + 10381988, + 3327728, + 25730551, + 8526050, + 16630000, + 6860147, + 3558137, + 1489518, + 28549870, + 7124673, + 4815000, + 22235677, + 50430000 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 55.23, + 66.8, + 68, + 53.82, + 59.6, + 61.21, + 66.87, + 70.78, + 66.55, + 67.41, + 67.5, + 65.86, + 64.03, + 72.49, + 66.91, + 65.94, + 59.164, + 72.13, + 72.67, + 61.31, + 59.82, + 61.05, + 57.996, + 64.36, + 65.57, + 64.94, + 71.86, + 69.62, + 43.585, + 69.18 + ], + "xaxis": "x", + "y": [ + 1601.056136, + 6137.076492, + 8343.105126999999, + 973.5331948, + 2444.286648, + 3119.23652, + 6876.14025, + 9692.385245, + 6424.519071, + 7029.809327, + 7144.114393000002, + 3530.690067, + 5263.673816, + 7267.688428, + 5210.280328, + 4931.404154999998, + 2647.585601, + 8941.571858, + 10095.42172, + 4029.329699, + 3068.319867, + 3144.613186, + 3581.459448, + 5074.659104, + 4215.041741, + 3834.034742, + 8527.844662000001, + 14734.23275, + 1969.10098, + 9979.508487 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1952
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 9279525, + 4232095, + 1738315, + 442308, + 4469979, + 2445618, + 5009067, + 1291695, + 2682462, + 153936, + 14100005, + 854885, + 2977019, + 63149, + 22223309, + 216964, + 1438760, + 20860941, + 420702, + 284320, + 5581001, + 2664249, + 580653, + 6464046, + 748747, + 863308, + 1019729, + 4762912, + 2917802, + 3838168, + 1022556, + 516556, + 9939217, + 6446316, + 485831, + 3379468, + 33119096, + 257700, + 2534927, + 60011, + 2755589, + 2143249, + 2526994, + 14264935, + 8504667, + 290243, + 8322925, + 1219113, + 3647735, + 5824797, + 2672000, + 3080907 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 43.077, + 30.015, + 38.223, + 47.622, + 31.975, + 39.031, + 38.523, + 35.463, + 38.092, + 40.715, + 39.143, + 42.111, + 40.477, + 34.812, + 41.893, + 34.482, + 35.92800000000001, + 34.078, + 37.003, + 30, + 43.149, + 33.609, + 32.5, + 42.27, + 42.13800000000001, + 38.48, + 42.723, + 36.681, + 36.256, + 33.685, + 40.543, + 50.986, + 42.87300000000001, + 31.286, + 41.725, + 37.444, + 36.324, + 52.724, + 40, + 46.471, + 37.278, + 30.331, + 32.978, + 45.00899999999999, + 38.635, + 41.407, + 41.215, + 38.596, + 44.6, + 39.978, + 42.038, + 48.451 + ], + "xaxis": "x", + "y": [ + 2449.008185, + 3520.610273, + 1062.7522, + 851.2411407, + 543.2552413, + 339.2964587, + 1172.667655, + 1071.310713, + 1178.665927, + 1102.990936, + 780.5423257, + 2125.621418, + 1388.594732, + 2669.529475, + 1418.822445, + 375.6431231, + 328.9405571000001, + 362.1462796, + 4293.476475, + 485.2306591, + 911.2989371, + 510.1964923000001, + 299.850319, + 853.5409189999998, + 298.8462121, + 575.5729961000002, + 2387.54806, + 1443.011715, + 369.1650802, + 452.3369807, + 743.1159097, + 1967.955707, + 1688.20357, + 468.5260381, + 2423.780443, + 761.879376, + 1077.281856, + 2718.885295, + 493.3238752, + 879.5835855, + 1450.356983, + 879.7877358, + 1135.749842, + 4725.295531000002, + 1615.991129, + 1148.376626, + 716.6500721, + 859.8086567, + 1468.475631, + 734.753484, + 1147.388831, + 406.8841148 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1952
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 17876956, + 2883315, + 56602560, + 14785584, + 6377619, + 12350771, + 926317, + 6007797, + 2491346, + 3548753, + 2042865, + 3146381, + 3201488, + 1517453, + 1426095, + 30144317, + 1165790, + 940080, + 1555876, + 8025700, + 2227000, + 662850, + 157553000, + 2252965, + 5439568 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 62.485, + 40.414, + 50.917, + 68.75, + 54.745, + 50.643, + 57.206, + 59.42100000000001, + 45.928, + 48.357, + 45.262, + 42.023, + 37.579, + 41.912, + 58.53, + 50.789, + 42.31399999999999, + 55.191, + 62.649, + 43.902, + 64.28, + 59.1, + 68.44, + 66.071, + 55.088 + ], + "xaxis": "x", + "y": [ + 5911.315053, + 2677.326347, + 2108.944355, + 11367.16112, + 3939.978789, + 2144.115096, + 2627.0094710000008, + 5586.53878, + 1397.717137, + 3522.110717, + 3048.3029, + 2428.2377690000008, + 1840.366939, + 2194.926204, + 2898.530881, + 3478.125529, + 3112.363948, + 2480.380334, + 1952.308701, + 3758.523437, + 3081.959785, + 3023.271928, + 13990.482080000002, + 5716.766744, + 7689.799761 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1952
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 8691212, + 1994794 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 69.12, + 69.39 + ], + "xaxis": "x", + "y": [ + 10039.59564, + 10556.57566 + ], + "yaxis": "y" + } + ], + "frames": [ + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1952
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 8425333, + 120447, + 46886859, + 4693836, + 556263527, + 2125900, + 372000000, + 82052000, + 17272000, + 5441766, + 1620914, + 86459025, + 607914, + 8865488, + 20947571, + 160000, + 1439529, + 6748378, + 800663, + 20092996, + 9182536, + 507833, + 41346560, + 22438691, + 4005677, + 1127000, + 7982342, + 3661549, + 8550362, + 21289402, + 26246839, + 1030585, + 4963829 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 28.801, + 50.93899999999999, + 37.484, + 39.417, + 44, + 60.96, + 37.37300000000001, + 37.468, + 44.869, + 45.32, + 65.39, + 63.03, + 43.158, + 50.056, + 47.453, + 55.565, + 55.928, + 48.463, + 42.244, + 36.319, + 36.157, + 37.578, + 43.43600000000001, + 47.752, + 39.875, + 60.396, + 57.593, + 45.883, + 58.5, + 50.848, + 40.412, + 43.16, + 32.548 + ], + "xaxis": "x", + "y": [ + 779.4453145, + 9867.084765, + 684.2441716, + 368.4692856, + 400.448611, + 3054.421209, + 546.5657493, + 749.6816546, + 3035.326002, + 4129.766056, + 4086.522128, + 3216.956347, + 1546.907807, + 1088.277758, + 1030.592226, + 108382.3529, + 4834.804067, + 1831.132894, + 786.5668575, + 331, + 545.8657228999998, + 1828.230307, + 684.5971437999998, + 1272.880995, + 6459.554823, + 2315.138227, + 1083.53203, + 1643.485354, + 1206.947913, + 757.7974177, + 605.0664917, + 1515.5923289999996, + 781.7175761 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1952
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 1282697, + 6927772, + 8730405, + 2791000, + 7274900, + 3882229, + 9125183, + 4334000, + 4090500, + 42459667, + 69145952, + 7733250, + 9504000, + 147962, + 2952156, + 47666000, + 413834, + 10381988, + 3327728, + 25730551, + 8526050, + 16630000, + 6860147, + 3558137, + 1489518, + 28549870, + 7124673, + 4815000, + 22235677, + 50430000 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 55.23, + 66.8, + 68, + 53.82, + 59.6, + 61.21, + 66.87, + 70.78, + 66.55, + 67.41, + 67.5, + 65.86, + 64.03, + 72.49, + 66.91, + 65.94, + 59.164, + 72.13, + 72.67, + 61.31, + 59.82, + 61.05, + 57.996, + 64.36, + 65.57, + 64.94, + 71.86, + 69.62, + 43.585, + 69.18 + ], + "xaxis": "x", + "y": [ + 1601.056136, + 6137.076492, + 8343.105126999999, + 973.5331948, + 2444.286648, + 3119.23652, + 6876.14025, + 9692.385245, + 6424.519071, + 7029.809327, + 7144.114393000002, + 3530.690067, + 5263.673816, + 7267.688428, + 5210.280328, + 4931.404154999998, + 2647.585601, + 8941.571858, + 10095.42172, + 4029.329699, + 3068.319867, + 3144.613186, + 3581.459448, + 5074.659104, + 4215.041741, + 3834.034742, + 8527.844662000001, + 14734.23275, + 1969.10098, + 9979.508487 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1952
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 9279525, + 4232095, + 1738315, + 442308, + 4469979, + 2445618, + 5009067, + 1291695, + 2682462, + 153936, + 14100005, + 854885, + 2977019, + 63149, + 22223309, + 216964, + 1438760, + 20860941, + 420702, + 284320, + 5581001, + 2664249, + 580653, + 6464046, + 748747, + 863308, + 1019729, + 4762912, + 2917802, + 3838168, + 1022556, + 516556, + 9939217, + 6446316, + 485831, + 3379468, + 33119096, + 257700, + 2534927, + 60011, + 2755589, + 2143249, + 2526994, + 14264935, + 8504667, + 290243, + 8322925, + 1219113, + 3647735, + 5824797, + 2672000, + 3080907 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 43.077, + 30.015, + 38.223, + 47.622, + 31.975, + 39.031, + 38.523, + 35.463, + 38.092, + 40.715, + 39.143, + 42.111, + 40.477, + 34.812, + 41.893, + 34.482, + 35.92800000000001, + 34.078, + 37.003, + 30, + 43.149, + 33.609, + 32.5, + 42.27, + 42.13800000000001, + 38.48, + 42.723, + 36.681, + 36.256, + 33.685, + 40.543, + 50.986, + 42.87300000000001, + 31.286, + 41.725, + 37.444, + 36.324, + 52.724, + 40, + 46.471, + 37.278, + 30.331, + 32.978, + 45.00899999999999, + 38.635, + 41.407, + 41.215, + 38.596, + 44.6, + 39.978, + 42.038, + 48.451 + ], + "xaxis": "x", + "y": [ + 2449.008185, + 3520.610273, + 1062.7522, + 851.2411407, + 543.2552413, + 339.2964587, + 1172.667655, + 1071.310713, + 1178.665927, + 1102.990936, + 780.5423257, + 2125.621418, + 1388.594732, + 2669.529475, + 1418.822445, + 375.6431231, + 328.9405571000001, + 362.1462796, + 4293.476475, + 485.2306591, + 911.2989371, + 510.1964923000001, + 299.850319, + 853.5409189999998, + 298.8462121, + 575.5729961000002, + 2387.54806, + 1443.011715, + 369.1650802, + 452.3369807, + 743.1159097, + 1967.955707, + 1688.20357, + 468.5260381, + 2423.780443, + 761.879376, + 1077.281856, + 2718.885295, + 493.3238752, + 879.5835855, + 1450.356983, + 879.7877358, + 1135.749842, + 4725.295531000002, + 1615.991129, + 1148.376626, + 716.6500721, + 859.8086567, + 1468.475631, + 734.753484, + 1147.388831, + 406.8841148 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1952
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 17876956, + 2883315, + 56602560, + 14785584, + 6377619, + 12350771, + 926317, + 6007797, + 2491346, + 3548753, + 2042865, + 3146381, + 3201488, + 1517453, + 1426095, + 30144317, + 1165790, + 940080, + 1555876, + 8025700, + 2227000, + 662850, + 157553000, + 2252965, + 5439568 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 62.485, + 40.414, + 50.917, + 68.75, + 54.745, + 50.643, + 57.206, + 59.42100000000001, + 45.928, + 48.357, + 45.262, + 42.023, + 37.579, + 41.912, + 58.53, + 50.789, + 42.31399999999999, + 55.191, + 62.649, + 43.902, + 64.28, + 59.1, + 68.44, + 66.071, + 55.088 + ], + "xaxis": "x", + "y": [ + 5911.315053, + 2677.326347, + 2108.944355, + 11367.16112, + 3939.978789, + 2144.115096, + 2627.0094710000008, + 5586.53878, + 1397.717137, + 3522.110717, + 3048.3029, + 2428.2377690000008, + 1840.366939, + 2194.926204, + 2898.530881, + 3478.125529, + 3112.363948, + 2480.380334, + 1952.308701, + 3758.523437, + 3081.959785, + 3023.271928, + 13990.482080000002, + 5716.766744, + 7689.799761 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1952
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 8691212, + 1994794 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 69.12, + 69.39 + ], + "xaxis": "x", + "y": [ + 10039.59564, + 10556.57566 + ], + "yaxis": "y" + } + ], + "name": "1952" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1957
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 9240934, + 138655, + 51365468, + 5322536, + 637408000, + 2736300, + 409000000, + 90124000, + 19792000, + 6248643, + 1944401, + 91563009, + 746559, + 9411381, + 22611552, + 212846, + 1647412, + 7739235, + 882134, + 21731844, + 9682338, + 561977, + 46679944, + 26072194, + 4419650, + 1445929, + 9128546, + 4149908, + 10164215, + 25041917, + 28998543, + 1070439, + 5498090 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 30.332, + 53.832, + 39.348, + 41.36600000000001, + 50.54896, + 64.75, + 40.249, + 39.918, + 47.181, + 48.437, + 67.84, + 65.5, + 45.669, + 54.081, + 52.681, + 58.033, + 59.489, + 52.102, + 45.24800000000001, + 41.905, + 37.686, + 40.08, + 45.557, + 51.334, + 42.868, + 63.179, + 61.456, + 48.284, + 62.4, + 53.63, + 42.887, + 45.67100000000001, + 33.97 + ], + "xaxis": "x", + "y": [ + 820.8530296, + 11635.79945, + 661.6374577, + 434.0383364, + 575.9870009, + 3629.076457, + 590.061996, + 858.9002707000002, + 3290.257643, + 6229.333562, + 5385.278451, + 4317.694365, + 1886.080591, + 1571.134655, + 1487.593537, + 113523.1329, + 6089.786934000002, + 1810.0669920000007, + 912.6626085, + 350, + 597.9363557999999, + 2242.746551, + 747.0835292, + 1547.944844, + 8157.5912480000015, + 2843.104409, + 1072.546602, + 2117.234893, + 1507.86129, + 793.5774147999998, + 676.2854477999998, + 1827.067742, + 804.8304547 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1957
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 1476505, + 6965860, + 8989111, + 3076000, + 7651254, + 3991242, + 9513758, + 4487831, + 4324000, + 44310863, + 71019069, + 8096218, + 9839000, + 165110, + 2878220, + 49182000, + 442829, + 11026383, + 3491938, + 28235346, + 8817650, + 17829327, + 7271135, + 3844277, + 1533070, + 29841614, + 7363802, + 5126000, + 25670939, + 51430000 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 59.28, + 67.48, + 69.24, + 58.45, + 66.61, + 64.77, + 69.03, + 71.81, + 67.49, + 68.93, + 69.1, + 67.86, + 66.41, + 73.47, + 68.9, + 67.81, + 61.448, + 72.99, + 73.44, + 65.77, + 61.51, + 64.1, + 61.685, + 67.45, + 67.85, + 66.66, + 72.49, + 70.56, + 48.07899999999999, + 70.42 + ], + "xaxis": "x", + "y": [ + 1942.284244, + 8842.59803, + 9714.960623, + 1353.989176, + 3008.670727, + 4338.231617, + 8256.343918, + 11099.65935, + 7545.415386, + 8662.834898000001, + 10187.82665, + 4916.299889, + 6040.180011, + 9244.001412, + 5599.077872, + 6248.656232, + 3682.259903, + 11276.19344, + 11653.97304, + 4734.253019, + 3774.571743, + 3943.370225, + 4981.090891, + 6093.26298, + 5862.276629, + 4564.80241, + 9911.878226, + 17909.48973, + 2218.754257, + 11283.17795 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1957
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 10270856, + 4561361, + 1925173, + 474639, + 4713416, + 2667518, + 5359923, + 1392284, + 2894855, + 170928, + 15577932, + 940458, + 3300000, + 71851, + 25009741, + 232922, + 1542611, + 22815614, + 434904, + 323150, + 6391288, + 2876726, + 601095, + 7454779, + 813338, + 975950, + 1201578, + 5181679, + 3221238, + 4241884, + 1076852, + 609816, + 11406350, + 7038035, + 548080, + 3692184, + 37173340, + 308700, + 2822082, + 61325, + 3054547, + 2295678, + 2780415, + 16151549, + 9753392, + 326741, + 9452826, + 1357445, + 3950849, + 6675501, + 3016000, + 3646340 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 45.685, + 31.999, + 40.358, + 49.618, + 34.906, + 40.533, + 40.428, + 37.464, + 39.881, + 42.46, + 40.652, + 45.053, + 42.469, + 37.328, + 44.444, + 35.98300000000001, + 38.047, + 36.667, + 38.999, + 32.065, + 44.779, + 34.558, + 33.489000000000004, + 44.68600000000001, + 45.047, + 39.486, + 45.289, + 38.865, + 37.207, + 35.30699999999999, + 42.338, + 58.089, + 45.423, + 33.779, + 45.226000000000006, + 38.598, + 37.802, + 55.09, + 41.5, + 48.945, + 39.329, + 31.57, + 34.977, + 47.985, + 39.624, + 43.424, + 42.974, + 41.208, + 47.1, + 42.57100000000001, + 44.077, + 50.469 + ], + "xaxis": "x", + "y": [ + 3013.976023, + 3827.940465, + 959.6010805, + 918.2325349, + 617.1834647999998, + 379.5646281000001, + 1313.048099, + 1190.844328, + 1308.495577, + 1211.148548, + 905.8602303, + 2315.056572, + 1500.895925, + 2864.9690760000008, + 1458.915272, + 426.0964081, + 344.1618859, + 378.9041632, + 4976.198099, + 520.9267111, + 1043.5615369999996, + 576.2670245, + 431.79045660000014, + 944.4383152, + 335.9971151000001, + 620.9699901, + 3448.284395, + 1589.20275, + 416.3698064, + 490.3821867, + 846.1202613, + 2034.037981, + 1642.002314, + 495.58683330000014, + 2621.448058, + 835.5234025000002, + 1100.5925630000004, + 2769.451844, + 540.2893982999999, + 860.7369026, + 1567.653006, + 1004.484437, + 1258.147413, + 5487.104219, + 1770.3370739999998, + 1244.708364, + 698.5356073, + 925.9083202, + 1395.232468, + 774.3710692000002, + 1311.956766, + 518.7642681 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1957
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 19610538, + 3211738, + 65551171, + 17010154, + 7048426, + 14485993, + 1112300, + 6640752, + 2923186, + 4058385, + 2355805, + 3640876, + 3507701, + 1770390, + 1535090, + 35015548, + 1358828, + 1063506, + 1770902, + 9146100, + 2260000, + 764900, + 171984000, + 2424959, + 6702668 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 64.399, + 41.89, + 53.285, + 69.96, + 56.074, + 55.118, + 60.026, + 62.325, + 49.828, + 51.356, + 48.57, + 44.142, + 40.696, + 44.665, + 62.61, + 55.19, + 45.432, + 59.201, + 63.19600000000001, + 46.26300000000001, + 68.54, + 61.8, + 69.49, + 67.044, + 57.907 + ], + "xaxis": "x", + "y": [ + 6856.8562120000015, + 2127.686326, + 2487.365989, + 12489.95006, + 4315.622723, + 2323.805581, + 2990.010802, + 6092.1743590000015, + 1544.402995, + 3780.546651, + 3421.523218, + 2617.155967, + 1726.887882, + 2220.487682, + 4756.525781, + 4131.546641, + 3457.415947, + 2961.800905, + 2046.154706, + 4245.256697999999, + 3907.156189, + 4100.3934, + 14847.12712, + 6150.772969, + 9802.466526 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1957
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 9712569, + 2229407 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 70.33, + 70.26 + ], + "xaxis": "x", + "y": [ + 10949.64959, + 12247.39532 + ], + "yaxis": "y" + } + ], + "name": "1957" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1962
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 10267083, + 171863, + 56839289, + 6083619, + 665770000, + 3305200, + 454000000, + 99028000, + 22874000, + 7240260, + 2310904, + 95831757, + 933559, + 10917494, + 26420307, + 358266, + 1886848, + 8906385, + 1010280, + 23634436, + 10332057, + 628164, + 53100671, + 30325264, + 4943029, + 1750200, + 10421936, + 4834621, + 11918938, + 29263397, + 33796140, + 1133134, + 6120081 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 31.997, + 56.923, + 41.216, + 43.415, + 44.50136, + 67.65, + 43.605, + 42.518, + 49.325, + 51.457, + 69.39, + 68.73, + 48.12600000000001, + 56.65600000000001, + 55.292, + 60.47, + 62.094, + 55.737, + 48.25100000000001, + 45.108, + 39.393, + 43.165, + 47.67, + 54.757, + 45.914, + 65.798, + 62.192, + 50.305, + 65.2, + 56.06100000000001, + 45.363, + 48.127, + 35.18 + ], + "xaxis": "x", + "y": [ + 853.1007099999998, + 12753.27514, + 686.3415537999998, + 496.9136476, + 487.6740183, + 4692.648271999999, + 658.3471509, + 849.2897700999998, + 4187.329802, + 8341.737815, + 7105.630706, + 6576.649461, + 2348.009158, + 1621.693598, + 1536.344387, + 95458.11176, + 5714.560611, + 2036.884944, + 1056.353958, + 388, + 652.3968593, + 2924.638113, + 803.3427418, + 1649.552153, + 11626.41975, + 3674.735572, + 1074.47196, + 2193.037133, + 1822.879028, + 1002.199172, + 772.0491602000002, + 2198.9563120000007, + 825.6232006 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1962
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 1728137, + 7129864, + 9218400, + 3349000, + 8012946, + 4076557, + 9620282, + 4646899, + 4491443, + 47124000, + 73739117, + 8448233, + 10063000, + 182053, + 2830000, + 50843200, + 474528, + 11805689, + 3638919, + 30329617, + 9019800, + 18680721, + 7616060, + 4237384, + 1582962, + 31158061, + 7561588, + 5666000, + 29788695, + 53292000 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 64.82, + 69.54, + 70.25, + 61.93, + 69.51, + 67.13, + 69.9, + 72.35, + 68.75, + 70.51, + 70.3, + 69.51, + 67.96, + 73.68, + 70.29, + 69.24, + 63.728, + 73.23, + 73.47, + 67.64, + 64.39, + 66.8, + 64.531, + 70.33, + 69.15, + 69.69, + 73.37, + 71.32, + 52.098, + 70.76 + ], + "xaxis": "x", + "y": [ + 2312.888958, + 10750.72111, + 10991.20676, + 1709.683679, + 4254.337839, + 5477.890018, + 10136.86713, + 13583.31351, + 9371.842561, + 10560.48553, + 12902.46291, + 6017.190732999999, + 7550.359877, + 10350.15906, + 6631.597314, + 8243.58234, + 4649.593785, + 12790.84956, + 13450.40151, + 5338.752143, + 4727.954889, + 4734.997586, + 6289.629157, + 7481.107598, + 7402.303395, + 5693.843879, + 12329.44192, + 20431.0927, + 2322.869908, + 12477.17707 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1962
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 11000948, + 4826015, + 2151895, + 512764, + 4919632, + 2961915, + 5793633, + 1523478, + 3150417, + 191689, + 17486434, + 1047924, + 3832408, + 89898, + 28173309, + 249220, + 1666618, + 25145372, + 455661, + 374020, + 7355248, + 3140003, + 627820, + 8678557, + 893143, + 1112796, + 1441863, + 5703324, + 3628608, + 4690372, + 1146757, + 701016, + 13056604, + 7788944, + 621392, + 4076008, + 41871351, + 358900, + 3051242, + 65345, + 3430243, + 2467895, + 3080153, + 18356657, + 11183227, + 370006, + 10863958, + 1528098, + 4286552, + 7688797, + 3421000, + 4277736 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 48.303, + 34, + 42.618, + 51.52, + 37.814, + 42.045, + 42.643, + 39.475, + 41.716, + 44.467, + 42.122, + 48.435, + 44.93, + 39.69300000000001, + 46.992, + 37.485, + 40.158, + 40.059, + 40.489, + 33.896, + 46.452, + 35.753, + 34.488, + 47.949, + 47.747, + 40.502, + 47.808, + 40.848, + 38.41, + 36.936, + 44.24800000000001, + 60.246, + 47.924, + 36.161, + 48.386, + 39.487, + 39.36, + 57.666, + 43, + 51.893, + 41.45399999999999, + 32.767, + 36.981, + 49.951, + 40.87, + 44.992, + 44.246, + 43.922, + 49.57899999999999, + 45.344, + 46.023, + 52.358 + ], + "xaxis": "x", + "y": [ + 2550.81688, + 4269.276742, + 949.4990641, + 983.6539764, + 722.5120206, + 355.2032273, + 1399.607441, + 1193.068753, + 1389.817618, + 1406.648278, + 896.3146335000001, + 2464.783157, + 1728.8694280000002, + 3020.989263, + 1693.335853, + 582.8419713999998, + 380.9958433000001, + 419.4564161, + 6631.459222, + 599.650276, + 1190.041118, + 686.3736739, + 522.0343725, + 896.9663732, + 411.8006266, + 634.1951625, + 6757.030816, + 1643.38711, + 427.9010856, + 496.1743428, + 1055.896036, + 2529.0674870000007, + 1566.353493, + 556.6863539, + 3173.215595, + 997.7661127, + 1150.9274779999996, + 3173.72334, + 597.4730727000001, + 1071.551119, + 1654.988723, + 1116.6398769999996, + 1369.488336, + 5768.729717, + 1959.593767, + 1856.182125, + 722.0038073, + 1067.53481, + 1660.30321, + 767.2717397999999, + 1452.725766, + 527.2721818 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1962
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 21283783, + 3593918, + 76039390, + 18985849, + 7961258, + 17009885, + 1345187, + 7254373, + 3453434, + 4681707, + 2747687, + 4208858, + 3880130, + 2090162, + 1665128, + 41121485, + 1590597, + 1215725, + 2009813, + 10516500, + 2448046, + 887498, + 186538000, + 2598466, + 8143375 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 65.142, + 43.428, + 55.665, + 71.3, + 57.924, + 57.863, + 62.842, + 65.24600000000001, + 53.459, + 54.64, + 52.307, + 46.95399999999999, + 43.59, + 48.041, + 65.61, + 58.299, + 48.632, + 61.817, + 64.361, + 49.096, + 69.62, + 64.9, + 70.21, + 68.253, + 60.77 + ], + "xaxis": "x", + "y": [ + 7133.166023000002, + 2180.972546, + 3336.585802, + 13462.48555, + 4519.094331, + 2492.351109, + 3460.937025, + 5180.75591, + 1662.137359, + 4086.114078, + 3776.803627, + 2750.364446, + 1796.589032, + 2291.156835, + 5246.107524, + 4581.609385, + 3634.364406, + 3536.540301, + 2148.027146, + 4957.037982, + 5108.34463, + 4997.523971000001, + 16173.14586, + 5603.357717, + 8422.974165000001 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1962
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 10794968, + 2488550 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 70.93, + 71.24 + ], + "xaxis": "x", + "y": [ + 12217.22686, + 13175.678 + ], + "yaxis": "y" + } + ], + "name": "1962" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1967
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 11537966, + 202182, + 62821884, + 6960067, + 754550000, + 3722800, + 506000000, + 109343000, + 26538000, + 8519282, + 2693585, + 100825279, + 1255058, + 12617009, + 30131000, + 575003, + 2186894, + 10154878, + 1149500, + 25870271, + 11261690, + 714775, + 60641899, + 35356600, + 5618198, + 1977600, + 11737396, + 5680812, + 13648692, + 34024249, + 39463910, + 1142636, + 6740785 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 34.02, + 59.923, + 43.453, + 45.415, + 58.38112, + 70, + 47.19300000000001, + 45.964, + 52.469, + 54.459, + 70.75, + 71.43, + 51.629, + 59.942, + 57.716, + 64.624, + 63.87, + 59.371, + 51.253, + 49.379, + 41.472, + 46.988, + 49.8, + 56.393, + 49.901, + 67.946, + 64.266, + 53.655, + 67.5, + 58.285, + 47.838, + 51.631, + 36.984 + ], + "xaxis": "x", + "y": [ + 836.1971382, + 14804.6727, + 721.1860862000002, + 523.4323142, + 612.7056934, + 6197.962814, + 700.7706107000001, + 762.4317721, + 5906.731804999999, + 8931.459811, + 8393.741404, + 9847.788607, + 2741.796252, + 2143.540609, + 2029.228142, + 80894.88326, + 6006.983042, + 2277.742396, + 1226.04113, + 349, + 676.4422254, + 4720.942687, + 942.4082588, + 1814.12743, + 16903.04886, + 4977.41854, + 1135.514326, + 1881.923632, + 2643.858681, + 1295.46066, + 637.1232887, + 2649.715007, + 862.4421463 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1967
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 1984060, + 7376998, + 9556500, + 3585000, + 8310226, + 4174366, + 9835109, + 4838800, + 4605744, + 49569000, + 76368453, + 8716441, + 10223422, + 198676, + 2900100, + 52667100, + 501035, + 12596822, + 3786019, + 31785378, + 9103000, + 19284814, + 7971222, + 4442238, + 1646912, + 32850275, + 7867931, + 6063000, + 33411317, + 54959000 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 66.22, + 70.14, + 70.94, + 64.79, + 70.42, + 68.5, + 70.38, + 72.96, + 69.83, + 71.55, + 70.8, + 71, + 69.5, + 73.73, + 71.08, + 71.06, + 67.178, + 73.82, + 74.08, + 69.61, + 66.6, + 66.8, + 66.914, + 70.98, + 69.18, + 71.44, + 74.16, + 72.77, + 54.33600000000001, + 71.36 + ], + "xaxis": "x", + "y": [ + 2760.196931, + 12834.6024, + 13149.04119, + 2172.3524230000007, + 5577.0028, + 6960.297861, + 11399.44489, + 15937.21123, + 10921.63626, + 12999.91766, + 14745.62561, + 8513.097016, + 9326.64467, + 13319.89568, + 7655.568963, + 10022.40131, + 5907.850937, + 15363.25136, + 16361.87647, + 6557.152776, + 6361.517993, + 6470.866545, + 7991.707066, + 8412.902397, + 9405.489397, + 7993.512294, + 15258.29697, + 22966.14432, + 2826.3563870000007, + 14142.85089 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1967
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 12760499, + 5247469, + 2427334, + 553541, + 5127935, + 3330989, + 6335506, + 1733638, + 3495967, + 217378, + 19941073, + 1179760, + 4744870, + 127617, + 31681188, + 259864, + 1820319, + 27860297, + 489004, + 439593, + 8490213, + 3451418, + 601287, + 10191512, + 996380, + 1279406, + 1759224, + 6334556, + 4147252, + 5212416, + 1230542, + 789309, + 14770296, + 8680909, + 706640, + 4534062, + 47287752, + 414024, + 3451079, + 70787, + 3965841, + 2662190, + 3428839, + 20997321, + 12716129, + 420690, + 12607312, + 1735550, + 4786986, + 8900294, + 3900000, + 4995432 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 51.407, + 35.985, + 44.885, + 53.298, + 40.697, + 43.548, + 44.799, + 41.478, + 43.601000000000006, + 46.472, + 44.056, + 52.04, + 47.35, + 42.074, + 49.293, + 38.987, + 42.18899999999999, + 42.115, + 44.598, + 35.857, + 48.072, + 37.197, + 35.492, + 50.654, + 48.492, + 41.536, + 50.227, + 42.881, + 39.487, + 38.487, + 46.289, + 61.557, + 50.335, + 38.113, + 51.159, + 40.118, + 41.04, + 60.542, + 44.1, + 54.425, + 43.563, + 34.113, + 38.977, + 51.927, + 42.858, + 46.633, + 45.757, + 46.769, + 52.053, + 48.051, + 47.768, + 53.995 + ], + "xaxis": "x", + "y": [ + 3246.991771, + 5522.776375, + 1035.831411, + 1214.709294, + 794.8265597, + 412.97751360000007, + 1508.453148, + 1136.056615, + 1196.810565, + 1876.029643, + 861.5932424, + 2677.9396420000007, + 2052.050473, + 3020.050513, + 1814.880728, + 915.5960025, + 468.7949699, + 516.1186438, + 8358.761987, + 734.7829124, + 1125.69716, + 708.7595409, + 715.5806402000002, + 1056.736457, + 498.6390265, + 713.6036482999998, + 18772.75169, + 1634.047282, + 495.5147806, + 545.0098873, + 1421.145193, + 2475.387562, + 1711.04477, + 566.6691539, + 3793.694753, + 1054.384891, + 1014.514104, + 4021.175739, + 510.9637142, + 1384.840593, + 1612.404632, + 1206.043465, + 1284.7331800000004, + 7114.477970999998, + 1687.997641, + 2613.101665, + 848.2186575, + 1477.59676, + 1932.3601670000005, + 908.9185217, + 1777.077318, + 569.7950712 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1967
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 22934225, + 4040665, + 88049823, + 20819767, + 8858908, + 19764027, + 1588717, + 8139332, + 4049146, + 5432424, + 3232927, + 4690773, + 4318137, + 2500689, + 1861096, + 47995559, + 1865490, + 1405486, + 2287985, + 12132200, + 2648961, + 960155, + 198712000, + 2748579, + 9709552 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 65.634, + 45.032, + 57.632, + 72.13, + 60.523, + 59.963, + 65.42399999999999, + 68.29, + 56.75100000000001, + 56.678, + 55.855, + 50.01600000000001, + 46.243, + 50.924, + 67.51, + 60.11, + 51.88399999999999, + 64.071, + 64.95100000000001, + 51.445, + 71.1, + 65.4, + 70.76, + 68.468, + 63.479 + ], + "xaxis": "x", + "y": [ + 8052.953020999998, + 2586.886053, + 3429.864357, + 16076.58803, + 5106.654313, + 2678.729839, + 4161.727834, + 5690.268015, + 1653.7230029999996, + 4579.074215, + 4358.595393, + 3242.531147, + 1452.057666, + 2538.269358, + 6124.703450999999, + 5754.733883, + 4643.393534000002, + 4421.009084, + 2299.376311, + 5788.09333, + 6929.277714, + 5621.368472, + 19530.36557, + 5444.61962, + 9541.474188 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1967
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 11872264, + 2728150 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 71.1, + 71.52 + ], + "xaxis": "x", + "y": [ + 14526.12465, + 14463.918930000002 + ], + "yaxis": "y" + } + ], + "name": "1967" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1972
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 13079460, + 230800, + 70759295, + 7450606, + 862030000, + 4115700, + 567000000, + 121282000, + 30614000, + 10061506, + 3095893, + 107188273, + 1613551, + 14781241, + 33505000, + 841934, + 2680018, + 11441462, + 1320500, + 28466390, + 12412593, + 829050, + 69325921, + 40850141, + 6472756, + 2152400, + 13016733, + 6701172, + 15226039, + 39276153, + 44655014, + 1089572, + 7407075 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 36.088, + 63.3, + 45.252, + 40.317, + 63.11888, + 72, + 50.651, + 49.203, + 55.234, + 56.95, + 71.63, + 73.42, + 56.528, + 63.983, + 62.612, + 67.712, + 65.421, + 63.01, + 53.754, + 53.07, + 43.971, + 52.143, + 51.929, + 58.065, + 53.886, + 69.521, + 65.042, + 57.29600000000001, + 69.39, + 60.405, + 50.254, + 56.532, + 39.848 + ], + "xaxis": "x", + "y": [ + 739.9811057999998, + 18268.65839, + 630.2336265, + 421.6240257, + 676.9000921, + 8315.928145, + 724.032527, + 1111.107907, + 9613.818607, + 9576.037596, + 12786.93223, + 14778.78636, + 2110.856309, + 3701.621503, + 3030.87665, + 109347.867, + 7486.384341, + 2849.09478, + 1421.741975, + 357, + 674.7881296, + 10618.03855, + 1049.938981, + 1989.37407, + 24837.42865, + 8597.756202, + 1213.39553, + 2571.423014, + 4062.523897, + 1524.358936, + 699.5016441, + 3133.409277, + 1265.047031 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1972
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 2263554, + 7544201, + 9709100, + 3819000, + 8576200, + 4225310, + 9862158, + 4991596, + 4639657, + 51732000, + 78717088, + 8888628, + 10394091, + 209275, + 3024400, + 54365564, + 527678, + 13329874, + 3933004, + 33039545, + 8970450, + 20662648, + 8313288, + 4593433, + 1694510, + 34513161, + 8122293, + 6401400, + 37492953, + 56079000 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 67.69, + 70.63, + 71.44, + 67.45, + 70.9, + 69.61, + 70.29, + 73.47, + 70.87, + 72.38, + 71, + 72.34, + 69.76, + 74.46, + 71.28, + 72.19, + 70.63600000000002, + 73.75, + 74.34, + 70.85, + 69.26, + 69.21, + 68.7, + 70.35, + 69.82, + 73.06, + 74.72, + 73.78, + 57.005, + 72.01 + ], + "xaxis": "x", + "y": [ + 3313.422188, + 16661.6256, + 16672.14356, + 2860.16975, + 6597.494398, + 9164.090127, + 13108.4536, + 18866.20721, + 14358.8759, + 16107.19171, + 18016.18027, + 12724.82957, + 10168.65611, + 15798.06362, + 9530.772896, + 12269.27378, + 7778.414017, + 18794.74567, + 18965.05551, + 8006.506993000001, + 9022.247417, + 8011.4144019999985, + 10522.06749, + 9674.167626, + 12383.4862, + 10638.75131, + 17832.02464, + 27195.11304, + 3450.69638, + 15895.11641 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1972
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 14760787, + 5894858, + 2761407, + 619351, + 5433886, + 3529983, + 7021028, + 1927260, + 3899068, + 250027, + 23007669, + 1340458, + 6071696, + 178848, + 34807417, + 277603, + 2260187, + 30770372, + 537977, + 517101, + 9354120, + 3811387, + 625361, + 12044785, + 1116779, + 1482628, + 2183877, + 7082430, + 4730997, + 5828158, + 1332786, + 851334, + 16660670, + 9809596, + 821782, + 5060262, + 53740085, + 461633, + 3992121, + 76595, + 4588696, + 2879013, + 3840161, + 23935810, + 14597019, + 480105, + 14706593, + 2056351, + 5303507, + 10190285, + 4506497, + 5861135 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 54.518, + 37.928, + 47.014, + 56.024, + 43.591, + 44.057, + 47.049, + 43.457, + 45.569, + 48.944, + 45.989, + 54.907, + 49.801, + 44.36600000000001, + 51.137, + 40.516, + 44.142, + 43.515, + 48.69, + 38.308, + 49.875, + 38.842, + 36.486, + 53.559, + 49.767, + 42.614, + 52.773, + 44.851000000000006, + 41.76600000000001, + 39.977, + 48.437, + 62.944, + 52.862, + 40.328, + 53.867, + 40.546, + 42.82100000000001, + 64.274, + 44.6, + 56.48, + 45.815, + 35.4, + 40.973, + 53.69600000000001, + 45.083, + 49.552, + 47.62, + 49.75899999999999, + 55.602, + 51.01600000000001, + 50.107, + 55.635 + ], + "xaxis": "x", + "y": [ + 4182.663766, + 5473.288004999999, + 1085.796879, + 2263.6111140000007, + 854.7359763000002, + 464.0995039, + 1684.1465280000002, + 1070.013275, + 1104.103987, + 1937.577675, + 904.8960685, + 3213.152683, + 2378.201111, + 3694.2123520000014, + 2024.008147, + 672.4122571, + 514.3242081999998, + 566.2439442000001, + 11401.94841, + 756.0868363, + 1178.223708, + 741.6662307, + 820.2245876000002, + 1222.359968, + 496.5815922000001, + 803.0054535, + 21011.49721, + 1748.562982, + 584.6219709, + 581.3688761, + 1586.851781, + 2575.484158, + 1930.194975, + 724.9178037, + 3746.080948, + 954.2092363, + 1698.388838, + 5047.658563, + 590.5806637999998, + 1532.985254, + 1597.712056, + 1353.759762, + 1254.576127, + 7765.962636, + 1659.652775, + 3364.836625, + 915.9850592, + 1649.660188, + 2753.2859940000008, + 950.735869, + 1773.498265, + 799.3621757999998 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1972
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 24779799, + 4565872, + 100840058, + 22284500, + 9717524, + 22542890, + 1834796, + 8831348, + 4671329, + 6298651, + 3790903, + 5149581, + 4698301, + 2965146, + 1997616, + 55984294, + 2182908, + 1616384, + 2614104, + 13954700, + 2847132, + 975199, + 209896000, + 2829526, + 11515649 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 67.065, + 46.714, + 59.504, + 72.88, + 63.441, + 61.62300000000001, + 67.84899999999999, + 70.723, + 59.631, + 58.79600000000001, + 58.207, + 53.738, + 48.042, + 53.88399999999999, + 69, + 62.361, + 55.151, + 66.21600000000001, + 65.815, + 55.448, + 72.16, + 65.9, + 71.34, + 68.673, + 65.712 + ], + "xaxis": "x", + "y": [ + 9443.038526, + 2980.331339, + 4985.711467, + 18970.57086, + 5494.024437, + 3264.660041, + 5118.146939, + 5305.445256, + 2189.874499, + 5280.99471, + 4520.246008, + 4031.408271, + 1654.456946, + 2529.842345, + 7433.889293000001, + 6809.406690000002, + 4688.593267, + 5364.249663000001, + 2523.337977, + 5937.827283, + 9123.041742, + 6619.551418999999, + 21806.03594, + 5703.408898, + 10505.25966 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1972
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 13177000, + 2929100 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 71.93, + 71.89 + ], + "xaxis": "x", + "y": [ + 16788.62948, + 16046.03728 + ], + "yaxis": "y" + } + ], + "name": "1972" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1977
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 14880372, + 297410, + 80428306, + 6978607, + 943455000, + 4583700, + 634000000, + 136725000, + 35480679, + 11882916, + 3495918, + 113872473, + 1937652, + 16325320, + 36436000, + 1140357, + 3115787, + 12845381, + 1528000, + 31528087, + 13933198, + 1004533, + 78152686, + 46850962, + 8128505, + 2325300, + 14116836, + 7932503, + 16785196, + 44148285, + 50533506, + 1261091, + 8403990 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 38.438, + 65.593, + 46.923, + 31.22, + 63.96736, + 73.6, + 54.208, + 52.702, + 57.702, + 60.413, + 73.06, + 75.38, + 61.13399999999999, + 67.15899999999999, + 64.766, + 69.343, + 66.09899999999999, + 65.256, + 55.49100000000001, + 56.059, + 46.74800000000001, + 57.367, + 54.043, + 60.06, + 58.69, + 70.795, + 65.949, + 61.195, + 70.59, + 62.494, + 55.764, + 60.765, + 44.175 + ], + "xaxis": "x", + "y": [ + 786.11336, + 19340.10196, + 659.8772322000002, + 524.9721831999999, + 741.2374699, + 11186.14125, + 813.3373230000002, + 1382.702056, + 11888.59508, + 14688.23507, + 13306.61921, + 16610.37701, + 2852.351568, + 4106.301249, + 4657.22102, + 59265.47714, + 8659.696836, + 3827.921571, + 1647.511665, + 371, + 694.1124398, + 11848.34392, + 1175.921193, + 2373.204287, + 34167.7626, + 11210.08948, + 1348.775651, + 3195.484582, + 5596.519826, + 1961.2246350000007, + 713.5371196000001, + 3682.831494, + 1829.765177 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1977
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 2509048, + 7568430, + 9821800, + 4086000, + 8797022, + 4318673, + 10161915, + 5088419, + 4738902, + 53165019, + 78160773, + 9308479, + 10637171, + 221823, + 3271900, + 56059245, + 560073, + 13852989, + 4043205, + 34621254, + 9662600, + 21658597, + 8686367, + 4827803, + 1746919, + 36439000, + 8251648, + 6316424, + 42404033, + 56179000 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 68.93, + 72.17, + 72.8, + 69.86, + 70.81, + 70.64, + 70.71, + 74.69, + 72.52, + 73.83, + 72.5, + 73.68, + 69.95, + 76.11, + 72.03, + 73.48, + 73.066, + 75.24, + 75.37, + 70.67, + 70.41, + 69.46, + 70.3, + 70.45, + 70.97, + 74.39, + 75.44, + 75.39, + 59.507, + 72.76 + ], + "xaxis": "x", + "y": [ + 3533.003910000001, + 19749.4223, + 19117.97448, + 3528.481305, + 7612.240438, + 11305.38517, + 14800.16062, + 20422.9015, + 15605.42283, + 18292.63514, + 20512.92123, + 14195.52428, + 11674.83737, + 19654.96247, + 11150.98113, + 14255.98475, + 9595.929905, + 21209.0592, + 23311.34939, + 9508.141454, + 10172.48572, + 9356.39724, + 12980.66956, + 10922.66404, + 15277.030169999998, + 13236.92117, + 18855.72521, + 26982.29052, + 4269.122326, + 17428.74846 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1977
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 17152804, + 6162675, + 3168267, + 781472, + 5889574, + 3834415, + 7959865, + 2167533, + 4388260, + 304739, + 26480870, + 1536769, + 7459574, + 228694, + 38783863, + 192675, + 2512642, + 34617799, + 706367, + 608274, + 10538093, + 4227026, + 745228, + 14500404, + 1251524, + 1703617, + 2721783, + 8007166, + 5637246, + 6491649, + 1456688, + 913025, + 18396941, + 11127868, + 977026, + 5682086, + 62209173, + 492095, + 4657072, + 86796, + 5260855, + 3140897, + 4353666, + 27129932, + 17104986, + 551425, + 17129565, + 2308582, + 6005061, + 11457758, + 5216550, + 6642107 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 58.014, + 39.483, + 49.19, + 59.319, + 46.137, + 45.91, + 49.355, + 46.775, + 47.383, + 50.93899999999999, + 47.804, + 55.625, + 52.374, + 46.519, + 53.319, + 42.024, + 44.535, + 44.51, + 52.79, + 41.842, + 51.756, + 40.762, + 37.465, + 56.155, + 52.208, + 43.764, + 57.442, + 46.881, + 43.767, + 41.714, + 50.852, + 64.93, + 55.73, + 42.495, + 56.437, + 41.291, + 44.514, + 67.064, + 45, + 58.55, + 48.879, + 36.788, + 41.974, + 55.527, + 47.8, + 52.537, + 49.919, + 52.887, + 59.837, + 50.35, + 51.386, + 57.674 + ], + "xaxis": "x", + "y": [ + 4910.416756000001, + 3008.647355, + 1029.161251, + 3214.857818, + 743.3870368, + 556.1032651, + 1783.432873, + 1109.374338, + 1133.98495, + 1172.603047, + 795.757282, + 3259.178978, + 2517.736547, + 3081.761022, + 2785.493582, + 958.5668124, + 505.7538077, + 556.8083834, + 21745.57328, + 884.7552507000001, + 993.2239571, + 874.6858642999998, + 764.7259627999998, + 1267.613204, + 745.3695408, + 640.3224382999998, + 21951.21176, + 1544.228586, + 663.2236766, + 686.3952693, + 1497.492223, + 3710.982963, + 2370.619976, + 502.3197334, + 3876.485958, + 808.8970727999998, + 1981.951806, + 4319.804067, + 670.0806011, + 1737.561657, + 1561.769116, + 1348.285159, + 1450.992513, + 8028.651439, + 2202.988423, + 3781.410618, + 962.4922932, + 1532.776998, + 3120.876811, + 843.7331372000001, + 1588.688299, + 685.5876821 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1977
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 26983828, + 5079716, + 114313951, + 23796400, + 10599793, + 25094412, + 2108457, + 9537988, + 5302800, + 7278866, + 4282586, + 5703430, + 4908554, + 3055235, + 2156814, + 63759976, + 2554598, + 1839782, + 2984494, + 15990099, + 3080828, + 1039009, + 220239000, + 2873520, + 13503563 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 68.48100000000001, + 50.023, + 61.489, + 74.21, + 67.05199999999999, + 63.837, + 70.75, + 72.649, + 61.788, + 61.31, + 56.69600000000001, + 56.029, + 49.923, + 57.402, + 70.11, + 65.032, + 57.47, + 68.681, + 66.35300000000001, + 58.447, + 73.44, + 68.3, + 73.38, + 69.48100000000001, + 67.456 + ], + "xaxis": "x", + "y": [ + 10079.02674, + 3548.097832, + 6660.118654, + 22090.88306, + 4756.763836, + 3815.80787, + 5926.876967, + 6380.494965999998, + 2681.9889, + 6679.62326, + 5138.922374, + 4879.992748, + 1874.298931, + 3203.208066, + 6650.195573, + 7674.929108, + 5486.371089, + 5351.912144, + 3248.373311, + 6281.290854999998, + 9770.524921, + 7899.554209000001, + 24072.63213, + 6504.339663000002, + 13143.95095 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1977
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 14074100, + 3164900 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 73.49, + 72.22 + ], + "xaxis": "x", + "y": [ + 18334.19751, + 16233.7177 + ], + "yaxis": "y" + } + ], + "name": "1977" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1982
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 12881816, + 377967, + 93074406, + 7272485, + 1000281000, + 5264500, + 708000000, + 153343000, + 43072751, + 14173318, + 3858421, + 118454974, + 2347031, + 17647518, + 39326000, + 1497494, + 3086876, + 14441916, + 1756032, + 34680442, + 15796314, + 1301048, + 91462088, + 53456774, + 11254672, + 2651869, + 15410151, + 9410494, + 18501390, + 48827160, + 56142181, + 1425876, + 9657618 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 39.854, + 69.05199999999999, + 50.00899999999999, + 50.957, + 65.525, + 75.45, + 56.596, + 56.159, + 59.62, + 62.038, + 74.45, + 77.11, + 63.739, + 69.1, + 67.123, + 71.309, + 66.983, + 68, + 57.489, + 58.056, + 49.594, + 62.728, + 56.158, + 62.082, + 63.012, + 71.76, + 68.757, + 64.59, + 72.16, + 64.597, + 58.816, + 64.406, + 49.113 + ], + "xaxis": "x", + "y": [ + 978.0114388, + 19211.14731, + 676.9818656, + 624.4754784, + 962.4213805, + 14560.53051, + 855.7235377000002, + 1516.872988, + 7608.334602, + 14517.90711, + 15367.0292, + 19384.10571, + 4161.415959, + 4106.525293, + 5622.942464, + 31354.03573, + 7640.519520999998, + 4920.355951, + 2000.603139, + 424, + 718.3730947, + 12954.79101, + 1443.429832, + 2603.273765, + 33693.17525, + 15169.16112, + 1648.079789, + 3761.837715, + 7426.3547739999985, + 2393.219781, + 707.2357863, + 4336.032082, + 1977.55701 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1982
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 2780097, + 7574613, + 9856303, + 4172693, + 8892098, + 4413368, + 10303704, + 5117810, + 4826933, + 54433565, + 78335266, + 9786480, + 10705535, + 233997, + 3480000, + 56535636, + 562548, + 14310401, + 4114787, + 36227381, + 9859650, + 22356726, + 9032824, + 5048043, + 1861252, + 37983310, + 8325260, + 6468126, + 47328791, + 56339704 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 70.42, + 73.18, + 73.93, + 70.69, + 71.08, + 70.46, + 70.96, + 74.63, + 74.55, + 74.89, + 73.8, + 75.24, + 69.39, + 76.99, + 73.1, + 74.98, + 74.101, + 76.05, + 75.97, + 71.32, + 72.77, + 69.66, + 70.16199999999999, + 70.8, + 71.063, + 76.3, + 76.42, + 76.21, + 61.036, + 74.04 + ], + "xaxis": "x", + "y": [ + 3630.880722, + 21597.08362, + 20979.84589, + 4126.613157, + 8224.191647, + 13221.82184, + 15377.22855, + 21688.04048, + 18533.15761, + 20293.89746, + 22031.53274, + 15268.42089, + 12545.99066, + 23269.6075, + 12618.32141, + 16537.4835, + 11222.58762, + 21399.46046, + 26298.63531, + 8451.531004, + 11753.84291, + 9605.314053, + 15181.0927, + 11348.54585, + 17866.72175, + 13926.16997, + 20667.38125, + 28397.71512, + 4241.356344, + 18232.42452 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1982
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 20033753, + 7016384, + 3641603, + 970347, + 6634596, + 4580410, + 9250831, + 2476971, + 4875118, + 348643, + 30646495, + 1774735, + 9025951, + 305991, + 45681811, + 285483, + 2637297, + 38111756, + 753874, + 715523, + 11400338, + 4710497, + 825987, + 17661452, + 1411807, + 1956875, + 3344074, + 9171477, + 6502825, + 6998256, + 1622136, + 992040, + 20198730, + 12587223, + 1099010, + 6437188, + 73039376, + 517810, + 5507565, + 98593, + 6147783, + 3464522, + 5828892, + 31140029, + 20367053, + 649901, + 19844382, + 2644765, + 6734098, + 12939400, + 6100407, + 7636524 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 61.368, + 39.942, + 50.904, + 61.484, + 48.122, + 47.471, + 52.96100000000001, + 48.295, + 49.517, + 52.933, + 47.784, + 56.695, + 53.983, + 48.812, + 56.006, + 43.662, + 43.89, + 44.916, + 56.56399999999999, + 45.58, + 53.744, + 42.89100000000001, + 39.327, + 58.76600000000001, + 55.078, + 44.852, + 62.155, + 48.969, + 45.642, + 43.916, + 53.599, + 66.711, + 59.65, + 42.795, + 58.968, + 42.598, + 45.826, + 69.885, + 46.218, + 60.351000000000006, + 52.379, + 38.445, + 42.955, + 58.161, + 50.338, + 55.56100000000001, + 50.608, + 55.471, + 64.048, + 49.849, + 51.82100000000001, + 60.363 + ], + "xaxis": "x", + "y": [ + 5745.160213, + 2756.953672, + 1277.897616, + 4551.14215, + 807.1985855, + 559.6032309999998, + 2367.983282, + 956.7529907, + 797.9081006, + 1267.100083, + 673.7478181, + 4879.507522, + 2602.710169, + 2879.468067, + 3503.729636, + 927.8253427, + 524.8758493, + 577.8607471, + 15113.36194, + 835.8096107999999, + 876.032569, + 857.2503577, + 838.1239671, + 1348.225791, + 797.2631074, + 572.1995694, + 17364.275380000006, + 1302.878658, + 632.8039209, + 618.0140640999998, + 1481.150189, + 3688.037739, + 2702.620356, + 462.2114149, + 4191.100511, + 909.7221354, + 1576.97375, + 5267.219353, + 881.5706467, + 1890.218117, + 1518.479984, + 1465.010784, + 1176.807031, + 8568.266228, + 1895.544073, + 3895.384018, + 874.2426069, + 1344.577953, + 3560.2331740000004, + 682.2662267999998, + 1408.678565, + 788.8550411 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1982
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 29341374, + 5642224, + 128962939, + 25201900, + 11487112, + 27764644, + 2424367, + 9789224, + 5968349, + 8365850, + 4474873, + 6395630, + 5198399, + 3669448, + 2298309, + 71640904, + 2979423, + 2036305, + 3366439, + 18125129, + 3279001, + 1116479, + 232187835, + 2953997, + 15620766 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 69.942, + 53.859, + 63.33600000000001, + 75.76, + 70.565, + 66.653, + 73.45, + 73.717, + 63.727, + 64.342, + 56.604, + 58.137, + 51.46100000000001, + 60.909, + 71.21, + 67.405, + 59.298, + 70.472, + 66.874, + 61.40600000000001, + 73.75, + 68.832, + 74.65, + 70.805, + 68.557 + ], + "xaxis": "x", + "y": [ + 8997.897412, + 3156.510452, + 7030.835878, + 22898.79214, + 5095.6657380000015, + 4397.575659, + 5262.734751, + 7316.918106999998, + 2861.092386, + 7213.791267, + 4098.344175, + 4820.49479, + 2011.159549, + 3121.7607940000007, + 6068.05135, + 9611.147541, + 3470.3381560000007, + 7009.601598, + 4258.503604, + 6434.501797, + 10330.98915, + 9119.528607, + 25009.55914, + 6920.223051000001, + 11152.41011 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1982
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 15184200, + 3210650 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 74.74, + 73.84 + ], + "xaxis": "x", + "y": [ + 19477.00928, + 17632.4104 + ], + "yaxis": "y" + } + ], + "name": "1982" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1987
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 13867957, + 454612, + 103764241, + 8371791, + 1084035000, + 5584510, + 788000000, + 169276000, + 51889696, + 16543189, + 4203148, + 122091325, + 2820042, + 19067554, + 41622000, + 1891487, + 3089353, + 16331785, + 2015133, + 38028578, + 17917180, + 1593882, + 105186881, + 60017788, + 14619745, + 2794552, + 16495304, + 11242847, + 19757799, + 52910342, + 62826491, + 1691210, + 11219340 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 40.822, + 70.75, + 52.819, + 53.914, + 67.274, + 76.2, + 58.553, + 60.137, + 63.04, + 65.044, + 75.6, + 78.67, + 65.869, + 70.64699999999998, + 69.81, + 74.17399999999998, + 67.926, + 69.5, + 60.222, + 58.339, + 52.537, + 67.734, + 58.245, + 64.15100000000001, + 66.295, + 73.56, + 69.01100000000001, + 66.97399999999999, + 73.4, + 66.084, + 62.82, + 67.046, + 52.922 + ], + "xaxis": "x", + "y": [ + 852.3959447999998, + 18524.02406, + 751.9794035, + 683.8955732000002, + 1378.904018, + 20038.47269, + 976.5126756, + 1748.356961, + 6642.881371, + 11643.57268, + 17122.47986, + 22375.94189, + 4448.679912, + 4106.492315, + 8533.088805, + 28118.42998, + 5377.091329, + 5249.802653, + 2338.008304, + 385, + 775.6324501, + 18115.22313, + 1704.686583, + 2189.634995, + 21198.26136, + 18861.53081, + 1876.766827, + 3116.774285, + 11054.56175, + 2982.653773, + 820.7994449, + 5107.197384, + 1971.741538 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1987
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 3075321, + 7578903, + 9870200, + 4338977, + 8971958, + 4484310, + 10311597, + 5127024, + 4931729, + 55630100, + 77718298, + 9974490, + 10612740, + 244676, + 3539900, + 56729703, + 569473, + 14665278, + 4186147, + 37740710, + 9915289, + 22686371, + 9230783, + 5199318, + 1945870, + 38880702, + 8421403, + 6649942, + 52881328, + 56981620 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 72, + 74.94, + 75.35, + 71.14, + 71.34, + 71.52, + 71.58, + 74.8, + 74.83, + 76.34, + 74.847, + 76.67, + 69.58, + 77.23, + 74.36, + 76.42, + 74.865, + 76.83, + 75.89, + 70.98, + 74.06, + 69.53, + 71.218, + 71.08, + 72.25, + 76.9, + 77.19, + 77.41, + 63.108, + 75.007 + ], + "xaxis": "x", + "y": [ + 3738.932735, + 23687.82607, + 22525.56308, + 4314.114757, + 8239.854824, + 13822.58394, + 16310.4434, + 25116.17581, + 21141.01223, + 22066.44214, + 24639.18566, + 16120.52839, + 12986.47998, + 26923.20628, + 13872.86652, + 19207.23482, + 11732.51017, + 23651.32361, + 31540.9748, + 9082.351172, + 13039.30876, + 9696.273295, + 15870.87851, + 12037.26758, + 18678.53492, + 15764.98313, + 23586.92927, + 30281.70459, + 5089.043686, + 21664.78767 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1987
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 23254956, + 7874230, + 4243788, + 1151184, + 7586551, + 5126023, + 10780667, + 2840009, + 5498955, + 395114, + 35481645, + 2064095, + 10761098, + 311025, + 52799062, + 341244, + 2915959, + 42999530, + 880397, + 848406, + 14168101, + 5650262, + 927524, + 21198082, + 1599200, + 2269414, + 3799845, + 10568642, + 7824747, + 7634008, + 1841240, + 1042663, + 22987397, + 12891952, + 1278184, + 7332638, + 81551520, + 562035, + 6349365, + 110812, + 7171347, + 3868905, + 6921858, + 35933379, + 24725960, + 779348, + 23040630, + 3154264, + 7724976, + 15283050, + 7272406, + 9216418 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 65.79899999999999, + 39.906, + 52.337, + 63.622, + 49.557, + 48.21100000000001, + 54.985, + 50.485, + 51.051, + 54.926, + 47.412, + 57.47, + 54.655, + 50.04, + 59.797, + 45.664, + 46.453, + 46.684, + 60.19, + 49.265, + 55.729, + 45.552, + 41.245, + 59.339, + 57.18, + 46.027, + 66.234, + 49.35, + 47.457, + 46.364, + 56.145, + 68.74, + 62.677, + 42.861, + 60.835, + 44.555, + 46.886, + 71.913, + 44.02, + 61.728, + 55.769, + 40.006, + 44.50100000000001, + 60.834, + 51.744, + 57.678, + 51.535, + 56.941, + 66.89399999999999, + 51.50899999999999, + 50.82100000000001, + 62.351000000000006 + ], + "xaxis": "x", + "y": [ + 5681.358539, + 2430.208311, + 1225.85601, + 6205.88385, + 912.0631417, + 621.8188188999999, + 2602.664206, + 844.8763504000002, + 952.386129, + 1315.980812, + 672.774812, + 4201.194936999998, + 2156.9560690000008, + 2880.102568, + 3885.46071, + 966.8968149, + 521.1341333, + 573.7413142000001, + 11864.40844, + 611.6588611000002, + 847.0061135, + 805.5724717999999, + 736.4153921, + 1361.936856, + 773.9932140999998, + 506.1138573, + 11770.5898, + 1155.441948, + 635.5173633999998, + 684.1715576, + 1421.603576, + 4783.586903, + 2755.046991, + 389.8761846, + 3693.731337, + 668.3000228, + 1385.029563, + 5303.377488, + 847.991217, + 1516.525457, + 1441.72072, + 1294.4477880000004, + 1093.244963, + 7825.823398, + 1507.819159, + 3984.839812, + 831.8220794, + 1202.201361, + 3810.419296, + 617.7244065, + 1213.315116, + 706.1573059 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1987
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 31620918, + 6156369, + 142938076, + 26549700, + 12463354, + 30964245, + 2799811, + 10239839, + 6655297, + 9545158, + 4842194, + 7326406, + 5756203, + 4372203, + 2326606, + 80122492, + 3344353, + 2253639, + 3886512, + 20195924, + 3444468, + 1191336, + 242803533, + 3045153, + 17910182 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 70.774, + 57.25100000000001, + 65.205, + 76.86, + 72.492, + 67.768, + 74.752, + 74.17399999999998, + 66.046, + 67.23100000000001, + 63.154, + 60.782, + 53.636, + 64.492, + 71.77, + 69.498, + 62.008, + 71.523, + 67.378, + 64.134, + 74.63, + 69.582, + 75.02, + 71.918, + 70.19 + ], + "xaxis": "x", + "y": [ + 9139.671389, + 2753.69149, + 7807.095818000002, + 26626.51503, + 5547.063754, + 4903.2191, + 5629.915318, + 7532.924762999999, + 2899.842175, + 6481.776993, + 4140.442097, + 4246.485974, + 1823.015995, + 3023.096699, + 6351.237495, + 8688.156003, + 2955.984375, + 7034.779161, + 3998.875695, + 6360.943444, + 12281.34191, + 7388.597823, + 29884.350410000006, + 7452.398969, + 9883.584648 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1987
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 16257249, + 3317166 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 76.32, + 74.32 + ], + "xaxis": "x", + "y": [ + 21888.88903, + 19007.19129 + ], + "yaxis": "y" + } + ], + "name": "1987" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1992
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 16317921, + 529491, + 113704579, + 10150094, + 1164970000, + 5829696, + 872000000, + 184816000, + 60397973, + 17861905, + 4936550, + 124329269, + 3867409, + 20711375, + 43805450, + 1418095, + 3219994, + 18319502, + 2312802, + 40546538, + 20326209, + 1915208, + 120065004, + 67185766, + 16945857, + 3235865, + 17587060, + 13219062, + 20686918, + 56667095, + 69940728, + 2104779, + 13367997 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 41.674, + 72.601, + 56.018, + 55.803, + 68.69, + 77.601, + 60.223, + 62.681, + 65.742, + 59.46100000000001, + 76.93, + 79.36, + 68.015, + 69.97800000000001, + 72.244, + 75.19, + 69.292, + 70.693, + 61.271, + 59.32, + 55.727, + 71.197, + 60.838, + 66.458, + 68.768, + 75.788, + 70.37899999999998, + 69.249, + 74.26, + 67.298, + 67.66199999999999, + 69.718, + 55.599 + ], + "xaxis": "x", + "y": [ + 649.3413952000002, + 19035.57917, + 837.8101642999999, + 682.3031755, + 1655.784158, + 24757.60301, + 1164.406809, + 2383.140898, + 7235.653187999998, + 3745.640687, + 18051.52254, + 26824.89511, + 3431.593647, + 3726.063507, + 12104.27872, + 34932.91959, + 6890.806854, + 7277.912802, + 1785.402016, + 347, + 897.7403604, + 18616.70691, + 1971.829464, + 2279.324017000001, + 24841.61777, + 24769.8912, + 2153.739222, + 3340.542768, + 15215.6579, + 4616.896545000001, + 989.0231487, + 6017.654756, + 1879.496673 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1992
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 3326498, + 7914969, + 10045622, + 4256013, + 8658506, + 4494013, + 10315702, + 5171393, + 5041039, + 57374179, + 80597764, + 10325429, + 10348684, + 259012, + 3557761, + 56840847, + 621621, + 15174244, + 4286357, + 38370697, + 9927680, + 22797027, + 9826397, + 5302888, + 1999210, + 39549438, + 8718867, + 6995447, + 58179144, + 57866349 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 71.581, + 76.04, + 76.46, + 72.178, + 71.19, + 72.527, + 72.4, + 75.33, + 75.7, + 77.46, + 76.07, + 77.03, + 69.17, + 78.77, + 75.467, + 77.44, + 75.435, + 77.42, + 77.32, + 70.99, + 74.86, + 69.36, + 71.65899999999998, + 71.38, + 73.64, + 77.57, + 78.16, + 78.03, + 66.146, + 76.42 + ], + "xaxis": "x", + "y": [ + 2497.437901, + 27042.01868, + 25575.57069, + 2546.781445, + 6302.623438000001, + 8447.794873, + 14297.02122, + 26406.73985, + 20647.16499, + 24703.79615, + 26505.30317, + 17541.49634, + 10535.62855, + 25144.39201, + 17558.81555, + 22013.64486, + 7003.339037000002, + 26790.94961, + 33965.66115, + 7738.881247, + 16207.266630000002, + 6598.409903, + 9325.068238, + 9498.467723, + 14214.71681, + 18603.06452, + 23880.01683, + 31871.5303, + 5678.348271, + 22705.09254 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1992
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 26298373, + 8735988, + 4981671, + 1342614, + 8878303, + 5809236, + 12467171, + 3265124, + 6429417, + 454429, + 41672143, + 2409073, + 12772596, + 384156, + 59402198, + 387838, + 3668440, + 52088559, + 985739, + 1025384, + 16278738, + 6990574, + 1050938, + 25020539, + 1803195, + 1912974, + 4364501, + 12210395, + 10014249, + 8416215, + 2119465, + 1096202, + 25798239, + 13160731, + 1554253, + 8392818, + 93364244, + 622191, + 7290203, + 125911, + 8307920, + 4260884, + 6099799, + 39964159, + 28227588, + 962344, + 26605473, + 3747553, + 8523077, + 18252190, + 8381163, + 10704340 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 67.744, + 40.647, + 53.919, + 62.745, + 50.26, + 44.736, + 54.31399999999999, + 49.396, + 51.724, + 57.93899999999999, + 45.548, + 56.433, + 52.044, + 51.604, + 63.674, + 47.545, + 49.99100000000001, + 48.091, + 61.36600000000001, + 52.644, + 57.50100000000001, + 48.576, + 43.26600000000001, + 59.285, + 59.685, + 40.802, + 68.755, + 52.214, + 49.42, + 48.38800000000001, + 58.333, + 69.745, + 65.393, + 44.284, + 61.999, + 47.39100000000001, + 47.472, + 73.615, + 23.599, + 62.742, + 58.19600000000001, + 38.333, + 39.658, + 61.88800000000001, + 53.556, + 58.474, + 50.44, + 58.06100000000001, + 70.001, + 48.825, + 46.1, + 60.377 + ], + "xaxis": "x", + "y": [ + 5023.216647, + 2627.845685, + 1191.207681, + 7954.111645, + 931.7527731, + 631.6998778, + 1793.1632780000002, + 747.9055252, + 1058.0643, + 1246.90737, + 457.7191807, + 4016.239529, + 1648.073791, + 2377.156192000001, + 3794.755195, + 1132.055034, + 582.8585102000002, + 421.3534653, + 13522.15752, + 665.6244126, + 925.060154, + 794.3484384, + 745.5398706, + 1341.9217210000004, + 977.4862725, + 636.6229191000001, + 9640.138501, + 1040.67619, + 563.2000145, + 739.014375, + 1361.369784, + 6058.253846000001, + 2948.047252, + 410.8968239, + 3804.537999, + 581.182725, + 1619.848217, + 6101.255823, + 737.0685949, + 1428.777814, + 1367.899369, + 1068.696278, + 926.9602964, + 7225.069257999998, + 1492.197043, + 3553.0224, + 825.682454, + 1034.298904, + 4332.720164, + 644.1707968999998, + 1210.884633, + 693.4207856 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1992
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 33958947, + 6893451, + 155975974, + 28523502, + 13572994, + 34202721, + 3173216, + 10723260, + 7351181, + 10748394, + 5274649, + 8486949, + 6326682, + 5077347, + 2378618, + 88111030, + 4017939, + 2484997, + 4483945, + 22430449, + 3585176, + 1183669, + 256894189, + 3149262, + 20265563 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 71.868, + 59.957, + 67.057, + 77.95, + 74.126, + 68.421, + 75.71300000000002, + 74.414, + 68.457, + 69.613, + 66.798, + 63.37300000000001, + 55.089, + 66.399, + 71.766, + 71.455, + 65.843, + 72.462, + 68.225, + 66.458, + 73.911, + 69.862, + 76.09, + 72.752, + 71.15 + ], + "xaxis": "x", + "y": [ + 9308.41871, + 2961.699694, + 6950.283020999998, + 26342.88426, + 7596.125964, + 5444.648617, + 6160.416317, + 5592.843963, + 3044.214214, + 7103.702595000002, + 4444.2317, + 4439.45084, + 1456.309517, + 3081.694603, + 7404.923685, + 9472.384295, + 2170.151724, + 6618.74305, + 4196.411078, + 4446.380924, + 14641.58711, + 7370.990932, + 32003.93224, + 8137.004775, + 10733.92631 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1992
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 17481977, + 3437674 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 77.56, + 76.33 + ], + "xaxis": "x", + "y": [ + 23424.76683, + 18363.32494 + ], + "yaxis": "y" + } + ], + "name": "1992" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1997
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 22227415, + 598561, + 123315288, + 11782962, + 1230075000, + 6495918, + 959000000, + 199278000, + 63327987, + 20775703, + 5531387, + 125956499, + 4526235, + 21585105, + 46173816, + 1765345, + 3430388, + 20476091, + 2494803, + 43247867, + 23001113, + 2283635, + 135564834, + 75012988, + 21229759, + 3802309, + 18698655, + 15081016, + 21628605, + 60216677, + 76048996, + 2826046, + 15826497 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 41.76300000000001, + 73.925, + 59.412, + 56.534, + 70.426, + 80, + 61.765, + 66.041, + 68.042, + 58.81100000000001, + 78.26899999999998, + 80.69, + 69.77199999999999, + 67.727, + 74.64699999999998, + 76.156, + 70.265, + 71.938, + 63.625, + 60.328, + 59.426, + 72.499, + 61.81800000000001, + 68.564, + 70.533, + 77.158, + 70.457, + 71.527, + 75.25, + 67.521, + 70.672, + 71.096, + 58.02 + ], + "xaxis": "x", + "y": [ + 635.341351, + 20292.01679, + 972.7700352, + 734.28517, + 2289.234136, + 28377.63219, + 1458.817442, + 3119.335603, + 8263.590301, + 3076.239795, + 20896.60924, + 28816.58499, + 3645.379572, + 1690.756814, + 15993.52796, + 40300.61996, + 8754.96385, + 10132.90964, + 1902.2521, + 415, + 1010.892138, + 19702.05581, + 2049.3505210000008, + 2536.534925, + 20586.69019, + 33519.4766, + 2664.477257, + 4014.238972, + 20206.82098, + 5852.625497, + 1385.896769, + 7110.667619, + 2117.484526 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1997
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 3428038, + 8069876, + 10199787, + 3607000, + 8066057, + 4444595, + 10300707, + 5283663, + 5134406, + 58623428, + 82011073, + 10502372, + 10244684, + 271192, + 3667233, + 57479469, + 692651, + 15604464, + 4405672, + 38654957, + 10156415, + 22562458, + 10336594, + 5383010, + 2011612, + 39855442, + 8897619, + 7193761, + 63047647, + 58808266 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 72.95, + 77.51, + 77.53, + 73.244, + 70.32, + 73.68, + 74.01, + 76.11, + 77.13, + 78.64, + 77.34, + 77.869, + 71.04, + 78.95, + 76.122, + 78.82, + 75.445, + 78.03, + 78.32, + 72.75, + 75.97, + 69.72, + 72.232, + 72.71, + 75.13, + 78.77, + 79.39, + 79.37, + 68.835, + 77.218 + ], + "xaxis": "x", + "y": [ + 3193.054604, + 29095.920660000003, + 27561.19663, + 4766.355904, + 5970.38876, + 9875.604515, + 16048.51424, + 29804.34567, + 23723.9502, + 25889.78487, + 27788.88416, + 18747.69814, + 11712.7768, + 28061.099660000003, + 24521.94713, + 24675.02446, + 6465.613349, + 30246.13063, + 41283.16433, + 10159.58368, + 17641.03156, + 7346.547556999999, + 7914.320304000002, + 12126.23065, + 17161.10735, + 20445.29896, + 25266.59499, + 32135.323010000004, + 6601.429915, + 26074.53136 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1997
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 29072015, + 9875024, + 6066080, + 1536536, + 10352843, + 6121610, + 14195809, + 3696513, + 7562011, + 527982, + 47798986, + 2800947, + 14625967, + 417908, + 66134291, + 439971, + 4058319, + 59861301, + 1126189, + 1235767, + 18418288, + 8048834, + 1193708, + 28263827, + 1982823, + 2200725, + 4759670, + 14165114, + 10419991, + 9384984, + 2444741, + 1149818, + 28529501, + 16603334, + 1774766, + 9666252, + 106207839, + 684810, + 7212583, + 145608, + 9535314, + 4578212, + 6633514, + 42835005, + 32160729, + 1054486, + 30686889, + 4320890, + 9231669, + 21210254, + 9417789, + 11404948 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 69.152, + 40.963, + 54.777, + 52.556, + 50.324, + 45.326, + 52.199, + 46.066, + 51.573, + 60.66, + 42.587, + 52.962, + 47.99100000000001, + 53.157, + 67.217, + 48.245, + 53.378, + 49.402, + 60.46100000000001, + 55.861, + 58.556, + 51.455, + 44.87300000000001, + 54.407, + 55.558, + 42.221, + 71.555, + 54.978, + 47.495, + 49.903, + 60.43, + 70.736, + 67.66, + 46.344, + 58.909, + 51.313, + 47.464, + 74.77199999999998, + 36.087, + 63.306, + 60.187, + 39.897, + 43.795, + 60.236, + 55.37300000000001, + 54.289, + 48.466, + 58.39, + 71.973, + 44.578, + 40.238, + 46.809 + ], + "xaxis": "x", + "y": [ + 4797.295051, + 2277.140884, + 1232.975292, + 8647.142313, + 946.2949618, + 463.1151478, + 1694.337469, + 740.5063317, + 1004.961353, + 1173.618235, + 312.188423, + 3484.164376, + 1786.265407, + 1895.016984, + 4173.181797, + 2814.480755, + 913.47079, + 515.8894013, + 14722.841880000002, + 653.7301704, + 1005.245812, + 869.4497667999998, + 796.6644681, + 1360.4850210000004, + 1186.147994, + 609.1739508, + 9467.446056, + 986.2958956, + 692.2758102999999, + 790.2579846, + 1483.136136, + 7425.705295000002, + 2982.101858, + 472.34607710000006, + 3899.52426, + 580.3052092, + 1624.941275, + 6071.941411, + 589.9445051, + 1339.076036, + 1392.368347, + 574.6481576, + 930.5964284, + 7479.188244, + 1632.2107640000004, + 3876.76846, + 789.1862231, + 982.2869243, + 4876.798614, + 816.559081, + 1071.353818, + 792.4499602999998 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1997
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 36203463, + 7693188, + 168546719, + 30305843, + 14599929, + 37657830, + 3518107, + 10983007, + 7992357, + 11911819, + 5783439, + 9803875, + 6913545, + 5867957, + 2531311, + 95895146, + 4609572, + 2734531, + 5154123, + 24748122, + 3759430, + 1138101, + 272911760, + 3262838, + 22374398 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 73.275, + 62.05, + 69.388, + 78.61, + 75.816, + 70.313, + 77.26, + 76.15100000000002, + 69.957, + 72.312, + 69.535, + 66.322, + 56.67100000000001, + 67.65899999999999, + 72.262, + 73.67, + 68.426, + 73.738, + 69.4, + 68.38600000000001, + 74.917, + 69.465, + 76.81, + 74.223, + 72.146 + ], + "xaxis": "x", + "y": [ + 10967.28195, + 3326.143191, + 7957.980823999998, + 28954.92589, + 10118.05318, + 6117.361746000001, + 6677.045314, + 5431.990415, + 3614.101285, + 7429.4558769999985, + 5154.825496, + 4684.313807, + 1341.726931, + 3160.454906, + 7121.924704000001, + 9767.29753, + 2253.023004, + 7113.692252, + 4247.400261, + 5838.347657, + 16999.4333, + 8792.573126000001, + 35767.43303, + 9230.240708, + 10165.49518 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1997
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 18565243, + 3676187 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 78.83, + 77.55 + ], + "xaxis": "x", + "y": [ + 26997.93657, + 21050.41377 + ], + "yaxis": "y" + } + ], + "name": "1997" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=2002
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 25268405, + 656397, + 135656790, + 12926707, + 1280400000, + 6762476, + 1034172547, + 211060000, + 66907826, + 24001816, + 6029529, + 127065841, + 5307470, + 22215365, + 47969150, + 2111561, + 3677780, + 22662365, + 2674234, + 45598081, + 25873917, + 2713462, + 153403524, + 82995088, + 24501530, + 4197776, + 19576783, + 17155814, + 22454239, + 62806748, + 80908147, + 3389578, + 18701257 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 42.129, + 74.795, + 62.01300000000001, + 56.752, + 72.028, + 81.495, + 62.879, + 68.58800000000001, + 69.45100000000001, + 57.04600000000001, + 79.696, + 82, + 71.263, + 66.66199999999999, + 77.045, + 76.904, + 71.028, + 73.044, + 65.033, + 59.908, + 61.34, + 74.193, + 63.61, + 70.303, + 71.626, + 78.77, + 70.815, + 73.053, + 76.99, + 68.564, + 73.017, + 72.37, + 60.308 + ], + "xaxis": "x", + "y": [ + 726.7340548, + 23403.55927, + 1136.3904300000004, + 896.2260152999999, + 3119.280896, + 30209.015160000006, + 1746.769454, + 2873.91287, + 9240.761975, + 4390.717312, + 21905.59514, + 28604.5919, + 3844.917194, + 1646.758151, + 19233.98818, + 35110.10566, + 9313.93883, + 10206.97794, + 2140.739323, + 611, + 1057.206311, + 19774.83687, + 2092.712441, + 2650.921068, + 19014.54118, + 36023.1054, + 3015.378833, + 4090.925331, + 23235.42329, + 5913.187529, + 1764.456677, + 4515.487575, + 2234.820827 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=2002
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 3508512, + 8148312, + 10311970, + 4165416, + 7661799, + 4481020, + 10256295, + 5374693, + 5193039, + 59925035, + 82350671, + 10603863, + 10083313, + 288030, + 3879155, + 57926999, + 720230, + 16122830, + 4535591, + 38625976, + 10433867, + 22404337, + 10111559, + 5410052, + 2011497, + 40152517, + 8954175, + 7361757, + 67308928, + 59912431 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 75.65100000000002, + 78.98, + 78.32, + 74.09, + 72.14, + 74.876, + 75.51, + 77.18, + 78.37, + 79.59, + 78.67, + 78.256, + 72.59, + 80.5, + 77.783, + 80.24, + 73.98100000000002, + 78.53, + 79.05, + 74.67, + 77.29, + 71.322, + 73.21300000000002, + 73.8, + 76.66, + 79.78, + 80.04, + 80.62, + 70.845, + 78.471 + ], + "xaxis": "x", + "y": [ + 4604.211737, + 32417.60769, + 30485.88375, + 6018.975239, + 7696.777725, + 11628.38895, + 17596.210219999994, + 32166.50006, + 28204.59057, + 28926.03234, + 30035.80198, + 22514.2548, + 14843.93556, + 31163.20196, + 34077.04939, + 27968.09817, + 6557.194282, + 33724.75778, + 44683.97525, + 12002.23908, + 19970.90787, + 7885.360081, + 7236.075251, + 13638.778369999998, + 20660.01936, + 24835.47166, + 29341.630930000007, + 34480.95771, + 6508.085718, + 29478.99919 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=2002
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 31287142, + 10866106, + 7026113, + 1630347, + 12251209, + 7021078, + 15929988, + 4048013, + 8835739, + 614382, + 55379852, + 3328795, + 16252726, + 447416, + 73312559, + 495627, + 4414865, + 67946797, + 1299304, + 1457766, + 20550751, + 8807818, + 1332459, + 31386842, + 2046772, + 2814651, + 5368585, + 16473477, + 11824495, + 10580176, + 2828858, + 1200206, + 31167783, + 18473780, + 1972153, + 11140655, + 119901274, + 743981, + 7852401, + 170372, + 10870037, + 5359092, + 7753310, + 44433622, + 37090298, + 1130269, + 34593779, + 4977378, + 9770575, + 24739869, + 10595811, + 11926563 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 70.994, + 41.003, + 54.40600000000001, + 46.63399999999999, + 50.65, + 47.36, + 49.856, + 43.308, + 50.525, + 62.974, + 44.966, + 52.97, + 46.832, + 53.37300000000001, + 69.806, + 49.348, + 55.24, + 50.725, + 56.761, + 58.041, + 58.453, + 53.676, + 45.504, + 50.992, + 44.593, + 43.753, + 72.737, + 57.286, + 45.00899999999999, + 51.81800000000001, + 62.247, + 71.954, + 69.615, + 44.026, + 51.479, + 54.496, + 46.608, + 75.744, + 43.413, + 64.337, + 61.6, + 41.012, + 45.93600000000001, + 53.365, + 56.369, + 43.869, + 49.651, + 57.56100000000001, + 73.042, + 47.813, + 39.19300000000001, + 39.989 + ], + "xaxis": "x", + "y": [ + 5288.040382, + 2773.287312, + 1372.877931, + 11003.60508, + 1037.645221, + 446.4035126, + 1934.011449, + 738.6906068, + 1156.18186, + 1075.811558, + 241.1658765, + 3484.06197, + 1648.800823, + 1908.260867, + 4754.604414, + 7703.4959, + 765.3500015, + 530.0535319, + 12521.71392, + 660.5855997, + 1111.9845779999996, + 945.5835837, + 575.7047176, + 1287.514732, + 1275.184575, + 531.4823679, + 9534.677467, + 894.6370822, + 665.4231186000002, + 951.4097518, + 1579.019543, + 9021.815894, + 3258.495584, + 633.6179466, + 4072.324751, + 601.0745012, + 1615.286395, + 6316.1652, + 785.6537647999999, + 1353.09239, + 1519.635262, + 699.4897129999998, + 882.0818218000002, + 7710.946444, + 1993.398314, + 4128.116943, + 899.0742111, + 886.2205765000001, + 5722.895654999998, + 927.7210018, + 1071.6139380000004, + 672.0386227000001 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=2002
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 38331121, + 8445134, + 179914212, + 31902268, + 15497046, + 41008227, + 3834934, + 11226999, + 8650322, + 12921234, + 6353681, + 11178650, + 7607651, + 6677328, + 2664659, + 102479927, + 5146848, + 2990875, + 5884491, + 26769436, + 3859606, + 1101832, + 287675526, + 3363085, + 24287670 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 74.34, + 63.883, + 71.006, + 79.77, + 77.86, + 71.682, + 78.123, + 77.158, + 70.847, + 74.173, + 70.734, + 68.97800000000001, + 58.137, + 68.565, + 72.047, + 74.902, + 70.836, + 74.712, + 70.755, + 69.906, + 77.778, + 68.976, + 77.31, + 75.307, + 72.766 + ], + "xaxis": "x", + "y": [ + 8797.640716, + 3413.26269, + 8131.212843000001, + 33328.96507, + 10778.78385, + 5755.259962, + 7723.447195000002, + 6340.646683, + 4563.808154, + 5773.044512, + 5351.568665999999, + 4858.347495, + 1270.364932, + 3099.72866, + 6994.774861, + 10742.44053, + 2474.548819, + 7356.0319340000015, + 3783.674243, + 5909.020073, + 18855.60618, + 11460.60023, + 39097.09955, + 7727.002004000001, + 8605.047831 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=2002
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 19546792, + 3908037 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 80.37, + 79.11 + ], + "xaxis": "x", + "y": [ + 30687.75473, + 23189.80135 + ], + "yaxis": "y" + } + ], + "name": "2002" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=2007
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "size": [ + 31889923, + 708573, + 150448339, + 14131858, + 1318683096, + 6980412, + 1110396331, + 223547000, + 69453570, + 27499638, + 6426679, + 127467972, + 6053193, + 23301725, + 49044790, + 2505559, + 3921278, + 24821286, + 2874127, + 47761980, + 28901790, + 3204897, + 169270617, + 91077287, + 27601038, + 4553009, + 20378239, + 19314747, + 23174294, + 65068149, + 85262356, + 4018332, + 22211743 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 43.828, + 75.635, + 64.062, + 59.723, + 72.961, + 82.208, + 64.69800000000001, + 70.65, + 70.964, + 59.545, + 80.745, + 82.603, + 72.535, + 67.297, + 78.623, + 77.58800000000002, + 71.993, + 74.241, + 66.803, + 62.069, + 63.785, + 75.64, + 65.483, + 71.688, + 72.777, + 79.972, + 72.396, + 74.143, + 78.4, + 70.616, + 74.249, + 73.422, + 62.698 + ], + "xaxis": "x", + "y": [ + 974.5803384, + 29796.04834, + 1391.253792, + 1713.778686, + 4959.114854, + 39724.97867, + 2452.210407, + 3540.651564, + 11605.71449, + 4471.061906, + 25523.2771, + 31656.06806, + 4519.461171, + 1593.06548, + 23348.139730000006, + 47306.98978, + 10461.05868, + 12451.6558, + 3095.7722710000007, + 944, + 1091.359778, + 22316.19287, + 2605.94758, + 3190.481016, + 21654.83194, + 47143.17964, + 3970.095407, + 4184.548089, + 28718.27684, + 7458.396326999998, + 2441.576404, + 3025.349798, + 2280.769906 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=2007
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "size": [ + 3600523, + 8199783, + 10392226, + 4552198, + 7322858, + 4493312, + 10228744, + 5468120, + 5238460, + 61083916, + 82400996, + 10706290, + 9956108, + 301931, + 4109086, + 58147733, + 684736, + 16570613, + 4627926, + 38518241, + 10642836, + 22276056, + 10150265, + 5447502, + 2009245, + 40448191, + 9031088, + 7554661, + 71158647, + 60776238 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 76.423, + 79.829, + 79.441, + 74.852, + 73.005, + 75.748, + 76.486, + 78.332, + 79.313, + 80.657, + 79.406, + 79.483, + 73.33800000000002, + 81.757, + 78.885, + 80.546, + 74.543, + 79.762, + 80.196, + 75.563, + 78.098, + 72.476, + 74.002, + 74.663, + 77.926, + 80.941, + 80.884, + 81.70100000000002, + 71.777, + 79.425 + ], + "xaxis": "x", + "y": [ + 5937.029525999998, + 36126.4927, + 33692.60508, + 7446.298803, + 10680.79282, + 14619.222719999998, + 22833.30851, + 35278.41874, + 33207.0844, + 30470.0167, + 32170.37442, + 27538.41188, + 18008.94444, + 36180.78919, + 40675.99635, + 28569.7197, + 9253.896111, + 36797.93332, + 49357.19017, + 15389.924680000002, + 20509.64777, + 10808.47561, + 9786.534714, + 18678.31435, + 25768.25759, + 28821.0637, + 33859.74835, + 37506.41907, + 8458.276384, + 33203.26128 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=2007
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "size": [ + 33333216, + 12420476, + 8078314, + 1639131, + 14326203, + 8390505, + 17696293, + 4369038, + 10238807, + 710960, + 64606759, + 3800610, + 18013409, + 496374, + 80264543, + 551201, + 4906585, + 76511887, + 1454867, + 1688359, + 22873338, + 9947814, + 1472041, + 35610177, + 2012649, + 3193942, + 6036914, + 19167654, + 13327079, + 12031795, + 3270065, + 1250882, + 33757175, + 19951656, + 2055080, + 12894865, + 135031164, + 798094, + 8860588, + 199579, + 12267493, + 6144562, + 9118773, + 43997828, + 42292929, + 1133066, + 38139640, + 5701579, + 10276158, + 29170398, + 11746035, + 12311143 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 72.301, + 42.731, + 56.728, + 50.728, + 52.295, + 49.58, + 50.43, + 44.74100000000001, + 50.651, + 65.152, + 46.462, + 55.322, + 48.328, + 54.791, + 71.33800000000002, + 51.57899999999999, + 58.04, + 52.947, + 56.735, + 59.448, + 60.022, + 56.007, + 46.38800000000001, + 54.11, + 42.592, + 45.678, + 73.952, + 59.44300000000001, + 48.303, + 54.467, + 64.164, + 72.801, + 71.164, + 42.082, + 52.90600000000001, + 56.867, + 46.859, + 76.442, + 46.242, + 65.528, + 63.062, + 42.56800000000001, + 48.159, + 49.339, + 58.556, + 39.613, + 52.517, + 58.42, + 73.923, + 51.542, + 42.38399999999999, + 43.487 + ], + "xaxis": "x", + "y": [ + 6223.367465, + 4797.231267, + 1441.284873, + 12569.85177, + 1217.032994, + 430.0706916, + 2042.09524, + 706.016537, + 1704.063724, + 986.1478792, + 277.5518587, + 3632.557798, + 1544.750112, + 2082.4815670000007, + 5581.180998, + 12154.08975, + 641.3695236000002, + 690.8055759, + 13206.48452, + 752.7497265, + 1327.60891, + 942.6542111, + 579.2317429999998, + 1463.249282, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 1042.581557, + 1803.151496, + 10956.99112, + 3820.17523, + 823.6856205, + 4811.060429, + 619.6768923999998, + 2013.977305, + 7670.122558, + 863.0884639000002, + 1598.435089, + 1712.472136, + 862.5407561000002, + 926.1410683, + 9269.657808, + 2602.394995, + 4513.480643, + 1107.482182, + 882.9699437999999, + 7092.923025, + 1056.380121, + 1271.211593, + 469.70929810000007 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=2007
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "size": [ + 40301927, + 9119152, + 190010647, + 33390141, + 16284741, + 44227550, + 4133884, + 11416987, + 9319622, + 13755680, + 6939688, + 12572928, + 8502814, + 7483763, + 2780132, + 108700891, + 5675356, + 3242173, + 6667147, + 28674757, + 3942491, + 1056608, + 301139947, + 3447496, + 26084662 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 75.32, + 65.554, + 72.39, + 80.653, + 78.553, + 72.889, + 78.782, + 78.273, + 72.235, + 74.994, + 71.878, + 70.259, + 60.916, + 70.19800000000001, + 72.567, + 76.195, + 72.899, + 75.53699999999998, + 71.752, + 71.421, + 78.74600000000002, + 69.819, + 78.242, + 76.384, + 73.747 + ], + "xaxis": "x", + "y": [ + 12779.37964, + 3822.137084, + 9065.800825, + 36319.23501, + 13171.63885, + 7006.580419, + 9645.06142, + 8948.102923, + 6025.3747520000015, + 6873.262326000001, + 5728.353514, + 5186.050003, + 1201.637154, + 3548.3308460000007, + 7320.8802620000015, + 11977.57496, + 2749.320965, + 9809.185636, + 4172.838464, + 7408.905561, + 19328.70901, + 18008.50924, + 42951.65309, + 10611.46299, + 11415.80569 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=2007
lifeExp=%{x}
gdpPercap=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 20434176, + 4115771 + ], + "sizemode": "area", + "sizeref": 131868.3096, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 81.235, + 80.204 + ], + "xaxis": "x", + "y": [ + 34435.367439999995, + 25185.00911 + ], + "yaxis": "y" + } + ], + "name": "2007" + } + ], + "layout": { + "legend": { + "itemsizing": "constant", + "title": { + "text": "continent" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "sliders": [ + { + "active": 0, + "currentvalue": { + "prefix": "year=" + }, + "len": 0.9, + "pad": { + "b": 10, + "t": 60 + }, + "steps": [ + { + "args": [ + [ + "1952" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1952", + "method": "animate" + }, + { + "args": [ + [ + "1957" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1957", + "method": "animate" + }, + { + "args": [ + [ + "1962" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1962", + "method": "animate" + }, + { + "args": [ + [ + "1967" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1967", + "method": "animate" + }, + { + "args": [ + [ + "1972" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1972", + "method": "animate" + }, + { + "args": [ + [ + "1977" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1977", + "method": "animate" + }, + { + "args": [ + [ + "1982" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1982", + "method": "animate" + }, + { + "args": [ + [ + "1987" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1987", + "method": "animate" + }, + { + "args": [ + [ + "1992" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1992", + "method": "animate" + }, + { + "args": [ + [ + "1997" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1997", + "method": "animate" + }, + { + "args": [ + [ + "2002" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "2002", + "method": "animate" + }, + { + "args": [ + [ + "2007" + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "2007", + "method": "animate" + } + ], + "x": 0.1, + "xanchor": "left", + "y": 0, + "yanchor": "top" + } + ], + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "updatemenus": [ + { + "buttons": [ + { + "args": [ + null, + { + "frame": { + "duration": 500, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 500, + "easing": "linear" + } + } + ], + "label": "▶", + "method": "animate" + }, + { + "args": [ + [ + null + ], + { + "frame": { + "duration": 0, + "redraw": false + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "◼", + "method": "animate" + } + ], + "direction": "left", + "pad": { + "r": 10, + "t": 70 + }, + "showactive": false, + "type": "buttons", + "x": 0.1, + "xanchor": "right", + "y": 0, + "yanchor": "top" + } + ], + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "range": [ + 30, + 95 + ], + "title": { + "text": "lifeExp" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "gdpPercap" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# plot animation of the above curve on the basic of year\n", + "px.scatter(\n", + " gap, \n", + " x='lifeExp', y='gdpPercap',\n", + " color='continent',\n", + " size='pop',\n", + " size_max=100, \n", + " hover_name='country',\n", + " range_x=[30,95], # range of X axis\n", + " animation_frame='year', # Important - on what different categories your plot behavour is changing\n", + " # For time - series plots, the animation is more intuitive\n", + " animation_group='country'\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "c-8P3BXfw7nC", + "outputId": "682fcb0a-872a-4a1b-c73c-ebbe5918fc8e" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "year=%{x}
pop=%{y}", + "legendgroup": "", + "line": { + "color": "#636efa", + "dash": "solid" + }, + "marker": { + "symbol": "circle" + }, + "mode": "lines", + "name": "", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 372000000, + 409000000, + 454000000, + 506000000, + 567000000, + 634000000, + 708000000, + 788000000, + 872000000, + 959000000, + 1034172547, + 1110396331 + ], + "yaxis": "y" + } + ], + "layout": { + "legend": { + "tracegroupgap": 0 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "India pop growth" + }, + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "title": { + "text": "year" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "pop" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# line plot\n", + "temp_df = gap[gap['country'] == 'India']\n", + "px.line(temp_df, x='year', y='pop',title='India pop growth')" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 457 + }, + "id": "sx6cyOQ9ykdC", + "outputId": "685ee800-eb3e-47a1-fd4a-76e899608bdd" + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
countryChinaIndiaPakistan
year
195244.0000037.37343.436
195750.5489640.24945.557
196244.5013643.60547.670
196758.3811247.19349.800
197263.1188850.65151.929
197763.9673654.20854.043
198265.5250056.59656.158
198767.2740058.55358.245
199268.6900060.22360.838
199770.4260061.76561.818
200272.0280062.87963.610
200772.9610064.69865.483
\n", + "
" + ], + "text/plain": [ + "country China India Pakistan\n", + "year \n", + "1952 44.00000 37.373 43.436\n", + "1957 50.54896 40.249 45.557\n", + "1962 44.50136 43.605 47.670\n", + "1967 58.38112 47.193 49.800\n", + "1972 63.11888 50.651 51.929\n", + "1977 63.96736 54.208 54.043\n", + "1982 65.52500 56.596 56.158\n", + "1987 67.27400 58.553 58.245\n", + "1992 68.69000 60.223 60.838\n", + "1997 70.42600 61.765 61.818\n", + "2002 72.02800 62.879 63.610\n", + "2007 72.96100 64.698 65.483" + ] + }, + "execution_count": 14, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# plot india china pak line plot\n", + "temp_df = gap[gap['country'].isin(['India','China','Pakistan'])].pivot(index='year',columns='country',values='lifeExp')\n", + "temp_df" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "EBBUf6qCvaZK", + "outputId": "63bb4d9c-4661-4baa-ac9c-950867696b58" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "country=China
year=%{x}
value=%{y}", + "legendgroup": "China", + "line": { + "color": "#636efa", + "dash": "solid" + }, + "marker": { + "symbol": "circle" + }, + "mode": "lines", + "name": "China", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 44, + 50.54896, + 44.50136, + 58.38112, + 63.11888, + 63.96736, + 65.525, + 67.274, + 68.69, + 70.426, + 72.028, + 72.961 + ], + "yaxis": "y" + }, + { + "hovertemplate": "country=India
year=%{x}
value=%{y}", + "legendgroup": "India", + "line": { + "color": "#EF553B", + "dash": "solid" + }, + "marker": { + "symbol": "circle" + }, + "mode": "lines", + "name": "India", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 37.37300000000001, + 40.249, + 43.605, + 47.19300000000001, + 50.651, + 54.208, + 56.596, + 58.553, + 60.223, + 61.765, + 62.879, + 64.69800000000001 + ], + "yaxis": "y" + }, + { + "hovertemplate": "country=Pakistan
year=%{x}
value=%{y}", + "legendgroup": "Pakistan", + "line": { + "color": "#00cc96", + "dash": "solid" + }, + "marker": { + "symbol": "circle" + }, + "mode": "lines", + "name": "Pakistan", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 43.43600000000001, + 45.557, + 47.67, + 49.8, + 51.929, + 54.043, + 56.158, + 58.245, + 60.838, + 61.81800000000001, + 63.61, + 65.483 + ], + "yaxis": "y" + } + ], + "layout": { + "legend": { + "title": { + "text": "country" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "title": { + "text": "year" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "value" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.line(temp_df, x = temp_df.index, y = temp_df.columns)\n", + "# Passing all indices and columns" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "XdtUp-N31EGH", + "outputId": "af4c8aaf-09ca-4eaa-d355-ceddd0574547" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "year=%{x}
pop=%{y}", + "legendgroup": "", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "", + "offsetgroup": "", + "orientation": "v", + "showlegend": false, + "textposition": "auto", + "type": "bar", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 372000000, + 409000000, + 454000000, + 506000000, + 567000000, + 634000000, + 708000000, + 788000000, + 872000000, + 959000000, + 1034172547, + 1110396331 + ], + "yaxis": "y" + } + ], + "layout": { + "barmode": "relative", + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "title": { + "text": "year" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "pop" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# bar chart\n", + "# india's pop over the years\n", + "temp_df = gap[gap['country'] == 'India']\n", + "px.bar(temp_df,x = 'year',y = 'pop')" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 457 + }, + "id": "5OVV_9xF54tE", + "outputId": "6f7ae5dd-1d3d-4178-ad47-776f6a756790" + }, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
countryChinaIndiaPakistan
year
195255626352737200000041346560
195763740800040900000046679944
196266577000045400000053100671
196775455000050600000060641899
197286203000056700000069325921
197794345500063400000078152686
1982100028100070800000091462088
19871084035000788000000105186881
19921164970000872000000120065004
19971230075000959000000135564834
200212804000001034172547153403524
200713186830961110396331169270617
\n", + "
" + ], + "text/plain": [ + "country China India Pakistan\n", + "year \n", + "1952 556263527 372000000 41346560\n", + "1957 637408000 409000000 46679944\n", + "1962 665770000 454000000 53100671\n", + "1967 754550000 506000000 60641899\n", + "1972 862030000 567000000 69325921\n", + "1977 943455000 634000000 78152686\n", + "1982 1000281000 708000000 91462088\n", + "1987 1084035000 788000000 105186881\n", + "1992 1164970000 872000000 120065004\n", + "1997 1230075000 959000000 135564834\n", + "2002 1280400000 1034172547 153403524\n", + "2007 1318683096 1110396331 169270617" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# pop comp of 3 countries\n", + "temp_df = gap[gap['country'].isin(['India','China','Pakistan'])].pivot(index='year',columns='country',values='pop')\n", + "temp_df" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "wmRw5Lq66iMD", + "outputId": "70b3b717-496c-4f6b-e709-554263807f41" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "country=China
year=%{x}
value=%{y}", + "legendgroup": "China", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "China", + "offsetgroup": "China", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "texttemplate": "%{y}", + "type": "bar", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 556263527, + 637408000, + 665770000, + 754550000, + 862030000, + 943455000, + 1000281000, + 1084035000, + 1164970000, + 1230075000, + 1280400000, + 1318683096 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=India
year=%{x}
value=%{y}", + "legendgroup": "India", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "India", + "offsetgroup": "India", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "texttemplate": "%{y}", + "type": "bar", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 372000000, + 409000000, + 454000000, + 506000000, + 567000000, + 634000000, + 708000000, + 788000000, + 872000000, + 959000000, + 1034172547, + 1110396331 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Pakistan
year=%{x}
value=%{y}", + "legendgroup": "Pakistan", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Pakistan", + "offsetgroup": "Pakistan", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "texttemplate": "%{y}", + "type": "bar", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 41346560, + 46679944, + 53100671, + 60641899, + 69325921, + 78152686, + 91462088, + 105186881, + 120065004, + 135564834, + 153403524, + 169270617 + ], + "yaxis": "y" + } + ], + "layout": { + "barmode": "group", + "legend": { + "title": { + "text": "country" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "title": { + "text": "year" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "value" + }, + "type": "log" + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# grouped bar chart -> text_auto\n", + "px.bar(\n", + " temp_df, x=temp_df.index, y=temp_df.columns,\n", + " barmode='group', # Group / Adjecent Bar chart -> ['stack', 'group', 'overlay', 'relative']\n", + " log_y=True,\n", + " text_auto=True # Values represented in bar charts\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "country=China
year=%{x}
value=%{y}", + "legendgroup": "China", + "marker": { + "color": "#636efa", + "opacity": 0.5, + "pattern": { + "shape": "" + } + }, + "name": "China", + "offsetgroup": "China", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 556263527, + 637408000, + 665770000, + 754550000, + 862030000, + 943455000, + 1000281000, + 1084035000, + 1164970000, + 1230075000, + 1280400000, + 1318683096 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=India
year=%{x}
value=%{y}", + "legendgroup": "India", + "marker": { + "color": "#EF553B", + "opacity": 0.5, + "pattern": { + "shape": "" + } + }, + "name": "India", + "offsetgroup": "India", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 372000000, + 409000000, + 454000000, + 506000000, + 567000000, + 634000000, + 708000000, + 788000000, + 872000000, + 959000000, + 1034172547, + 1110396331 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Pakistan
year=%{x}
value=%{y}", + "legendgroup": "Pakistan", + "marker": { + "color": "#00cc96", + "opacity": 0.5, + "pattern": { + "shape": "" + } + }, + "name": "Pakistan", + "offsetgroup": "Pakistan", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "xaxis": "x", + "y": [ + 41346560, + 46679944, + 53100671, + 60641899, + 69325921, + 78152686, + 91462088, + 105186881, + 120065004, + 135564834, + 153403524, + 169270617 + ], + "yaxis": "y" + } + ], + "layout": { + "barmode": "overlay", + "legend": { + "title": { + "text": "country" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "title": { + "text": "year" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "value" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.bar(\n", + " temp_df, x = temp_df.index, y = temp_df.columns, \n", + " barmode = 'overlay'\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "HixNPkEl6r8k", + "outputId": "78b2adcd-b2c1-4b92-9499-bf8d4106392e" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "country=Afghanistan
continent=%{x}
pop=%{y}", + "legendgroup": "Afghanistan", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Afghanistan", + "offsetgroup": "Afghanistan", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 31889923 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Albania
continent=%{x}
pop=%{y}", + "legendgroup": "Albania", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Albania", + "offsetgroup": "Albania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 3600523 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Algeria
continent=%{x}
pop=%{y}", + "legendgroup": "Algeria", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Algeria", + "offsetgroup": "Algeria", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 33333216 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Angola
continent=%{x}
pop=%{y}", + "legendgroup": "Angola", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Angola", + "offsetgroup": "Angola", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 12420476 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Argentina
continent=%{x}
pop=%{y}", + "legendgroup": "Argentina", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Argentina", + "offsetgroup": "Argentina", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 40301927 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Australia
continent=%{x}
pop=%{y}", + "legendgroup": "Australia", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Australia", + "offsetgroup": "Australia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania" + ], + "xaxis": "x", + "y": [ + 20434176 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Austria
continent=%{x}
pop=%{y}", + "legendgroup": "Austria", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Austria", + "offsetgroup": "Austria", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 8199783 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Bahrain
continent=%{x}
pop=%{y}", + "legendgroup": "Bahrain", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Bahrain", + "offsetgroup": "Bahrain", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 708573 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Bangladesh
continent=%{x}
pop=%{y}", + "legendgroup": "Bangladesh", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Bangladesh", + "offsetgroup": "Bangladesh", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 150448339 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Belgium
continent=%{x}
pop=%{y}", + "legendgroup": "Belgium", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Belgium", + "offsetgroup": "Belgium", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 10392226 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Benin
continent=%{x}
pop=%{y}", + "legendgroup": "Benin", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Benin", + "offsetgroup": "Benin", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 8078314 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Bolivia
continent=%{x}
pop=%{y}", + "legendgroup": "Bolivia", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Bolivia", + "offsetgroup": "Bolivia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 9119152 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Bosnia and Herzegovina
continent=%{x}
pop=%{y}", + "legendgroup": "Bosnia and Herzegovina", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Bosnia and Herzegovina", + "offsetgroup": "Bosnia and Herzegovina", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 4552198 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Botswana
continent=%{x}
pop=%{y}", + "legendgroup": "Botswana", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Botswana", + "offsetgroup": "Botswana", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 1639131 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Brazil
continent=%{x}
pop=%{y}", + "legendgroup": "Brazil", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Brazil", + "offsetgroup": "Brazil", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 190010647 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Bulgaria
continent=%{x}
pop=%{y}", + "legendgroup": "Bulgaria", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Bulgaria", + "offsetgroup": "Bulgaria", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 7322858 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Burkina Faso
continent=%{x}
pop=%{y}", + "legendgroup": "Burkina Faso", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Burkina Faso", + "offsetgroup": "Burkina Faso", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 14326203 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Burundi
continent=%{x}
pop=%{y}", + "legendgroup": "Burundi", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Burundi", + "offsetgroup": "Burundi", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 8390505 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Cambodia
continent=%{x}
pop=%{y}", + "legendgroup": "Cambodia", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Cambodia", + "offsetgroup": "Cambodia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 14131858 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Cameroon
continent=%{x}
pop=%{y}", + "legendgroup": "Cameroon", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Cameroon", + "offsetgroup": "Cameroon", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 17696293 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Canada
continent=%{x}
pop=%{y}", + "legendgroup": "Canada", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Canada", + "offsetgroup": "Canada", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 33390141 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Central African Republic
continent=%{x}
pop=%{y}", + "legendgroup": "Central African Republic", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Central African Republic", + "offsetgroup": "Central African Republic", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 4369038 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Chad
continent=%{x}
pop=%{y}", + "legendgroup": "Chad", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Chad", + "offsetgroup": "Chad", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 10238807 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Chile
continent=%{x}
pop=%{y}", + "legendgroup": "Chile", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Chile", + "offsetgroup": "Chile", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 16284741 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=China
continent=%{x}
pop=%{y}", + "legendgroup": "China", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "China", + "offsetgroup": "China", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 1318683096 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Colombia
continent=%{x}
pop=%{y}", + "legendgroup": "Colombia", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Colombia", + "offsetgroup": "Colombia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 44227550 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Comoros
continent=%{x}
pop=%{y}", + "legendgroup": "Comoros", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Comoros", + "offsetgroup": "Comoros", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 710960 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Congo, Dem. Rep.
continent=%{x}
pop=%{y}", + "legendgroup": "Congo, Dem. Rep.", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Congo, Dem. Rep.", + "offsetgroup": "Congo, Dem. Rep.", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 64606759 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Congo, Rep.
continent=%{x}
pop=%{y}", + "legendgroup": "Congo, Rep.", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Congo, Rep.", + "offsetgroup": "Congo, Rep.", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 3800610 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Costa Rica
continent=%{x}
pop=%{y}", + "legendgroup": "Costa Rica", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Costa Rica", + "offsetgroup": "Costa Rica", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 4133884 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Cote d'Ivoire
continent=%{x}
pop=%{y}", + "legendgroup": "Cote d'Ivoire", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Cote d'Ivoire", + "offsetgroup": "Cote d'Ivoire", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 18013409 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Croatia
continent=%{x}
pop=%{y}", + "legendgroup": "Croatia", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Croatia", + "offsetgroup": "Croatia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 4493312 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Cuba
continent=%{x}
pop=%{y}", + "legendgroup": "Cuba", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Cuba", + "offsetgroup": "Cuba", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 11416987 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Czech Republic
continent=%{x}
pop=%{y}", + "legendgroup": "Czech Republic", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Czech Republic", + "offsetgroup": "Czech Republic", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 10228744 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Denmark
continent=%{x}
pop=%{y}", + "legendgroup": "Denmark", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Denmark", + "offsetgroup": "Denmark", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 5468120 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Djibouti
continent=%{x}
pop=%{y}", + "legendgroup": "Djibouti", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Djibouti", + "offsetgroup": "Djibouti", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 496374 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Dominican Republic
continent=%{x}
pop=%{y}", + "legendgroup": "Dominican Republic", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Dominican Republic", + "offsetgroup": "Dominican Republic", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 9319622 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Ecuador
continent=%{x}
pop=%{y}", + "legendgroup": "Ecuador", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Ecuador", + "offsetgroup": "Ecuador", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 13755680 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Egypt
continent=%{x}
pop=%{y}", + "legendgroup": "Egypt", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Egypt", + "offsetgroup": "Egypt", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 80264543 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=El Salvador
continent=%{x}
pop=%{y}", + "legendgroup": "El Salvador", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "El Salvador", + "offsetgroup": "El Salvador", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 6939688 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Equatorial Guinea
continent=%{x}
pop=%{y}", + "legendgroup": "Equatorial Guinea", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Equatorial Guinea", + "offsetgroup": "Equatorial Guinea", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 551201 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Eritrea
continent=%{x}
pop=%{y}", + "legendgroup": "Eritrea", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Eritrea", + "offsetgroup": "Eritrea", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 4906585 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Ethiopia
continent=%{x}
pop=%{y}", + "legendgroup": "Ethiopia", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Ethiopia", + "offsetgroup": "Ethiopia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 76511887 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Finland
continent=%{x}
pop=%{y}", + "legendgroup": "Finland", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Finland", + "offsetgroup": "Finland", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 5238460 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=France
continent=%{x}
pop=%{y}", + "legendgroup": "France", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "France", + "offsetgroup": "France", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 61083916 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Gabon
continent=%{x}
pop=%{y}", + "legendgroup": "Gabon", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Gabon", + "offsetgroup": "Gabon", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 1454867 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Gambia
continent=%{x}
pop=%{y}", + "legendgroup": "Gambia", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Gambia", + "offsetgroup": "Gambia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 1688359 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Germany
continent=%{x}
pop=%{y}", + "legendgroup": "Germany", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Germany", + "offsetgroup": "Germany", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 82400996 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Ghana
continent=%{x}
pop=%{y}", + "legendgroup": "Ghana", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Ghana", + "offsetgroup": "Ghana", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 22873338 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Greece
continent=%{x}
pop=%{y}", + "legendgroup": "Greece", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Greece", + "offsetgroup": "Greece", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 10706290 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Guatemala
continent=%{x}
pop=%{y}", + "legendgroup": "Guatemala", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Guatemala", + "offsetgroup": "Guatemala", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 12572928 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Guinea
continent=%{x}
pop=%{y}", + "legendgroup": "Guinea", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Guinea", + "offsetgroup": "Guinea", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 9947814 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Guinea-Bissau
continent=%{x}
pop=%{y}", + "legendgroup": "Guinea-Bissau", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Guinea-Bissau", + "offsetgroup": "Guinea-Bissau", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 1472041 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Haiti
continent=%{x}
pop=%{y}", + "legendgroup": "Haiti", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Haiti", + "offsetgroup": "Haiti", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 8502814 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Honduras
continent=%{x}
pop=%{y}", + "legendgroup": "Honduras", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Honduras", + "offsetgroup": "Honduras", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 7483763 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Hong Kong, China
continent=%{x}
pop=%{y}", + "legendgroup": "Hong Kong, China", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Hong Kong, China", + "offsetgroup": "Hong Kong, China", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 6980412 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Hungary
continent=%{x}
pop=%{y}", + "legendgroup": "Hungary", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Hungary", + "offsetgroup": "Hungary", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 9956108 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Iceland
continent=%{x}
pop=%{y}", + "legendgroup": "Iceland", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Iceland", + "offsetgroup": "Iceland", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 301931 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=India
continent=%{x}
pop=%{y}", + "legendgroup": "India", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "India", + "offsetgroup": "India", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 1110396331 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Indonesia
continent=%{x}
pop=%{y}", + "legendgroup": "Indonesia", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Indonesia", + "offsetgroup": "Indonesia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 223547000 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Iran
continent=%{x}
pop=%{y}", + "legendgroup": "Iran", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Iran", + "offsetgroup": "Iran", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 69453570 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Iraq
continent=%{x}
pop=%{y}", + "legendgroup": "Iraq", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Iraq", + "offsetgroup": "Iraq", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 27499638 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Ireland
continent=%{x}
pop=%{y}", + "legendgroup": "Ireland", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Ireland", + "offsetgroup": "Ireland", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 4109086 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Israel
continent=%{x}
pop=%{y}", + "legendgroup": "Israel", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Israel", + "offsetgroup": "Israel", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 6426679 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Italy
continent=%{x}
pop=%{y}", + "legendgroup": "Italy", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Italy", + "offsetgroup": "Italy", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 58147733 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Jamaica
continent=%{x}
pop=%{y}", + "legendgroup": "Jamaica", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Jamaica", + "offsetgroup": "Jamaica", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 2780132 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Japan
continent=%{x}
pop=%{y}", + "legendgroup": "Japan", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Japan", + "offsetgroup": "Japan", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 127467972 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Jordan
continent=%{x}
pop=%{y}", + "legendgroup": "Jordan", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Jordan", + "offsetgroup": "Jordan", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 6053193 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Kenya
continent=%{x}
pop=%{y}", + "legendgroup": "Kenya", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Kenya", + "offsetgroup": "Kenya", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 35610177 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Korea, Dem. Rep.
continent=%{x}
pop=%{y}", + "legendgroup": "Korea, Dem. Rep.", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Korea, Dem. Rep.", + "offsetgroup": "Korea, Dem. Rep.", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 23301725 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Korea, Rep.
continent=%{x}
pop=%{y}", + "legendgroup": "Korea, Rep.", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Korea, Rep.", + "offsetgroup": "Korea, Rep.", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 49044790 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Kuwait
continent=%{x}
pop=%{y}", + "legendgroup": "Kuwait", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Kuwait", + "offsetgroup": "Kuwait", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 2505559 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Lebanon
continent=%{x}
pop=%{y}", + "legendgroup": "Lebanon", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Lebanon", + "offsetgroup": "Lebanon", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 3921278 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Lesotho
continent=%{x}
pop=%{y}", + "legendgroup": "Lesotho", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Lesotho", + "offsetgroup": "Lesotho", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 2012649 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Liberia
continent=%{x}
pop=%{y}", + "legendgroup": "Liberia", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Liberia", + "offsetgroup": "Liberia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 3193942 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Libya
continent=%{x}
pop=%{y}", + "legendgroup": "Libya", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Libya", + "offsetgroup": "Libya", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 6036914 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Madagascar
continent=%{x}
pop=%{y}", + "legendgroup": "Madagascar", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Madagascar", + "offsetgroup": "Madagascar", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 19167654 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Malawi
continent=%{x}
pop=%{y}", + "legendgroup": "Malawi", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Malawi", + "offsetgroup": "Malawi", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 13327079 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Malaysia
continent=%{x}
pop=%{y}", + "legendgroup": "Malaysia", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Malaysia", + "offsetgroup": "Malaysia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 24821286 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Mali
continent=%{x}
pop=%{y}", + "legendgroup": "Mali", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Mali", + "offsetgroup": "Mali", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 12031795 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Mauritania
continent=%{x}
pop=%{y}", + "legendgroup": "Mauritania", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Mauritania", + "offsetgroup": "Mauritania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 3270065 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Mauritius
continent=%{x}
pop=%{y}", + "legendgroup": "Mauritius", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Mauritius", + "offsetgroup": "Mauritius", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 1250882 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Mexico
continent=%{x}
pop=%{y}", + "legendgroup": "Mexico", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Mexico", + "offsetgroup": "Mexico", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 108700891 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Mongolia
continent=%{x}
pop=%{y}", + "legendgroup": "Mongolia", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Mongolia", + "offsetgroup": "Mongolia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 2874127 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Montenegro
continent=%{x}
pop=%{y}", + "legendgroup": "Montenegro", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Montenegro", + "offsetgroup": "Montenegro", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 684736 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Morocco
continent=%{x}
pop=%{y}", + "legendgroup": "Morocco", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Morocco", + "offsetgroup": "Morocco", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 33757175 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Mozambique
continent=%{x}
pop=%{y}", + "legendgroup": "Mozambique", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Mozambique", + "offsetgroup": "Mozambique", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 19951656 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Myanmar
continent=%{x}
pop=%{y}", + "legendgroup": "Myanmar", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Myanmar", + "offsetgroup": "Myanmar", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 47761980 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Namibia
continent=%{x}
pop=%{y}", + "legendgroup": "Namibia", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Namibia", + "offsetgroup": "Namibia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 2055080 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Nepal
continent=%{x}
pop=%{y}", + "legendgroup": "Nepal", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Nepal", + "offsetgroup": "Nepal", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 28901790 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Netherlands
continent=%{x}
pop=%{y}", + "legendgroup": "Netherlands", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Netherlands", + "offsetgroup": "Netherlands", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 16570613 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=New Zealand
continent=%{x}
pop=%{y}", + "legendgroup": "New Zealand", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "New Zealand", + "offsetgroup": "New Zealand", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania" + ], + "xaxis": "x", + "y": [ + 4115771 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Nicaragua
continent=%{x}
pop=%{y}", + "legendgroup": "Nicaragua", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Nicaragua", + "offsetgroup": "Nicaragua", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 5675356 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Niger
continent=%{x}
pop=%{y}", + "legendgroup": "Niger", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Niger", + "offsetgroup": "Niger", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 12894865 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Nigeria
continent=%{x}
pop=%{y}", + "legendgroup": "Nigeria", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Nigeria", + "offsetgroup": "Nigeria", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 135031164 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Norway
continent=%{x}
pop=%{y}", + "legendgroup": "Norway", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Norway", + "offsetgroup": "Norway", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 4627926 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Oman
continent=%{x}
pop=%{y}", + "legendgroup": "Oman", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Oman", + "offsetgroup": "Oman", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 3204897 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Pakistan
continent=%{x}
pop=%{y}", + "legendgroup": "Pakistan", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Pakistan", + "offsetgroup": "Pakistan", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 169270617 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Panama
continent=%{x}
pop=%{y}", + "legendgroup": "Panama", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Panama", + "offsetgroup": "Panama", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 3242173 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Paraguay
continent=%{x}
pop=%{y}", + "legendgroup": "Paraguay", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Paraguay", + "offsetgroup": "Paraguay", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 6667147 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Peru
continent=%{x}
pop=%{y}", + "legendgroup": "Peru", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Peru", + "offsetgroup": "Peru", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 28674757 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Philippines
continent=%{x}
pop=%{y}", + "legendgroup": "Philippines", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Philippines", + "offsetgroup": "Philippines", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 91077287 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Poland
continent=%{x}
pop=%{y}", + "legendgroup": "Poland", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Poland", + "offsetgroup": "Poland", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 38518241 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Portugal
continent=%{x}
pop=%{y}", + "legendgroup": "Portugal", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Portugal", + "offsetgroup": "Portugal", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 10642836 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Puerto Rico
continent=%{x}
pop=%{y}", + "legendgroup": "Puerto Rico", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Puerto Rico", + "offsetgroup": "Puerto Rico", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 3942491 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Reunion
continent=%{x}
pop=%{y}", + "legendgroup": "Reunion", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Reunion", + "offsetgroup": "Reunion", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 798094 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Romania
continent=%{x}
pop=%{y}", + "legendgroup": "Romania", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Romania", + "offsetgroup": "Romania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 22276056 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Rwanda
continent=%{x}
pop=%{y}", + "legendgroup": "Rwanda", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Rwanda", + "offsetgroup": "Rwanda", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 8860588 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Sao Tome and Principe
continent=%{x}
pop=%{y}", + "legendgroup": "Sao Tome and Principe", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Sao Tome and Principe", + "offsetgroup": "Sao Tome and Principe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 199579 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Saudi Arabia
continent=%{x}
pop=%{y}", + "legendgroup": "Saudi Arabia", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Saudi Arabia", + "offsetgroup": "Saudi Arabia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 27601038 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Senegal
continent=%{x}
pop=%{y}", + "legendgroup": "Senegal", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Senegal", + "offsetgroup": "Senegal", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 12267493 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Serbia
continent=%{x}
pop=%{y}", + "legendgroup": "Serbia", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Serbia", + "offsetgroup": "Serbia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 10150265 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Sierra Leone
continent=%{x}
pop=%{y}", + "legendgroup": "Sierra Leone", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Sierra Leone", + "offsetgroup": "Sierra Leone", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 6144562 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Singapore
continent=%{x}
pop=%{y}", + "legendgroup": "Singapore", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Singapore", + "offsetgroup": "Singapore", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 4553009 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Slovak Republic
continent=%{x}
pop=%{y}", + "legendgroup": "Slovak Republic", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Slovak Republic", + "offsetgroup": "Slovak Republic", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 5447502 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Slovenia
continent=%{x}
pop=%{y}", + "legendgroup": "Slovenia", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Slovenia", + "offsetgroup": "Slovenia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 2009245 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Somalia
continent=%{x}
pop=%{y}", + "legendgroup": "Somalia", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Somalia", + "offsetgroup": "Somalia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 9118773 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=South Africa
continent=%{x}
pop=%{y}", + "legendgroup": "South Africa", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "South Africa", + "offsetgroup": "South Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 43997828 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Spain
continent=%{x}
pop=%{y}", + "legendgroup": "Spain", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Spain", + "offsetgroup": "Spain", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 40448191 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Sri Lanka
continent=%{x}
pop=%{y}", + "legendgroup": "Sri Lanka", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Sri Lanka", + "offsetgroup": "Sri Lanka", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 20378239 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Sudan
continent=%{x}
pop=%{y}", + "legendgroup": "Sudan", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Sudan", + "offsetgroup": "Sudan", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 42292929 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Swaziland
continent=%{x}
pop=%{y}", + "legendgroup": "Swaziland", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Swaziland", + "offsetgroup": "Swaziland", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 1133066 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Sweden
continent=%{x}
pop=%{y}", + "legendgroup": "Sweden", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Sweden", + "offsetgroup": "Sweden", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 9031088 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Switzerland
continent=%{x}
pop=%{y}", + "legendgroup": "Switzerland", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Switzerland", + "offsetgroup": "Switzerland", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 7554661 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Syria
continent=%{x}
pop=%{y}", + "legendgroup": "Syria", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Syria", + "offsetgroup": "Syria", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 19314747 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Taiwan
continent=%{x}
pop=%{y}", + "legendgroup": "Taiwan", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Taiwan", + "offsetgroup": "Taiwan", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 23174294 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Tanzania
continent=%{x}
pop=%{y}", + "legendgroup": "Tanzania", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Tanzania", + "offsetgroup": "Tanzania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 38139640 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Thailand
continent=%{x}
pop=%{y}", + "legendgroup": "Thailand", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Thailand", + "offsetgroup": "Thailand", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 65068149 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Togo
continent=%{x}
pop=%{y}", + "legendgroup": "Togo", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "Togo", + "offsetgroup": "Togo", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 5701579 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Trinidad and Tobago
continent=%{x}
pop=%{y}", + "legendgroup": "Trinidad and Tobago", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Trinidad and Tobago", + "offsetgroup": "Trinidad and Tobago", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 1056608 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Tunisia
continent=%{x}
pop=%{y}", + "legendgroup": "Tunisia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Tunisia", + "offsetgroup": "Tunisia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 10276158 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Turkey
continent=%{x}
pop=%{y}", + "legendgroup": "Turkey", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Turkey", + "offsetgroup": "Turkey", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 71158647 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Uganda
continent=%{x}
pop=%{y}", + "legendgroup": "Uganda", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Uganda", + "offsetgroup": "Uganda", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 29170398 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=United Kingdom
continent=%{x}
pop=%{y}", + "legendgroup": "United Kingdom", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "United Kingdom", + "offsetgroup": "United Kingdom", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe" + ], + "xaxis": "x", + "y": [ + 60776238 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=United States
continent=%{x}
pop=%{y}", + "legendgroup": "United States", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "United States", + "offsetgroup": "United States", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 301139947 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Uruguay
continent=%{x}
pop=%{y}", + "legendgroup": "Uruguay", + "marker": { + "color": "#19d3f3", + "pattern": { + "shape": "" + } + }, + "name": "Uruguay", + "offsetgroup": "Uruguay", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 3447496 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Venezuela
continent=%{x}
pop=%{y}", + "legendgroup": "Venezuela", + "marker": { + "color": "#FF6692", + "pattern": { + "shape": "" + } + }, + "name": "Venezuela", + "offsetgroup": "Venezuela", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas" + ], + "xaxis": "x", + "y": [ + 26084662 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Vietnam
continent=%{x}
pop=%{y}", + "legendgroup": "Vietnam", + "marker": { + "color": "#B6E880", + "pattern": { + "shape": "" + } + }, + "name": "Vietnam", + "offsetgroup": "Vietnam", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 85262356 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=West Bank and Gaza
continent=%{x}
pop=%{y}", + "legendgroup": "West Bank and Gaza", + "marker": { + "color": "#FF97FF", + "pattern": { + "shape": "" + } + }, + "name": "West Bank and Gaza", + "offsetgroup": "West Bank and Gaza", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 4018332 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Yemen, Rep.
continent=%{x}
pop=%{y}", + "legendgroup": "Yemen, Rep.", + "marker": { + "color": "#FECB52", + "pattern": { + "shape": "" + } + }, + "name": "Yemen, Rep.", + "offsetgroup": "Yemen, Rep.", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia" + ], + "xaxis": "x", + "y": [ + 22211743 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Zambia
continent=%{x}
pop=%{y}", + "legendgroup": "Zambia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Zambia", + "offsetgroup": "Zambia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 11746035 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "country=Zimbabwe
continent=%{x}
pop=%{y}", + "legendgroup": "Zimbabwe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Zimbabwe", + "offsetgroup": "Zimbabwe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa" + ], + "xaxis": "x", + "y": [ + 12311143 + ], + "yaxis": "y" + } + ], + "layout": { + "barmode": "relative", + "legend": { + "title": { + "text": "country" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "title": { + "text": "continent" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "pop" + }, + "type": "log" + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# stacked bar chart\n", + "# pop contribution per country to a continents pop stacked for a particular year(2007)\n", + "temp_df = gap[gap['year'] == 2007]\n", + "px.bar(\n", + " temp_df, x = 'continent', y = 'pop', \n", + " color='country', # color attribute gives you the abitity to perform multivariate analysis\n", + " log_y=True\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "mxrEQtHw7sy5", + "outputId": "8aa07fb3-5c2c-4aba-a4b0-5e984b621564" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1952
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 8425333, + 120447, + 46886859, + 4693836, + 556263527, + 2125900, + 372000000, + 82052000, + 17272000, + 5441766, + 1620914, + 86459025, + 607914, + 8865488, + 20947571, + 160000, + 1439529, + 6748378, + 800663, + 20092996, + 9182536, + 507833, + 41346560, + 22438691, + 4005677, + 1127000, + 7982342, + 3661549, + 8550362, + 21289402, + 26246839, + 1030585, + 4963829 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1952
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 1282697, + 6927772, + 8730405, + 2791000, + 7274900, + 3882229, + 9125183, + 4334000, + 4090500, + 42459667, + 69145952, + 7733250, + 9504000, + 147962, + 2952156, + 47666000, + 413834, + 10381988, + 3327728, + 25730551, + 8526050, + 16630000, + 6860147, + 3558137, + 1489518, + 28549870, + 7124673, + 4815000, + 22235677, + 50430000 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1952
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 9279525, + 4232095, + 1738315, + 442308, + 4469979, + 2445618, + 5009067, + 1291695, + 2682462, + 153936, + 14100005, + 854885, + 2977019, + 63149, + 22223309, + 216964, + 1438760, + 20860941, + 420702, + 284320, + 5581001, + 2664249, + 580653, + 6464046, + 748747, + 863308, + 1019729, + 4762912, + 2917802, + 3838168, + 1022556, + 516556, + 9939217, + 6446316, + 485831, + 3379468, + 33119096, + 257700, + 2534927, + 60011, + 2755589, + 2143249, + 2526994, + 14264935, + 8504667, + 290243, + 8322925, + 1219113, + 3647735, + 5824797, + 2672000, + 3080907 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1952
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 17876956, + 2883315, + 56602560, + 14785584, + 6377619, + 12350771, + 926317, + 6007797, + 2491346, + 3548753, + 2042865, + 3146381, + 3201488, + 1517453, + 1426095, + 30144317, + 1165790, + 940080, + 1555876, + 8025700, + 2227000, + 662850, + 157553000, + 2252965, + 5439568 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1952
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 8691212, + 1994794 + ], + "yaxis": "y" + } + ], + "frames": [ + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1952
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 8425333, + 120447, + 46886859, + 4693836, + 556263527, + 2125900, + 372000000, + 82052000, + 17272000, + 5441766, + 1620914, + 86459025, + 607914, + 8865488, + 20947571, + 160000, + 1439529, + 6748378, + 800663, + 20092996, + 9182536, + 507833, + 41346560, + 22438691, + 4005677, + 1127000, + 7982342, + 3661549, + 8550362, + 21289402, + 26246839, + 1030585, + 4963829 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1952
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 1282697, + 6927772, + 8730405, + 2791000, + 7274900, + 3882229, + 9125183, + 4334000, + 4090500, + 42459667, + 69145952, + 7733250, + 9504000, + 147962, + 2952156, + 47666000, + 413834, + 10381988, + 3327728, + 25730551, + 8526050, + 16630000, + 6860147, + 3558137, + 1489518, + 28549870, + 7124673, + 4815000, + 22235677, + 50430000 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1952
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 9279525, + 4232095, + 1738315, + 442308, + 4469979, + 2445618, + 5009067, + 1291695, + 2682462, + 153936, + 14100005, + 854885, + 2977019, + 63149, + 22223309, + 216964, + 1438760, + 20860941, + 420702, + 284320, + 5581001, + 2664249, + 580653, + 6464046, + 748747, + 863308, + 1019729, + 4762912, + 2917802, + 3838168, + 1022556, + 516556, + 9939217, + 6446316, + 485831, + 3379468, + 33119096, + 257700, + 2534927, + 60011, + 2755589, + 2143249, + 2526994, + 14264935, + 8504667, + 290243, + 8322925, + 1219113, + 3647735, + 5824797, + 2672000, + 3080907 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1952
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 17876956, + 2883315, + 56602560, + 14785584, + 6377619, + 12350771, + 926317, + 6007797, + 2491346, + 3548753, + 2042865, + 3146381, + 3201488, + 1517453, + 1426095, + 30144317, + 1165790, + 940080, + 1555876, + 8025700, + 2227000, + 662850, + 157553000, + 2252965, + 5439568 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1952
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 8691212, + 1994794 + ], + "yaxis": "y" + } + ], + "name": "1952" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1957
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 9240934, + 138655, + 51365468, + 5322536, + 637408000, + 2736300, + 409000000, + 90124000, + 19792000, + 6248643, + 1944401, + 91563009, + 746559, + 9411381, + 22611552, + 212846, + 1647412, + 7739235, + 882134, + 21731844, + 9682338, + 561977, + 46679944, + 26072194, + 4419650, + 1445929, + 9128546, + 4149908, + 10164215, + 25041917, + 28998543, + 1070439, + 5498090 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1957
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 1476505, + 6965860, + 8989111, + 3076000, + 7651254, + 3991242, + 9513758, + 4487831, + 4324000, + 44310863, + 71019069, + 8096218, + 9839000, + 165110, + 2878220, + 49182000, + 442829, + 11026383, + 3491938, + 28235346, + 8817650, + 17829327, + 7271135, + 3844277, + 1533070, + 29841614, + 7363802, + 5126000, + 25670939, + 51430000 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1957
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 10270856, + 4561361, + 1925173, + 474639, + 4713416, + 2667518, + 5359923, + 1392284, + 2894855, + 170928, + 15577932, + 940458, + 3300000, + 71851, + 25009741, + 232922, + 1542611, + 22815614, + 434904, + 323150, + 6391288, + 2876726, + 601095, + 7454779, + 813338, + 975950, + 1201578, + 5181679, + 3221238, + 4241884, + 1076852, + 609816, + 11406350, + 7038035, + 548080, + 3692184, + 37173340, + 308700, + 2822082, + 61325, + 3054547, + 2295678, + 2780415, + 16151549, + 9753392, + 326741, + 9452826, + 1357445, + 3950849, + 6675501, + 3016000, + 3646340 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1957
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 19610538, + 3211738, + 65551171, + 17010154, + 7048426, + 14485993, + 1112300, + 6640752, + 2923186, + 4058385, + 2355805, + 3640876, + 3507701, + 1770390, + 1535090, + 35015548, + 1358828, + 1063506, + 1770902, + 9146100, + 2260000, + 764900, + 171984000, + 2424959, + 6702668 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1957
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 9712569, + 2229407 + ], + "yaxis": "y" + } + ], + "name": "1957" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1962
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 10267083, + 171863, + 56839289, + 6083619, + 665770000, + 3305200, + 454000000, + 99028000, + 22874000, + 7240260, + 2310904, + 95831757, + 933559, + 10917494, + 26420307, + 358266, + 1886848, + 8906385, + 1010280, + 23634436, + 10332057, + 628164, + 53100671, + 30325264, + 4943029, + 1750200, + 10421936, + 4834621, + 11918938, + 29263397, + 33796140, + 1133134, + 6120081 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1962
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 1728137, + 7129864, + 9218400, + 3349000, + 8012946, + 4076557, + 9620282, + 4646899, + 4491443, + 47124000, + 73739117, + 8448233, + 10063000, + 182053, + 2830000, + 50843200, + 474528, + 11805689, + 3638919, + 30329617, + 9019800, + 18680721, + 7616060, + 4237384, + 1582962, + 31158061, + 7561588, + 5666000, + 29788695, + 53292000 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1962
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 11000948, + 4826015, + 2151895, + 512764, + 4919632, + 2961915, + 5793633, + 1523478, + 3150417, + 191689, + 17486434, + 1047924, + 3832408, + 89898, + 28173309, + 249220, + 1666618, + 25145372, + 455661, + 374020, + 7355248, + 3140003, + 627820, + 8678557, + 893143, + 1112796, + 1441863, + 5703324, + 3628608, + 4690372, + 1146757, + 701016, + 13056604, + 7788944, + 621392, + 4076008, + 41871351, + 358900, + 3051242, + 65345, + 3430243, + 2467895, + 3080153, + 18356657, + 11183227, + 370006, + 10863958, + 1528098, + 4286552, + 7688797, + 3421000, + 4277736 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1962
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 21283783, + 3593918, + 76039390, + 18985849, + 7961258, + 17009885, + 1345187, + 7254373, + 3453434, + 4681707, + 2747687, + 4208858, + 3880130, + 2090162, + 1665128, + 41121485, + 1590597, + 1215725, + 2009813, + 10516500, + 2448046, + 887498, + 186538000, + 2598466, + 8143375 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1962
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 10794968, + 2488550 + ], + "yaxis": "y" + } + ], + "name": "1962" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1967
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 11537966, + 202182, + 62821884, + 6960067, + 754550000, + 3722800, + 506000000, + 109343000, + 26538000, + 8519282, + 2693585, + 100825279, + 1255058, + 12617009, + 30131000, + 575003, + 2186894, + 10154878, + 1149500, + 25870271, + 11261690, + 714775, + 60641899, + 35356600, + 5618198, + 1977600, + 11737396, + 5680812, + 13648692, + 34024249, + 39463910, + 1142636, + 6740785 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1967
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 1984060, + 7376998, + 9556500, + 3585000, + 8310226, + 4174366, + 9835109, + 4838800, + 4605744, + 49569000, + 76368453, + 8716441, + 10223422, + 198676, + 2900100, + 52667100, + 501035, + 12596822, + 3786019, + 31785378, + 9103000, + 19284814, + 7971222, + 4442238, + 1646912, + 32850275, + 7867931, + 6063000, + 33411317, + 54959000 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1967
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 12760499, + 5247469, + 2427334, + 553541, + 5127935, + 3330989, + 6335506, + 1733638, + 3495967, + 217378, + 19941073, + 1179760, + 4744870, + 127617, + 31681188, + 259864, + 1820319, + 27860297, + 489004, + 439593, + 8490213, + 3451418, + 601287, + 10191512, + 996380, + 1279406, + 1759224, + 6334556, + 4147252, + 5212416, + 1230542, + 789309, + 14770296, + 8680909, + 706640, + 4534062, + 47287752, + 414024, + 3451079, + 70787, + 3965841, + 2662190, + 3428839, + 20997321, + 12716129, + 420690, + 12607312, + 1735550, + 4786986, + 8900294, + 3900000, + 4995432 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1967
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 22934225, + 4040665, + 88049823, + 20819767, + 8858908, + 19764027, + 1588717, + 8139332, + 4049146, + 5432424, + 3232927, + 4690773, + 4318137, + 2500689, + 1861096, + 47995559, + 1865490, + 1405486, + 2287985, + 12132200, + 2648961, + 960155, + 198712000, + 2748579, + 9709552 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1967
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 11872264, + 2728150 + ], + "yaxis": "y" + } + ], + "name": "1967" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1972
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 13079460, + 230800, + 70759295, + 7450606, + 862030000, + 4115700, + 567000000, + 121282000, + 30614000, + 10061506, + 3095893, + 107188273, + 1613551, + 14781241, + 33505000, + 841934, + 2680018, + 11441462, + 1320500, + 28466390, + 12412593, + 829050, + 69325921, + 40850141, + 6472756, + 2152400, + 13016733, + 6701172, + 15226039, + 39276153, + 44655014, + 1089572, + 7407075 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1972
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 2263554, + 7544201, + 9709100, + 3819000, + 8576200, + 4225310, + 9862158, + 4991596, + 4639657, + 51732000, + 78717088, + 8888628, + 10394091, + 209275, + 3024400, + 54365564, + 527678, + 13329874, + 3933004, + 33039545, + 8970450, + 20662648, + 8313288, + 4593433, + 1694510, + 34513161, + 8122293, + 6401400, + 37492953, + 56079000 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1972
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 14760787, + 5894858, + 2761407, + 619351, + 5433886, + 3529983, + 7021028, + 1927260, + 3899068, + 250027, + 23007669, + 1340458, + 6071696, + 178848, + 34807417, + 277603, + 2260187, + 30770372, + 537977, + 517101, + 9354120, + 3811387, + 625361, + 12044785, + 1116779, + 1482628, + 2183877, + 7082430, + 4730997, + 5828158, + 1332786, + 851334, + 16660670, + 9809596, + 821782, + 5060262, + 53740085, + 461633, + 3992121, + 76595, + 4588696, + 2879013, + 3840161, + 23935810, + 14597019, + 480105, + 14706593, + 2056351, + 5303507, + 10190285, + 4506497, + 5861135 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1972
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 24779799, + 4565872, + 100840058, + 22284500, + 9717524, + 22542890, + 1834796, + 8831348, + 4671329, + 6298651, + 3790903, + 5149581, + 4698301, + 2965146, + 1997616, + 55984294, + 2182908, + 1616384, + 2614104, + 13954700, + 2847132, + 975199, + 209896000, + 2829526, + 11515649 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1972
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 13177000, + 2929100 + ], + "yaxis": "y" + } + ], + "name": "1972" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1977
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 14880372, + 297410, + 80428306, + 6978607, + 943455000, + 4583700, + 634000000, + 136725000, + 35480679, + 11882916, + 3495918, + 113872473, + 1937652, + 16325320, + 36436000, + 1140357, + 3115787, + 12845381, + 1528000, + 31528087, + 13933198, + 1004533, + 78152686, + 46850962, + 8128505, + 2325300, + 14116836, + 7932503, + 16785196, + 44148285, + 50533506, + 1261091, + 8403990 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1977
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 2509048, + 7568430, + 9821800, + 4086000, + 8797022, + 4318673, + 10161915, + 5088419, + 4738902, + 53165019, + 78160773, + 9308479, + 10637171, + 221823, + 3271900, + 56059245, + 560073, + 13852989, + 4043205, + 34621254, + 9662600, + 21658597, + 8686367, + 4827803, + 1746919, + 36439000, + 8251648, + 6316424, + 42404033, + 56179000 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1977
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 17152804, + 6162675, + 3168267, + 781472, + 5889574, + 3834415, + 7959865, + 2167533, + 4388260, + 304739, + 26480870, + 1536769, + 7459574, + 228694, + 38783863, + 192675, + 2512642, + 34617799, + 706367, + 608274, + 10538093, + 4227026, + 745228, + 14500404, + 1251524, + 1703617, + 2721783, + 8007166, + 5637246, + 6491649, + 1456688, + 913025, + 18396941, + 11127868, + 977026, + 5682086, + 62209173, + 492095, + 4657072, + 86796, + 5260855, + 3140897, + 4353666, + 27129932, + 17104986, + 551425, + 17129565, + 2308582, + 6005061, + 11457758, + 5216550, + 6642107 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1977
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 26983828, + 5079716, + 114313951, + 23796400, + 10599793, + 25094412, + 2108457, + 9537988, + 5302800, + 7278866, + 4282586, + 5703430, + 4908554, + 3055235, + 2156814, + 63759976, + 2554598, + 1839782, + 2984494, + 15990099, + 3080828, + 1039009, + 220239000, + 2873520, + 13503563 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1977
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 14074100, + 3164900 + ], + "yaxis": "y" + } + ], + "name": "1977" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1982
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 12881816, + 377967, + 93074406, + 7272485, + 1000281000, + 5264500, + 708000000, + 153343000, + 43072751, + 14173318, + 3858421, + 118454974, + 2347031, + 17647518, + 39326000, + 1497494, + 3086876, + 14441916, + 1756032, + 34680442, + 15796314, + 1301048, + 91462088, + 53456774, + 11254672, + 2651869, + 15410151, + 9410494, + 18501390, + 48827160, + 56142181, + 1425876, + 9657618 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1982
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 2780097, + 7574613, + 9856303, + 4172693, + 8892098, + 4413368, + 10303704, + 5117810, + 4826933, + 54433565, + 78335266, + 9786480, + 10705535, + 233997, + 3480000, + 56535636, + 562548, + 14310401, + 4114787, + 36227381, + 9859650, + 22356726, + 9032824, + 5048043, + 1861252, + 37983310, + 8325260, + 6468126, + 47328791, + 56339704 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1982
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 20033753, + 7016384, + 3641603, + 970347, + 6634596, + 4580410, + 9250831, + 2476971, + 4875118, + 348643, + 30646495, + 1774735, + 9025951, + 305991, + 45681811, + 285483, + 2637297, + 38111756, + 753874, + 715523, + 11400338, + 4710497, + 825987, + 17661452, + 1411807, + 1956875, + 3344074, + 9171477, + 6502825, + 6998256, + 1622136, + 992040, + 20198730, + 12587223, + 1099010, + 6437188, + 73039376, + 517810, + 5507565, + 98593, + 6147783, + 3464522, + 5828892, + 31140029, + 20367053, + 649901, + 19844382, + 2644765, + 6734098, + 12939400, + 6100407, + 7636524 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1982
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 29341374, + 5642224, + 128962939, + 25201900, + 11487112, + 27764644, + 2424367, + 9789224, + 5968349, + 8365850, + 4474873, + 6395630, + 5198399, + 3669448, + 2298309, + 71640904, + 2979423, + 2036305, + 3366439, + 18125129, + 3279001, + 1116479, + 232187835, + 2953997, + 15620766 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1982
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 15184200, + 3210650 + ], + "yaxis": "y" + } + ], + "name": "1982" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1987
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 13867957, + 454612, + 103764241, + 8371791, + 1084035000, + 5584510, + 788000000, + 169276000, + 51889696, + 16543189, + 4203148, + 122091325, + 2820042, + 19067554, + 41622000, + 1891487, + 3089353, + 16331785, + 2015133, + 38028578, + 17917180, + 1593882, + 105186881, + 60017788, + 14619745, + 2794552, + 16495304, + 11242847, + 19757799, + 52910342, + 62826491, + 1691210, + 11219340 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1987
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 3075321, + 7578903, + 9870200, + 4338977, + 8971958, + 4484310, + 10311597, + 5127024, + 4931729, + 55630100, + 77718298, + 9974490, + 10612740, + 244676, + 3539900, + 56729703, + 569473, + 14665278, + 4186147, + 37740710, + 9915289, + 22686371, + 9230783, + 5199318, + 1945870, + 38880702, + 8421403, + 6649942, + 52881328, + 56981620 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1987
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 23254956, + 7874230, + 4243788, + 1151184, + 7586551, + 5126023, + 10780667, + 2840009, + 5498955, + 395114, + 35481645, + 2064095, + 10761098, + 311025, + 52799062, + 341244, + 2915959, + 42999530, + 880397, + 848406, + 14168101, + 5650262, + 927524, + 21198082, + 1599200, + 2269414, + 3799845, + 10568642, + 7824747, + 7634008, + 1841240, + 1042663, + 22987397, + 12891952, + 1278184, + 7332638, + 81551520, + 562035, + 6349365, + 110812, + 7171347, + 3868905, + 6921858, + 35933379, + 24725960, + 779348, + 23040630, + 3154264, + 7724976, + 15283050, + 7272406, + 9216418 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1987
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 31620918, + 6156369, + 142938076, + 26549700, + 12463354, + 30964245, + 2799811, + 10239839, + 6655297, + 9545158, + 4842194, + 7326406, + 5756203, + 4372203, + 2326606, + 80122492, + 3344353, + 2253639, + 3886512, + 20195924, + 3444468, + 1191336, + 242803533, + 3045153, + 17910182 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1987
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 16257249, + 3317166 + ], + "yaxis": "y" + } + ], + "name": "1987" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1992
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 16317921, + 529491, + 113704579, + 10150094, + 1164970000, + 5829696, + 872000000, + 184816000, + 60397973, + 17861905, + 4936550, + 124329269, + 3867409, + 20711375, + 43805450, + 1418095, + 3219994, + 18319502, + 2312802, + 40546538, + 20326209, + 1915208, + 120065004, + 67185766, + 16945857, + 3235865, + 17587060, + 13219062, + 20686918, + 56667095, + 69940728, + 2104779, + 13367997 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1992
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 3326498, + 7914969, + 10045622, + 4256013, + 8658506, + 4494013, + 10315702, + 5171393, + 5041039, + 57374179, + 80597764, + 10325429, + 10348684, + 259012, + 3557761, + 56840847, + 621621, + 15174244, + 4286357, + 38370697, + 9927680, + 22797027, + 9826397, + 5302888, + 1999210, + 39549438, + 8718867, + 6995447, + 58179144, + 57866349 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1992
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 26298373, + 8735988, + 4981671, + 1342614, + 8878303, + 5809236, + 12467171, + 3265124, + 6429417, + 454429, + 41672143, + 2409073, + 12772596, + 384156, + 59402198, + 387838, + 3668440, + 52088559, + 985739, + 1025384, + 16278738, + 6990574, + 1050938, + 25020539, + 1803195, + 1912974, + 4364501, + 12210395, + 10014249, + 8416215, + 2119465, + 1096202, + 25798239, + 13160731, + 1554253, + 8392818, + 93364244, + 622191, + 7290203, + 125911, + 8307920, + 4260884, + 6099799, + 39964159, + 28227588, + 962344, + 26605473, + 3747553, + 8523077, + 18252190, + 8381163, + 10704340 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1992
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 33958947, + 6893451, + 155975974, + 28523502, + 13572994, + 34202721, + 3173216, + 10723260, + 7351181, + 10748394, + 5274649, + 8486949, + 6326682, + 5077347, + 2378618, + 88111030, + 4017939, + 2484997, + 4483945, + 22430449, + 3585176, + 1183669, + 256894189, + 3149262, + 20265563 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1992
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 17481977, + 3437674 + ], + "yaxis": "y" + } + ], + "name": "1992" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1997
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 22227415, + 598561, + 123315288, + 11782962, + 1230075000, + 6495918, + 959000000, + 199278000, + 63327987, + 20775703, + 5531387, + 125956499, + 4526235, + 21585105, + 46173816, + 1765345, + 3430388, + 20476091, + 2494803, + 43247867, + 23001113, + 2283635, + 135564834, + 75012988, + 21229759, + 3802309, + 18698655, + 15081016, + 21628605, + 60216677, + 76048996, + 2826046, + 15826497 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1997
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 3428038, + 8069876, + 10199787, + 3607000, + 8066057, + 4444595, + 10300707, + 5283663, + 5134406, + 58623428, + 82011073, + 10502372, + 10244684, + 271192, + 3667233, + 57479469, + 692651, + 15604464, + 4405672, + 38654957, + 10156415, + 22562458, + 10336594, + 5383010, + 2011612, + 39855442, + 8897619, + 7193761, + 63047647, + 58808266 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1997
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 29072015, + 9875024, + 6066080, + 1536536, + 10352843, + 6121610, + 14195809, + 3696513, + 7562011, + 527982, + 47798986, + 2800947, + 14625967, + 417908, + 66134291, + 439971, + 4058319, + 59861301, + 1126189, + 1235767, + 18418288, + 8048834, + 1193708, + 28263827, + 1982823, + 2200725, + 4759670, + 14165114, + 10419991, + 9384984, + 2444741, + 1149818, + 28529501, + 16603334, + 1774766, + 9666252, + 106207839, + 684810, + 7212583, + 145608, + 9535314, + 4578212, + 6633514, + 42835005, + 32160729, + 1054486, + 30686889, + 4320890, + 9231669, + 21210254, + 9417789, + 11404948 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1997
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 36203463, + 7693188, + 168546719, + 30305843, + 14599929, + 37657830, + 3518107, + 10983007, + 7992357, + 11911819, + 5783439, + 9803875, + 6913545, + 5867957, + 2531311, + 95895146, + 4609572, + 2734531, + 5154123, + 24748122, + 3759430, + 1138101, + 272911760, + 3262838, + 22374398 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=1997
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 18565243, + 3676187 + ], + "yaxis": "y" + } + ], + "name": "1997" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=2002
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 25268405, + 656397, + 135656790, + 12926707, + 1280400000, + 6762476, + 1034172547, + 211060000, + 66907826, + 24001816, + 6029529, + 127065841, + 5307470, + 22215365, + 47969150, + 2111561, + 3677780, + 22662365, + 2674234, + 45598081, + 25873917, + 2713462, + 153403524, + 82995088, + 24501530, + 4197776, + 19576783, + 17155814, + 22454239, + 62806748, + 80908147, + 3389578, + 18701257 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=2002
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 3508512, + 8148312, + 10311970, + 4165416, + 7661799, + 4481020, + 10256295, + 5374693, + 5193039, + 59925035, + 82350671, + 10603863, + 10083313, + 288030, + 3879155, + 57926999, + 720230, + 16122830, + 4535591, + 38625976, + 10433867, + 22404337, + 10111559, + 5410052, + 2011497, + 40152517, + 8954175, + 7361757, + 67308928, + 59912431 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=2002
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 31287142, + 10866106, + 7026113, + 1630347, + 12251209, + 7021078, + 15929988, + 4048013, + 8835739, + 614382, + 55379852, + 3328795, + 16252726, + 447416, + 73312559, + 495627, + 4414865, + 67946797, + 1299304, + 1457766, + 20550751, + 8807818, + 1332459, + 31386842, + 2046772, + 2814651, + 5368585, + 16473477, + 11824495, + 10580176, + 2828858, + 1200206, + 31167783, + 18473780, + 1972153, + 11140655, + 119901274, + 743981, + 7852401, + 170372, + 10870037, + 5359092, + 7753310, + 44433622, + 37090298, + 1130269, + 34593779, + 4977378, + 9770575, + 24739869, + 10595811, + 11926563 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=2002
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 38331121, + 8445134, + 179914212, + 31902268, + 15497046, + 41008227, + 3834934, + 11226999, + 8650322, + 12921234, + 6353681, + 11178650, + 7607651, + 6677328, + 2664659, + 102479927, + 5146848, + 2990875, + 5884491, + 26769436, + 3859606, + 1101832, + 287675526, + 3363085, + 24287670 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=2002
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 19546792, + 3908037 + ], + "yaxis": "y" + } + ], + "name": "2002" + }, + { + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=2007
pop=%{y}", + "ids": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "Asia", + "offsetgroup": "Asia", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia", + "Asia" + ], + "xaxis": "x", + "y": [ + 31889923, + 708573, + 150448339, + 14131858, + 1318683096, + 6980412, + 1110396331, + 223547000, + 69453570, + 27499638, + 6426679, + 127467972, + 6053193, + 23301725, + 49044790, + 2505559, + 3921278, + 24821286, + 2874127, + 47761980, + 28901790, + 3204897, + 169270617, + 91077287, + 27601038, + 4553009, + 20378239, + 19314747, + 23174294, + 65068149, + 85262356, + 4018332, + 22211743 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=2007
pop=%{y}", + "ids": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "Europe", + "offsetgroup": "Europe", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe", + "Europe" + ], + "xaxis": "x", + "y": [ + 3600523, + 8199783, + 10392226, + 4552198, + 7322858, + 4493312, + 10228744, + 5468120, + 5238460, + 61083916, + 82400996, + 10706290, + 9956108, + 301931, + 4109086, + 58147733, + 684736, + 16570613, + 4627926, + 38518241, + 10642836, + 22276056, + 10150265, + 5447502, + 2009245, + 40448191, + 9031088, + 7554661, + 71158647, + 60776238 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=2007
pop=%{y}", + "ids": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "Africa", + "offsetgroup": "Africa", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa" + ], + "xaxis": "x", + "y": [ + 33333216, + 12420476, + 8078314, + 1639131, + 14326203, + 8390505, + 17696293, + 4369038, + 10238807, + 710960, + 64606759, + 3800610, + 18013409, + 496374, + 80264543, + 551201, + 4906585, + 76511887, + 1454867, + 1688359, + 22873338, + 9947814, + 1472041, + 35610177, + 2012649, + 3193942, + 6036914, + 19167654, + 13327079, + 12031795, + 3270065, + 1250882, + 33757175, + 19951656, + 2055080, + 12894865, + 135031164, + 798094, + 8860588, + 199579, + 12267493, + 6144562, + 9118773, + 43997828, + 42292929, + 1133066, + 38139640, + 5701579, + 10276158, + 29170398, + 11746035, + 12311143 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=2007
pop=%{y}", + "ids": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "pattern": { + "shape": "" + } + }, + "name": "Americas", + "offsetgroup": "Americas", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas", + "Americas" + ], + "xaxis": "x", + "y": [ + 40301927, + 9119152, + 190010647, + 33390141, + 16284741, + 44227550, + 4133884, + 11416987, + 9319622, + 13755680, + 6939688, + 12572928, + 8502814, + 7483763, + 2780132, + 108700891, + 5675356, + 3242173, + 6667147, + 28674757, + 3942491, + 1056608, + 301139947, + 3447496, + 26084662 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "continent=%{x}
year=2007
pop=%{y}", + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "pattern": { + "shape": "" + } + }, + "name": "Oceania", + "offsetgroup": "Oceania", + "orientation": "v", + "showlegend": true, + "textposition": "auto", + "type": "bar", + "x": [ + "Oceania", + "Oceania" + ], + "xaxis": "x", + "y": [ + 20434176, + 4115771 + ], + "yaxis": "y" + } + ], + "name": "2007" + } + ], + "layout": { + "barmode": "relative", + "legend": { + "title": { + "text": "continent" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "sliders": [ + { + "active": 0, + "currentvalue": { + "prefix": "year=" + }, + "len": 0.9, + "pad": { + "b": 10, + "t": 60 + }, + "steps": [ + { + "args": [ + [ + "1952" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1952", + "method": "animate" + }, + { + "args": [ + [ + "1957" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1957", + "method": "animate" + }, + { + "args": [ + [ + "1962" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1962", + "method": "animate" + }, + { + "args": [ + [ + "1967" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1967", + "method": "animate" + }, + { + "args": [ + [ + "1972" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1972", + "method": "animate" + }, + { + "args": [ + [ + "1977" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1977", + "method": "animate" + }, + { + "args": [ + [ + "1982" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1982", + "method": "animate" + }, + { + "args": [ + [ + "1987" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1987", + "method": "animate" + }, + { + "args": [ + [ + "1992" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1992", + "method": "animate" + }, + { + "args": [ + [ + "1997" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "1997", + "method": "animate" + }, + { + "args": [ + [ + "2002" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "2002", + "method": "animate" + }, + { + "args": [ + [ + "2007" + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "2007", + "method": "animate" + } + ], + "x": 0.1, + "xanchor": "left", + "y": 0, + "yanchor": "top" + } + ], + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "updatemenus": [ + { + "buttons": [ + { + "args": [ + null, + { + "frame": { + "duration": 500, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 500, + "easing": "linear" + } + } + ], + "label": "▶", + "method": "animate" + }, + { + "args": [ + [ + null + ], + { + "frame": { + "duration": 0, + "redraw": true + }, + "fromcurrent": true, + "mode": "immediate", + "transition": { + "duration": 0, + "easing": "linear" + } + } + ], + "label": "◼", + "method": "animate" + } + ], + "direction": "left", + "pad": { + "r": 10, + "t": 70 + }, + "showactive": false, + "type": "buttons", + "x": 0.1, + "xanchor": "right", + "y": 0, + "yanchor": "top" + } + ], + "xaxis": { + "anchor": "y", + "categoryarray": [ + "Asia", + "Europe", + "Africa", + "Americas", + "Oceania" + ], + "categoryorder": "array", + "domain": [ + 0, + 1 + ], + "title": { + "text": "continent" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "range": [ + 0, + 4000000000 + ], + "title": { + "text": "pop" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# bar chart animation\n", + "px.bar(\n", + " gap, x='continent', y='pop', \n", + " color='continent',\n", + " animation_frame='year',\n", + " animation_group='country', # The repeating category along the value of animation frame (imp to mention as well)\n", + " range_y=[0,4000000000]\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "WmSY1qkw_pPY", + "outputId": "dd5fe80c-b187-4e99-9444-512ebd03c6a7" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "lifeExp=%{x}
count=%{y}", + "legendgroup": "", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "", + "nbinsx": 10, + "offsetgroup": "", + "orientation": "v", + "showlegend": false, + "texttemplate": "%{value}", + "type": "histogram", + "x": [ + 43.828, + 76.423, + 72.301, + 42.731, + 75.32, + 81.235, + 79.829, + 75.635, + 64.062, + 79.441, + 56.728, + 65.554, + 74.852, + 50.728, + 72.39, + 73.005, + 52.295, + 49.58, + 59.723, + 50.43, + 80.653, + 44.74100000000001, + 50.651, + 78.553, + 72.961, + 72.889, + 65.152, + 46.462, + 55.322, + 78.782, + 48.328, + 75.748, + 78.273, + 76.486, + 78.332, + 54.791, + 72.235, + 74.994, + 71.33800000000002, + 71.878, + 51.57899999999999, + 58.04, + 52.947, + 79.313, + 80.657, + 56.735, + 59.448, + 79.406, + 60.022, + 79.483, + 70.259, + 56.007, + 46.38800000000001, + 60.916, + 70.19800000000001, + 82.208, + 73.33800000000002, + 81.757, + 64.69800000000001, + 70.65, + 70.964, + 59.545, + 78.885, + 80.745, + 80.546, + 72.567, + 82.603, + 72.535, + 54.11, + 67.297, + 78.623, + 77.58800000000002, + 71.993, + 42.592, + 45.678, + 73.952, + 59.44300000000001, + 48.303, + 74.241, + 54.467, + 64.164, + 72.801, + 76.195, + 66.803, + 74.543, + 71.164, + 42.082, + 62.069, + 52.90600000000001, + 63.785, + 79.762, + 80.204, + 72.899, + 56.867, + 46.859, + 80.196, + 75.64, + 65.483, + 75.53699999999998, + 71.752, + 71.421, + 71.688, + 75.563, + 78.098, + 78.74600000000002, + 76.442, + 72.476, + 46.242, + 65.528, + 72.777, + 63.062, + 74.002, + 42.56800000000001, + 79.972, + 74.663, + 77.926, + 48.159, + 49.339, + 80.941, + 72.396, + 58.556, + 39.613, + 80.884, + 81.70100000000002, + 74.143, + 78.4, + 52.517, + 70.616, + 58.42, + 69.819, + 73.923, + 71.777, + 51.542, + 79.425, + 78.242, + 76.384, + 73.747, + 74.249, + 73.422, + 62.698, + 42.38399999999999, + 43.487 + ], + "xaxis": "x", + "yaxis": "y" + } + ], + "layout": { + "barmode": "relative", + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "title": { + "text": "lifeExp" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "count" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# histogram\n", + "# plot histogram of life expt of all countries in 2007 -> nbins -> text_auto\n", + "temp_df = gap[gap['year'] == 2007]\n", + "px.histogram(temp_df, x='lifeExp',nbins=10,text_auto=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "9Pl7JzflC4-C", + "outputId": "cde505cb-0b06-4591-e4e9-869fd682670b" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "species=setosa
sepal_length=%{x}
count=%{y}", + "legendgroup": "setosa", + "marker": { + "color": "#636efa", + "pattern": { + "shape": "" + } + }, + "name": "setosa", + "nbinsx": 30, + "offsetgroup": "setosa", + "orientation": "v", + "showlegend": true, + "texttemplate": "%{value}", + "type": "histogram", + "x": [ + 5.1, + 4.9, + 4.7, + 4.6, + 5, + 5.4, + 4.6, + 5, + 4.4, + 4.9, + 5.4, + 4.8, + 4.8, + 4.3, + 5.8, + 5.7, + 5.4, + 5.1, + 5.7, + 5.1, + 5.4, + 5.1, + 4.6, + 5.1, + 4.8, + 5, + 5, + 5.2, + 5.2, + 4.7, + 4.8, + 5.4, + 5.2, + 5.5, + 4.9, + 5, + 5.5, + 4.9, + 4.4, + 5.1, + 5, + 4.5, + 4.4, + 5, + 5.1, + 4.8, + 5.1, + 4.6, + 5.3, + 5 + ], + "xaxis": "x", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "species=versicolor
sepal_length=%{x}
count=%{y}", + "legendgroup": "versicolor", + "marker": { + "color": "#EF553B", + "pattern": { + "shape": "" + } + }, + "name": "versicolor", + "nbinsx": 30, + "offsetgroup": "versicolor", + "orientation": "v", + "showlegend": true, + "texttemplate": "%{value}", + "type": "histogram", + "x": [ + 7, + 6.4, + 6.9, + 5.5, + 6.5, + 5.7, + 6.3, + 4.9, + 6.6, + 5.2, + 5, + 5.9, + 6, + 6.1, + 5.6, + 6.7, + 5.6, + 5.8, + 6.2, + 5.6, + 5.9, + 6.1, + 6.3, + 6.1, + 6.4, + 6.6, + 6.8, + 6.7, + 6, + 5.7, + 5.5, + 5.5, + 5.8, + 6, + 5.4, + 6, + 6.7, + 6.3, + 5.6, + 5.5, + 5.5, + 6.1, + 5.8, + 5, + 5.6, + 5.7, + 5.7, + 6.2, + 5.1, + 5.7 + ], + "xaxis": "x", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "species=virginica
sepal_length=%{x}
count=%{y}", + "legendgroup": "virginica", + "marker": { + "color": "#00cc96", + "pattern": { + "shape": "" + } + }, + "name": "virginica", + "nbinsx": 30, + "offsetgroup": "virginica", + "orientation": "v", + "showlegend": true, + "texttemplate": "%{value}", + "type": "histogram", + "x": [ + 6.3, + 5.8, + 7.1, + 6.3, + 6.5, + 7.6, + 4.9, + 7.3, + 6.7, + 7.2, + 6.5, + 6.4, + 6.8, + 5.7, + 5.8, + 6.4, + 6.5, + 7.7, + 7.7, + 6, + 6.9, + 5.6, + 7.7, + 6.3, + 6.7, + 7.2, + 6.2, + 6.1, + 6.4, + 7.2, + 7.4, + 7.9, + 6.4, + 6.3, + 6.1, + 7.7, + 6.3, + 6.4, + 6, + 6.9, + 6.7, + 6.9, + 5.8, + 6.8, + 6.7, + 6.7, + 6.3, + 6.5, + 6.2, + 5.9 + ], + "xaxis": "x", + "yaxis": "y" + } + ], + "layout": { + "barmode": "relative", + "legend": { + "title": { + "text": "species" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "title": { + "text": "sepal_length" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "count" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# plot histogram of sepal length of all iris species\n", + "px.histogram(iris,x='sepal_length',color='species',nbins=30,text_auto=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "C4-xHbPJBuR2", + "outputId": "1b578ca8-8e68-49ec-a739-8152a8ad8494" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "hovertemplate": "country=%{label}
pop=%{value}", + "labels": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "", + "name": "", + "showlegend": true, + "type": "pie", + "values": [ + 3600523, + 8199783, + 10392226, + 4552198, + 7322858, + 4493312, + 10228744, + 5468120, + 5238460, + 61083916, + 82400996, + 10706290, + 9956108, + 301931, + 4109086, + 58147733, + 684736, + 16570613, + 4627926, + 38518241, + 10642836, + 22276056, + 10150265, + 5447502, + 2009245, + 40448191, + 9031088, + 7554661, + 71158647, + 60776238 + ] + } + ], + "layout": { + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Pie -> values -> names\n", + "# find the pie chart of pop of european countries in 2007\n", + "temp_df = gap[(gap['year'] == 2007) & (gap['continent'] == 'Europe')]\n", + "px.pie(temp_df, values='pop', names='country')" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 201 + }, + "id": "mipwi9ZPFE5T", + "outputId": "96bfa626-52af-4ab1-caa7-9f9595090007" + }, + "outputs": [], + "source": [ + "# plot pie chart of world pop in 1952 continent wise -> -> explode(pull)\n", + "# This is not done using plotly express" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "VmsOxYAQO1wV", + "outputId": "7680b2d5-c0d6-4532-a47c-74096c426169" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "branchvalues": "total", + "customdata": [ + [ + 43.828 + ], + [ + 76.423 + ], + [ + 72.301 + ], + [ + 42.731 + ], + [ + 75.32 + ], + [ + 81.235 + ], + [ + 79.829 + ], + [ + 75.635 + ], + [ + 64.062 + ], + [ + 79.441 + ], + [ + 56.728 + ], + [ + 65.554 + ], + [ + 74.852 + ], + [ + 50.728 + ], + [ + 72.39 + ], + [ + 73.005 + ], + [ + 52.295 + ], + [ + 49.58 + ], + [ + 59.723 + ], + [ + 50.43 + ], + [ + 80.65300000000002 + ], + [ + 44.74100000000001 + ], + [ + 50.651 + ], + [ + 78.553 + ], + [ + 72.961 + ], + [ + 72.889 + ], + [ + 65.152 + ], + [ + 46.462 + ], + [ + 55.322 + ], + [ + 78.782 + ], + [ + 48.328 + ], + [ + 75.748 + ], + [ + 78.273 + ], + [ + 76.486 + ], + [ + 78.332 + ], + [ + 54.791 + ], + [ + 72.235 + ], + [ + 74.994 + ], + [ + 71.33800000000002 + ], + [ + 71.878 + ], + [ + 51.57899999999999 + ], + [ + 58.03999999999999 + ], + [ + 52.947 + ], + [ + 79.313 + ], + [ + 80.65699999999998 + ], + [ + 56.73500000000001 + ], + [ + 59.448 + ], + [ + 79.406 + ], + [ + 60.02199999999999 + ], + [ + 79.483 + ], + [ + 70.259 + ], + [ + 56.007 + ], + [ + 46.38800000000001 + ], + [ + 60.916 + ], + [ + 70.19800000000001 + ], + [ + 82.208 + ], + [ + 73.33800000000002 + ], + [ + 81.757 + ], + [ + 64.69800000000001 + ], + [ + 70.65 + ], + [ + 70.964 + ], + [ + 59.545 + ], + [ + 78.885 + ], + [ + 80.745 + ], + [ + 80.546 + ], + [ + 72.567 + ], + [ + 82.603 + ], + [ + 72.535 + ], + [ + 54.11 + ], + [ + 67.297 + ], + [ + 78.623 + ], + [ + 77.58800000000002 + ], + [ + 71.993 + ], + [ + 42.592 + ], + [ + 45.678 + ], + [ + 73.952 + ], + [ + 59.443000000000005 + ], + [ + 48.303 + ], + [ + 74.241 + ], + [ + 54.467 + ], + [ + 64.164 + ], + [ + 72.801 + ], + [ + 76.195 + ], + [ + 66.803 + ], + [ + 74.543 + ], + [ + 71.164 + ], + [ + 42.082 + ], + [ + 62.06900000000001 + ], + [ + 52.90600000000001 + ], + [ + 63.785 + ], + [ + 79.762 + ], + [ + 80.204 + ], + [ + 72.899 + ], + [ + 56.867 + ], + [ + 46.859 + ], + [ + 80.196 + ], + [ + 75.64 + ], + [ + 65.483 + ], + [ + 75.53699999999998 + ], + [ + 71.752 + ], + [ + 71.421 + ], + [ + 71.688 + ], + [ + 75.563 + ], + [ + 78.098 + ], + [ + 78.74600000000002 + ], + [ + 76.442 + ], + [ + 72.476 + ], + [ + 46.242 + ], + [ + 65.528 + ], + [ + 72.777 + ], + [ + 63.062 + ], + [ + 74.002 + ], + [ + 42.56800000000001 + ], + [ + 79.972 + ], + [ + 74.663 + ], + [ + 77.926 + ], + [ + 48.159 + ], + [ + 49.339 + ], + [ + 80.941 + ], + [ + 72.396 + ], + [ + 58.55599999999999 + ], + [ + 39.613 + ], + [ + 80.884 + ], + [ + 81.70100000000002 + ], + [ + 74.143 + ], + [ + 78.4 + ], + [ + 52.517 + ], + [ + 70.616 + ], + [ + 58.42 + ], + [ + 69.819 + ], + [ + 73.923 + ], + [ + 71.777 + ], + [ + 51.542 + ], + [ + 79.425 + ], + [ + 78.242 + ], + [ + 76.384 + ], + [ + 73.747 + ], + [ + 74.249 + ], + [ + 73.422 + ], + [ + 62.698 + ], + [ + 42.38399999999999 + ], + [ + 43.487 + ], + [ + 54.56441057558197 + ], + [ + 75.35668222743027 + ], + [ + 69.44386304205017 + ], + [ + 77.89057081069897 + ], + [ + 81.06215400970112 + ] + ], + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "hovertemplate": "labels=%{label}
pop=%{value}
parent=%{parent}
id=%{id}
lifeExp=%{color}", + "ids": [ + "Asia/Afghanistan", + "Europe/Albania", + "Africa/Algeria", + "Africa/Angola", + "Americas/Argentina", + "Oceania/Australia", + "Europe/Austria", + "Asia/Bahrain", + "Asia/Bangladesh", + "Europe/Belgium", + "Africa/Benin", + "Americas/Bolivia", + "Europe/Bosnia and Herzegovina", + "Africa/Botswana", + "Americas/Brazil", + "Europe/Bulgaria", + "Africa/Burkina Faso", + "Africa/Burundi", + "Asia/Cambodia", + "Africa/Cameroon", + "Americas/Canada", + "Africa/Central African Republic", + "Africa/Chad", + "Americas/Chile", + "Asia/China", + "Americas/Colombia", + "Africa/Comoros", + "Africa/Congo, Dem. Rep.", + "Africa/Congo, Rep.", + "Americas/Costa Rica", + "Africa/Cote d'Ivoire", + "Europe/Croatia", + "Americas/Cuba", + "Europe/Czech Republic", + "Europe/Denmark", + "Africa/Djibouti", + "Americas/Dominican Republic", + "Americas/Ecuador", + "Africa/Egypt", + "Americas/El Salvador", + "Africa/Equatorial Guinea", + "Africa/Eritrea", + "Africa/Ethiopia", + "Europe/Finland", + "Europe/France", + "Africa/Gabon", + "Africa/Gambia", + "Europe/Germany", + "Africa/Ghana", + "Europe/Greece", + "Americas/Guatemala", + "Africa/Guinea", + "Africa/Guinea-Bissau", + "Americas/Haiti", + "Americas/Honduras", + "Asia/Hong Kong, China", + "Europe/Hungary", + "Europe/Iceland", + "Asia/India", + "Asia/Indonesia", + "Asia/Iran", + "Asia/Iraq", + "Europe/Ireland", + "Asia/Israel", + "Europe/Italy", + "Americas/Jamaica", + "Asia/Japan", + "Asia/Jordan", + "Africa/Kenya", + "Asia/Korea, Dem. Rep.", + "Asia/Korea, Rep.", + "Asia/Kuwait", + "Asia/Lebanon", + "Africa/Lesotho", + "Africa/Liberia", + "Africa/Libya", + "Africa/Madagascar", + "Africa/Malawi", + "Asia/Malaysia", + "Africa/Mali", + "Africa/Mauritania", + "Africa/Mauritius", + "Americas/Mexico", + "Asia/Mongolia", + "Europe/Montenegro", + "Africa/Morocco", + "Africa/Mozambique", + "Asia/Myanmar", + "Africa/Namibia", + "Asia/Nepal", + "Europe/Netherlands", + "Oceania/New Zealand", + "Americas/Nicaragua", + "Africa/Niger", + "Africa/Nigeria", + "Europe/Norway", + "Asia/Oman", + "Asia/Pakistan", + "Americas/Panama", + "Americas/Paraguay", + "Americas/Peru", + "Asia/Philippines", + "Europe/Poland", + "Europe/Portugal", + "Americas/Puerto Rico", + "Africa/Reunion", + "Europe/Romania", + "Africa/Rwanda", + "Africa/Sao Tome and Principe", + "Asia/Saudi Arabia", + "Africa/Senegal", + "Europe/Serbia", + "Africa/Sierra Leone", + "Asia/Singapore", + "Europe/Slovak Republic", + "Europe/Slovenia", + "Africa/Somalia", + "Africa/South Africa", + "Europe/Spain", + "Asia/Sri Lanka", + "Africa/Sudan", + "Africa/Swaziland", + "Europe/Sweden", + "Europe/Switzerland", + "Asia/Syria", + "Asia/Taiwan", + "Africa/Tanzania", + "Asia/Thailand", + "Africa/Togo", + "Americas/Trinidad and Tobago", + "Africa/Tunisia", + "Europe/Turkey", + "Africa/Uganda", + "Europe/United Kingdom", + "Americas/United States", + "Americas/Uruguay", + "Americas/Venezuela", + "Asia/Vietnam", + "Asia/West Bank and Gaza", + "Asia/Yemen, Rep.", + "Africa/Zambia", + "Africa/Zimbabwe", + "Africa", + "Americas", + "Asia", + "Europe", + "Oceania" + ], + "labels": [ + "Afghanistan", + "Albania", + "Algeria", + "Angola", + "Argentina", + "Australia", + "Austria", + "Bahrain", + "Bangladesh", + "Belgium", + "Benin", + "Bolivia", + "Bosnia and Herzegovina", + "Botswana", + "Brazil", + "Bulgaria", + "Burkina Faso", + "Burundi", + "Cambodia", + "Cameroon", + "Canada", + "Central African Republic", + "Chad", + "Chile", + "China", + "Colombia", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Costa Rica", + "Cote d'Ivoire", + "Croatia", + "Cuba", + "Czech Republic", + "Denmark", + "Djibouti", + "Dominican Republic", + "Ecuador", + "Egypt", + "El Salvador", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Finland", + "France", + "Gabon", + "Gambia", + "Germany", + "Ghana", + "Greece", + "Guatemala", + "Guinea", + "Guinea-Bissau", + "Haiti", + "Honduras", + "Hong Kong, China", + "Hungary", + "Iceland", + "India", + "Indonesia", + "Iran", + "Iraq", + "Ireland", + "Israel", + "Italy", + "Jamaica", + "Japan", + "Jordan", + "Kenya", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Malaysia", + "Mali", + "Mauritania", + "Mauritius", + "Mexico", + "Mongolia", + "Montenegro", + "Morocco", + "Mozambique", + "Myanmar", + "Namibia", + "Nepal", + "Netherlands", + "New Zealand", + "Nicaragua", + "Niger", + "Nigeria", + "Norway", + "Oman", + "Pakistan", + "Panama", + "Paraguay", + "Peru", + "Philippines", + "Poland", + "Portugal", + "Puerto Rico", + "Reunion", + "Romania", + "Rwanda", + "Sao Tome and Principe", + "Saudi Arabia", + "Senegal", + "Serbia", + "Sierra Leone", + "Singapore", + "Slovak Republic", + "Slovenia", + "Somalia", + "South Africa", + "Spain", + "Sri Lanka", + "Sudan", + "Swaziland", + "Sweden", + "Switzerland", + "Syria", + "Taiwan", + "Tanzania", + "Thailand", + "Togo", + "Trinidad and Tobago", + "Tunisia", + "Turkey", + "Uganda", + "United Kingdom", + "United States", + "Uruguay", + "Venezuela", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep.", + "Zambia", + "Zimbabwe", + "Africa", + "Americas", + "Asia", + "Europe", + "Oceania" + ], + "marker": { + "coloraxis": "coloraxis", + "colors": [ + 43.828, + 76.423, + 72.301, + 42.731, + 75.32, + 81.235, + 79.829, + 75.635, + 64.062, + 79.441, + 56.728, + 65.554, + 74.852, + 50.728, + 72.39, + 73.005, + 52.295, + 49.58, + 59.723, + 50.43, + 80.65300000000002, + 44.74100000000001, + 50.651, + 78.553, + 72.961, + 72.889, + 65.152, + 46.462, + 55.322, + 78.782, + 48.328, + 75.748, + 78.273, + 76.486, + 78.332, + 54.791, + 72.235, + 74.994, + 71.33800000000002, + 71.878, + 51.57899999999999, + 58.03999999999999, + 52.947, + 79.313, + 80.65699999999998, + 56.73500000000001, + 59.448, + 79.406, + 60.02199999999999, + 79.483, + 70.259, + 56.007, + 46.38800000000001, + 60.916, + 70.19800000000001, + 82.208, + 73.33800000000002, + 81.757, + 64.69800000000001, + 70.65, + 70.964, + 59.545, + 78.885, + 80.745, + 80.546, + 72.567, + 82.603, + 72.535, + 54.11, + 67.297, + 78.623, + 77.58800000000002, + 71.993, + 42.592, + 45.678, + 73.952, + 59.443000000000005, + 48.303, + 74.241, + 54.467, + 64.164, + 72.801, + 76.195, + 66.803, + 74.543, + 71.164, + 42.082, + 62.06900000000001, + 52.90600000000001, + 63.785, + 79.762, + 80.204, + 72.899, + 56.867, + 46.859, + 80.196, + 75.64, + 65.483, + 75.53699999999998, + 71.752, + 71.421, + 71.688, + 75.563, + 78.098, + 78.74600000000002, + 76.442, + 72.476, + 46.242, + 65.528, + 72.777, + 63.062, + 74.002, + 42.56800000000001, + 79.972, + 74.663, + 77.926, + 48.159, + 49.339, + 80.941, + 72.396, + 58.55599999999999, + 39.613, + 80.884, + 81.70100000000002, + 74.143, + 78.4, + 52.517, + 70.616, + 58.42, + 69.819, + 73.923, + 71.777, + 51.542, + 79.425, + 78.242, + 76.384, + 73.747, + 74.249, + 73.422, + 62.698, + 42.38399999999999, + 43.487, + 54.56441057558197, + 75.35668222743027, + 69.44386304205017, + 77.89057081069897, + 81.06215400970112 + ] + }, + "name": "", + "parents": [ + "Asia", + "Europe", + "Africa", + "Africa", + "Americas", + "Oceania", + "Europe", + "Asia", + "Asia", + "Europe", + "Africa", + "Americas", + "Europe", + "Africa", + "Americas", + "Europe", + "Africa", + "Africa", + "Asia", + "Africa", + "Americas", + "Africa", + "Africa", + "Americas", + "Asia", + "Americas", + "Africa", + "Africa", + "Africa", + "Americas", + "Africa", + "Europe", + "Americas", + "Europe", + "Europe", + "Africa", + "Americas", + "Americas", + "Africa", + "Americas", + "Africa", + "Africa", + "Africa", + "Europe", + "Europe", + "Africa", + "Africa", + "Europe", + "Africa", + "Europe", + "Americas", + "Africa", + "Africa", + "Americas", + "Americas", + "Asia", + "Europe", + "Europe", + "Asia", + "Asia", + "Asia", + "Asia", + "Europe", + "Asia", + "Europe", + "Americas", + "Asia", + "Asia", + "Africa", + "Asia", + "Asia", + "Asia", + "Asia", + "Africa", + "Africa", + "Africa", + "Africa", + "Africa", + "Asia", + "Africa", + "Africa", + "Africa", + "Americas", + "Asia", + "Europe", + "Africa", + "Africa", + "Asia", + "Africa", + "Asia", + "Europe", + "Oceania", + "Americas", + "Africa", + "Africa", + "Europe", + "Asia", + "Asia", + "Americas", + "Americas", + "Americas", + "Asia", + "Europe", + "Europe", + "Americas", + "Africa", + "Europe", + "Africa", + "Africa", + "Asia", + "Africa", + "Europe", + "Africa", + "Asia", + "Europe", + "Europe", + "Africa", + "Africa", + "Europe", + "Asia", + "Africa", + "Africa", + "Europe", + "Europe", + "Asia", + "Asia", + "Africa", + "Asia", + "Africa", + "Americas", + "Africa", + "Europe", + "Africa", + "Europe", + "Americas", + "Americas", + "Americas", + "Asia", + "Asia", + "Asia", + "Africa", + "Africa", + "", + "", + "", + "", + "" + ], + "type": "sunburst", + "values": [ + 31889923, + 3600523, + 33333216, + 12420476, + 40301927, + 20434176, + 8199783, + 708573, + 150448339, + 10392226, + 8078314, + 9119152, + 4552198, + 1639131, + 190010647, + 7322858, + 14326203, + 8390505, + 14131858, + 17696293, + 33390141, + 4369038, + 10238807, + 16284741, + 1318683096, + 44227550, + 710960, + 64606759, + 3800610, + 4133884, + 18013409, + 4493312, + 11416987, + 10228744, + 5468120, + 496374, + 9319622, + 13755680, + 80264543, + 6939688, + 551201, + 4906585, + 76511887, + 5238460, + 61083916, + 1454867, + 1688359, + 82400996, + 22873338, + 10706290, + 12572928, + 9947814, + 1472041, + 8502814, + 7483763, + 6980412, + 9956108, + 301931, + 1110396331, + 223547000, + 69453570, + 27499638, + 4109086, + 6426679, + 58147733, + 2780132, + 127467972, + 6053193, + 35610177, + 23301725, + 49044790, + 2505559, + 3921278, + 2012649, + 3193942, + 6036914, + 19167654, + 13327079, + 24821286, + 12031795, + 3270065, + 1250882, + 108700891, + 2874127, + 684736, + 33757175, + 19951656, + 47761980, + 2055080, + 28901790, + 16570613, + 4115771, + 5675356, + 12894865, + 135031164, + 4627926, + 3204897, + 169270617, + 3242173, + 6667147, + 28674757, + 91077287, + 38518241, + 10642836, + 3942491, + 798094, + 22276056, + 8860588, + 199579, + 27601038, + 12267493, + 10150265, + 6144562, + 4553009, + 5447502, + 2009245, + 9118773, + 43997828, + 40448191, + 20378239, + 42292929, + 1133066, + 9031088, + 7554661, + 19314747, + 23174294, + 38139640, + 65068149, + 5701579, + 1056608, + 10276158, + 71158647, + 29170398, + 60776238, + 301139947, + 3447496, + 26084662, + 85262356, + 4018332, + 22211743, + 11746035, + 12311143, + 929539692, + 898871184, + 3811953827, + 586098529, + 24549947 + ] + } + ], + "layout": { + "coloraxis": { + "colorbar": { + "title": { + "text": "lifeExp" + } + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ] + }, + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Sunburst plot -> Sunburst plots visualize hierarchical data spanning outwards radially from root to leaves. -> color\n", + "# path -> [], values\n", + "\n", + "temp_df = gap[gap['year'] == 2007]\n", + "px.sunburst(\n", + " temp_df, \n", + " path=['continent','country'], # From parents to childs\n", + " values='pop',\n", + " color='lifeExp'\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "wvtqOqNb4k2h", + "outputId": "6e67e8cc-8893-4475-c33a-440db42c882b" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "branchvalues": "total", + "customdata": [ + [ + 2 + ], + [ + 2 + ], + [ + 2 + ], + [ + 2.6205777846439053 + ], + [ + 2.420805504958511 + ], + [ + 2.907876374014081 + ], + [ + 2.4265789473684207 + ], + [ + 2.84369593975781 + ], + [ + 3.3654730054194966 + ], + [ + 3.158741194975722 + ], + [ + 2.590235792019347 + ], + [ + 2.7025145363664187 + ], + [ + 2 + ], + [ + 2.9999999999999996 + ], + [ + 2 + ], + [ + 1.748829039812646 + ], + [ + 2.927171235389695 + ], + [ + 2.914153571525167 + ], + [ + 2.763324165613618 + ], + [ + 2.311772990454332 + ], + [ + 2.4126000516395556 + ], + [ + 2 + ], + [ + 2 + ], + [ + 2.4385771910524383 + ], + [ + 2.420805504958511 + ], + [ + 2.907876374014081 + ], + [ + 2.4265789473684207 + ], + [ + 2.84369593975781 + ], + [ + 3.3654730054194966 + ], + [ + 3.158741194975722 + ], + [ + 2.590235792019347 + ], + [ + 2.7025145363664187 + ], + [ + 2.8836796882805467 + ], + [ + 2.914153571525167 + ], + [ + 2.763324165613618 + ], + [ + 2.311772990454332 + ], + [ + 2.891723263235414 + ], + [ + 3.007204063029041 + ], + [ + 2.457498272287491 + ], + [ + 2.676449250974145 + ], + [ + 2.727737992934212 + ], + [ + 2.871414447221523 + ] + ], + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "hovertemplate": "labels=%{label}
total_bill=%{value}
parent=%{parent}
id=%{id}
size=%{color}", + "ids": [ + "Female/No/Fri/Dinner", + "Male/No/Fri/Dinner", + "Female/Yes/Fri/Dinner", + "Male/Yes/Fri/Dinner", + "Female/No/Sat/Dinner", + "Male/No/Sat/Dinner", + "Female/Yes/Sat/Dinner", + "Male/Yes/Sat/Dinner", + "Female/No/Sun/Dinner", + "Male/No/Sun/Dinner", + "Female/Yes/Sun/Dinner", + "Male/Yes/Sun/Dinner", + "Female/No/Thur/Dinner", + "Female/No/Fri/Lunch", + "Female/Yes/Fri/Lunch", + "Male/Yes/Fri/Lunch", + "Female/No/Thur/Lunch", + "Male/No/Thur/Lunch", + "Female/Yes/Thur/Lunch", + "Male/Yes/Thur/Lunch", + "Female/No/Fri", + "Male/No/Fri", + "Female/Yes/Fri", + "Male/Yes/Fri", + "Female/No/Sat", + "Male/No/Sat", + "Female/Yes/Sat", + "Male/Yes/Sat", + "Female/No/Sun", + "Male/No/Sun", + "Female/Yes/Sun", + "Male/Yes/Sun", + "Female/No/Thur", + "Male/No/Thur", + "Female/Yes/Thur", + "Male/Yes/Thur", + "Female/No", + "Male/No", + "Female/Yes", + "Male/Yes", + "Female", + "Male" + ], + "labels": [ + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Fri", + "Fri", + "Fri", + "Fri", + "Sat", + "Sat", + "Sat", + "Sat", + "Sun", + "Sun", + "Sun", + "Sun", + "Thur", + "Thur", + "Thur", + "Thur", + "No", + "No", + "Yes", + "Yes", + "Female", + "Male" + ], + "marker": { + "coloraxis": "coloraxis", + "colors": [ + 2, + 2, + 2, + 2.6205777846439053, + 2.420805504958511, + 2.907876374014081, + 2.4265789473684207, + 2.84369593975781, + 3.3654730054194966, + 3.158741194975722, + 2.590235792019347, + 2.7025145363664187, + 2, + 2.9999999999999996, + 2, + 1.748829039812646, + 2.927171235389695, + 2.914153571525167, + 2.763324165613618, + 2.311772990454332, + 2.4126000516395556, + 2, + 2, + 2.4385771910524383, + 2.420805504958511, + 2.907876374014081, + 2.4265789473684207, + 2.84369593975781, + 3.3654730054194966, + 3.158741194975722, + 2.590235792019347, + 2.7025145363664187, + 2.8836796882805467, + 2.914153571525167, + 2.763324165613618, + 2.311772990454332, + 2.891723263235414, + 3.007204063029041, + 2.457498272287491, + 2.676449250974145, + 2.727737992934212, + 2.871414447221523 + ] + }, + "name": "", + "parents": [ + "Female/No/Fri", + "Male/No/Fri", + "Female/Yes/Fri", + "Male/Yes/Fri", + "Female/No/Sat", + "Male/No/Sat", + "Female/Yes/Sat", + "Male/Yes/Sat", + "Female/No/Sun", + "Male/No/Sun", + "Female/Yes/Sun", + "Male/Yes/Sun", + "Female/No/Thur", + "Female/No/Fri", + "Female/Yes/Fri", + "Male/Yes/Fri", + "Female/No/Thur", + "Male/No/Thur", + "Female/Yes/Thur", + "Male/Yes/Thur", + "Female/No", + "Male/No", + "Female/Yes", + "Male/Yes", + "Female/No", + "Male/No", + "Female/Yes", + "Male/Yes", + "Female/No", + "Male/No", + "Female/Yes", + "Male/Yes", + "Female/No", + "Male/No", + "Female/Yes", + "Male/Yes", + "Female", + "Male", + "Female", + "Male", + "", + "" + ], + "type": "sunburst", + "values": [ + 22.75, + 34.95, + 48.8, + 129.46, + 247.05, + 637.73, + 304, + 589.62, + 291.54, + 877.34, + 66.16, + 392.12, + 18.78, + 15.98, + 39.78, + 34.16, + 381.58, + 369.73, + 134.53, + 191.71, + 38.730000000000004, + 34.95, + 88.58, + 163.62, + 247.05, + 637.73, + 304, + 589.62, + 291.54, + 877.34, + 66.16, + 392.12, + 400.36, + 369.73, + 134.53, + 191.71, + 977.6800000000001, + 1919.75, + 593.27, + 1337.07, + 1570.95, + 3256.82 + ] + } + ], + "layout": { + "coloraxis": { + "colorbar": { + "title": { + "text": "size" + } + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ] + }, + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.sunburst(tips, path=['sex','smoker','day','time'], values='total_bill', color='size')" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "kkdnPFGCPXA8", + "outputId": "d4b31d99-bd40-4c20-83e0-6f50e1c21f2e" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "branchvalues": "total", + "customdata": [ + [ + 43.828 + ], + [ + 76.423 + ], + [ + 72.301 + ], + [ + 42.731 + ], + [ + 75.32 + ], + [ + 81.235 + ], + [ + 79.829 + ], + [ + 75.635 + ], + [ + 64.062 + ], + [ + 79.441 + ], + [ + 56.728 + ], + [ + 65.554 + ], + [ + 74.852 + ], + [ + 50.728 + ], + [ + 72.39 + ], + [ + 73.005 + ], + [ + 52.295 + ], + [ + 49.58 + ], + [ + 59.723 + ], + [ + 50.43 + ], + [ + 80.65300000000002 + ], + [ + 44.74100000000001 + ], + [ + 50.651 + ], + [ + 78.553 + ], + [ + 72.961 + ], + [ + 72.889 + ], + [ + 65.152 + ], + [ + 46.462 + ], + [ + 55.322 + ], + [ + 78.782 + ], + [ + 48.328 + ], + [ + 75.748 + ], + [ + 78.273 + ], + [ + 76.486 + ], + [ + 78.332 + ], + [ + 54.791 + ], + [ + 72.235 + ], + [ + 74.994 + ], + [ + 71.33800000000002 + ], + [ + 71.878 + ], + [ + 51.57899999999999 + ], + [ + 58.03999999999999 + ], + [ + 52.947 + ], + [ + 79.313 + ], + [ + 80.65699999999998 + ], + [ + 56.73500000000001 + ], + [ + 59.448 + ], + [ + 79.406 + ], + [ + 60.02199999999999 + ], + [ + 79.483 + ], + [ + 70.259 + ], + [ + 56.007 + ], + [ + 46.38800000000001 + ], + [ + 60.916 + ], + [ + 70.19800000000001 + ], + [ + 82.208 + ], + [ + 73.33800000000002 + ], + [ + 81.757 + ], + [ + 64.69800000000001 + ], + [ + 70.65 + ], + [ + 70.964 + ], + [ + 59.545 + ], + [ + 78.885 + ], + [ + 80.745 + ], + [ + 80.546 + ], + [ + 72.567 + ], + [ + 82.603 + ], + [ + 72.535 + ], + [ + 54.11 + ], + [ + 67.297 + ], + [ + 78.623 + ], + [ + 77.58800000000002 + ], + [ + 71.993 + ], + [ + 42.592 + ], + [ + 45.678 + ], + [ + 73.952 + ], + [ + 59.443000000000005 + ], + [ + 48.303 + ], + [ + 74.241 + ], + [ + 54.467 + ], + [ + 64.164 + ], + [ + 72.801 + ], + [ + 76.195 + ], + [ + 66.803 + ], + [ + 74.543 + ], + [ + 71.164 + ], + [ + 42.082 + ], + [ + 62.06900000000001 + ], + [ + 52.90600000000001 + ], + [ + 63.785 + ], + [ + 79.762 + ], + [ + 80.204 + ], + [ + 72.899 + ], + [ + 56.867 + ], + [ + 46.859 + ], + [ + 80.196 + ], + [ + 75.64 + ], + [ + 65.483 + ], + [ + 75.53699999999998 + ], + [ + 71.752 + ], + [ + 71.421 + ], + [ + 71.688 + ], + [ + 75.563 + ], + [ + 78.098 + ], + [ + 78.74600000000002 + ], + [ + 76.442 + ], + [ + 72.476 + ], + [ + 46.242 + ], + [ + 65.528 + ], + [ + 72.777 + ], + [ + 63.062 + ], + [ + 74.002 + ], + [ + 42.56800000000001 + ], + [ + 79.972 + ], + [ + 74.663 + ], + [ + 77.926 + ], + [ + 48.159 + ], + [ + 49.339 + ], + [ + 80.941 + ], + [ + 72.396 + ], + [ + 58.55599999999999 + ], + [ + 39.613 + ], + [ + 80.884 + ], + [ + 81.70100000000002 + ], + [ + 74.143 + ], + [ + 78.4 + ], + [ + 52.517 + ], + [ + 70.616 + ], + [ + 58.42 + ], + [ + 69.819 + ], + [ + 73.923 + ], + [ + 71.777 + ], + [ + 51.542 + ], + [ + 79.425 + ], + [ + 78.242 + ], + [ + 76.384 + ], + [ + 73.747 + ], + [ + 74.249 + ], + [ + 73.422 + ], + [ + 62.698 + ], + [ + 42.38399999999999 + ], + [ + 43.487 + ], + [ + 54.56441057558197 + ], + [ + 75.35668222743027 + ], + [ + 69.44386304205017 + ], + [ + 77.89057081069897 + ], + [ + 81.06215400970112 + ], + [ + 68.91909251904043 + ] + ], + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "hovertemplate": "labels=%{label}
pop=%{value}
parent=%{parent}
id=%{id}
lifeExp=%{color}", + "ids": [ + "World/Asia/Afghanistan", + "World/Europe/Albania", + "World/Africa/Algeria", + "World/Africa/Angola", + "World/Americas/Argentina", + "World/Oceania/Australia", + "World/Europe/Austria", + "World/Asia/Bahrain", + "World/Asia/Bangladesh", + "World/Europe/Belgium", + "World/Africa/Benin", + "World/Americas/Bolivia", + "World/Europe/Bosnia and Herzegovina", + "World/Africa/Botswana", + "World/Americas/Brazil", + "World/Europe/Bulgaria", + "World/Africa/Burkina Faso", + "World/Africa/Burundi", + "World/Asia/Cambodia", + "World/Africa/Cameroon", + "World/Americas/Canada", + "World/Africa/Central African Republic", + "World/Africa/Chad", + "World/Americas/Chile", + "World/Asia/China", + "World/Americas/Colombia", + "World/Africa/Comoros", + "World/Africa/Congo, Dem. Rep.", + "World/Africa/Congo, Rep.", + "World/Americas/Costa Rica", + "World/Africa/Cote d'Ivoire", + "World/Europe/Croatia", + "World/Americas/Cuba", + "World/Europe/Czech Republic", + "World/Europe/Denmark", + "World/Africa/Djibouti", + "World/Americas/Dominican Republic", + "World/Americas/Ecuador", + "World/Africa/Egypt", + "World/Americas/El Salvador", + "World/Africa/Equatorial Guinea", + "World/Africa/Eritrea", + "World/Africa/Ethiopia", + "World/Europe/Finland", + "World/Europe/France", + "World/Africa/Gabon", + "World/Africa/Gambia", + "World/Europe/Germany", + "World/Africa/Ghana", + "World/Europe/Greece", + "World/Americas/Guatemala", + "World/Africa/Guinea", + "World/Africa/Guinea-Bissau", + "World/Americas/Haiti", + "World/Americas/Honduras", + "World/Asia/Hong Kong, China", + "World/Europe/Hungary", + "World/Europe/Iceland", + "World/Asia/India", + "World/Asia/Indonesia", + "World/Asia/Iran", + "World/Asia/Iraq", + "World/Europe/Ireland", + "World/Asia/Israel", + "World/Europe/Italy", + "World/Americas/Jamaica", + "World/Asia/Japan", + "World/Asia/Jordan", + "World/Africa/Kenya", + "World/Asia/Korea, Dem. Rep.", + "World/Asia/Korea, Rep.", + "World/Asia/Kuwait", + "World/Asia/Lebanon", + "World/Africa/Lesotho", + "World/Africa/Liberia", + "World/Africa/Libya", + "World/Africa/Madagascar", + "World/Africa/Malawi", + "World/Asia/Malaysia", + "World/Africa/Mali", + "World/Africa/Mauritania", + "World/Africa/Mauritius", + "World/Americas/Mexico", + "World/Asia/Mongolia", + "World/Europe/Montenegro", + "World/Africa/Morocco", + "World/Africa/Mozambique", + "World/Asia/Myanmar", + "World/Africa/Namibia", + "World/Asia/Nepal", + "World/Europe/Netherlands", + "World/Oceania/New Zealand", + "World/Americas/Nicaragua", + "World/Africa/Niger", + "World/Africa/Nigeria", + "World/Europe/Norway", + "World/Asia/Oman", + "World/Asia/Pakistan", + "World/Americas/Panama", + "World/Americas/Paraguay", + "World/Americas/Peru", + "World/Asia/Philippines", + "World/Europe/Poland", + "World/Europe/Portugal", + "World/Americas/Puerto Rico", + "World/Africa/Reunion", + "World/Europe/Romania", + "World/Africa/Rwanda", + "World/Africa/Sao Tome and Principe", + "World/Asia/Saudi Arabia", + "World/Africa/Senegal", + "World/Europe/Serbia", + "World/Africa/Sierra Leone", + "World/Asia/Singapore", + "World/Europe/Slovak Republic", + "World/Europe/Slovenia", + "World/Africa/Somalia", + "World/Africa/South Africa", + "World/Europe/Spain", + "World/Asia/Sri Lanka", + "World/Africa/Sudan", + "World/Africa/Swaziland", + "World/Europe/Sweden", + "World/Europe/Switzerland", + "World/Asia/Syria", + "World/Asia/Taiwan", + "World/Africa/Tanzania", + "World/Asia/Thailand", + "World/Africa/Togo", + "World/Americas/Trinidad and Tobago", + "World/Africa/Tunisia", + "World/Europe/Turkey", + "World/Africa/Uganda", + "World/Europe/United Kingdom", + "World/Americas/United States", + "World/Americas/Uruguay", + "World/Americas/Venezuela", + "World/Asia/Vietnam", + "World/Asia/West Bank and Gaza", + "World/Asia/Yemen, Rep.", + "World/Africa/Zambia", + "World/Africa/Zimbabwe", + "World/Africa", + "World/Americas", + "World/Asia", + "World/Europe", + "World/Oceania", + "World" + ], + "labels": [ + "Afghanistan", + "Albania", + "Algeria", + "Angola", + "Argentina", + "Australia", + "Austria", + "Bahrain", + "Bangladesh", + "Belgium", + "Benin", + "Bolivia", + "Bosnia and Herzegovina", + "Botswana", + "Brazil", + "Bulgaria", + "Burkina Faso", + "Burundi", + "Cambodia", + "Cameroon", + "Canada", + "Central African Republic", + "Chad", + "Chile", + "China", + "Colombia", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Costa Rica", + "Cote d'Ivoire", + "Croatia", + "Cuba", + "Czech Republic", + "Denmark", + "Djibouti", + "Dominican Republic", + "Ecuador", + "Egypt", + "El Salvador", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Finland", + "France", + "Gabon", + "Gambia", + "Germany", + "Ghana", + "Greece", + "Guatemala", + "Guinea", + "Guinea-Bissau", + "Haiti", + "Honduras", + "Hong Kong, China", + "Hungary", + "Iceland", + "India", + "Indonesia", + "Iran", + "Iraq", + "Ireland", + "Israel", + "Italy", + "Jamaica", + "Japan", + "Jordan", + "Kenya", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Malaysia", + "Mali", + "Mauritania", + "Mauritius", + "Mexico", + "Mongolia", + "Montenegro", + "Morocco", + "Mozambique", + "Myanmar", + "Namibia", + "Nepal", + "Netherlands", + "New Zealand", + "Nicaragua", + "Niger", + "Nigeria", + "Norway", + "Oman", + "Pakistan", + "Panama", + "Paraguay", + "Peru", + "Philippines", + "Poland", + "Portugal", + "Puerto Rico", + "Reunion", + "Romania", + "Rwanda", + "Sao Tome and Principe", + "Saudi Arabia", + "Senegal", + "Serbia", + "Sierra Leone", + "Singapore", + "Slovak Republic", + "Slovenia", + "Somalia", + "South Africa", + "Spain", + "Sri Lanka", + "Sudan", + "Swaziland", + "Sweden", + "Switzerland", + "Syria", + "Taiwan", + "Tanzania", + "Thailand", + "Togo", + "Trinidad and Tobago", + "Tunisia", + "Turkey", + "Uganda", + "United Kingdom", + "United States", + "Uruguay", + "Venezuela", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep.", + "Zambia", + "Zimbabwe", + "Africa", + "Americas", + "Asia", + "Europe", + "Oceania", + "World" + ], + "marker": { + "coloraxis": "coloraxis", + "colors": [ + 43.828, + 76.423, + 72.301, + 42.731, + 75.32, + 81.235, + 79.829, + 75.635, + 64.062, + 79.441, + 56.728, + 65.554, + 74.852, + 50.728, + 72.39, + 73.005, + 52.295, + 49.58, + 59.723, + 50.43, + 80.65300000000002, + 44.74100000000001, + 50.651, + 78.553, + 72.961, + 72.889, + 65.152, + 46.462, + 55.322, + 78.782, + 48.328, + 75.748, + 78.273, + 76.486, + 78.332, + 54.791, + 72.235, + 74.994, + 71.33800000000002, + 71.878, + 51.57899999999999, + 58.03999999999999, + 52.947, + 79.313, + 80.65699999999998, + 56.73500000000001, + 59.448, + 79.406, + 60.02199999999999, + 79.483, + 70.259, + 56.007, + 46.38800000000001, + 60.916, + 70.19800000000001, + 82.208, + 73.33800000000002, + 81.757, + 64.69800000000001, + 70.65, + 70.964, + 59.545, + 78.885, + 80.745, + 80.546, + 72.567, + 82.603, + 72.535, + 54.11, + 67.297, + 78.623, + 77.58800000000002, + 71.993, + 42.592, + 45.678, + 73.952, + 59.443000000000005, + 48.303, + 74.241, + 54.467, + 64.164, + 72.801, + 76.195, + 66.803, + 74.543, + 71.164, + 42.082, + 62.06900000000001, + 52.90600000000001, + 63.785, + 79.762, + 80.204, + 72.899, + 56.867, + 46.859, + 80.196, + 75.64, + 65.483, + 75.53699999999998, + 71.752, + 71.421, + 71.688, + 75.563, + 78.098, + 78.74600000000002, + 76.442, + 72.476, + 46.242, + 65.528, + 72.777, + 63.062, + 74.002, + 42.56800000000001, + 79.972, + 74.663, + 77.926, + 48.159, + 49.339, + 80.941, + 72.396, + 58.55599999999999, + 39.613, + 80.884, + 81.70100000000002, + 74.143, + 78.4, + 52.517, + 70.616, + 58.42, + 69.819, + 73.923, + 71.777, + 51.542, + 79.425, + 78.242, + 76.384, + 73.747, + 74.249, + 73.422, + 62.698, + 42.38399999999999, + 43.487, + 54.56441057558197, + 75.35668222743027, + 69.44386304205017, + 77.89057081069897, + 81.06215400970112, + 68.91909251904043 + ] + }, + "name": "", + "parents": [ + "World/Asia", + "World/Europe", + "World/Africa", + "World/Africa", + "World/Americas", + "World/Oceania", + "World/Europe", + "World/Asia", + "World/Asia", + "World/Europe", + "World/Africa", + "World/Americas", + "World/Europe", + "World/Africa", + "World/Americas", + "World/Europe", + "World/Africa", + "World/Africa", + "World/Asia", + "World/Africa", + "World/Americas", + "World/Africa", + "World/Africa", + "World/Americas", + "World/Asia", + "World/Americas", + "World/Africa", + "World/Africa", + "World/Africa", + "World/Americas", + "World/Africa", + "World/Europe", + "World/Americas", + "World/Europe", + "World/Europe", + "World/Africa", + "World/Americas", + "World/Americas", + "World/Africa", + "World/Americas", + "World/Africa", + "World/Africa", + "World/Africa", + "World/Europe", + "World/Europe", + "World/Africa", + "World/Africa", + "World/Europe", + "World/Africa", + "World/Europe", + "World/Americas", + "World/Africa", + "World/Africa", + "World/Americas", + "World/Americas", + "World/Asia", + "World/Europe", + "World/Europe", + "World/Asia", + "World/Asia", + "World/Asia", + "World/Asia", + "World/Europe", + "World/Asia", + "World/Europe", + "World/Americas", + "World/Asia", + "World/Asia", + "World/Africa", + "World/Asia", + "World/Asia", + "World/Asia", + "World/Asia", + "World/Africa", + "World/Africa", + "World/Africa", + "World/Africa", + "World/Africa", + "World/Asia", + "World/Africa", + "World/Africa", + "World/Africa", + "World/Americas", + "World/Asia", + "World/Europe", + "World/Africa", + "World/Africa", + "World/Asia", + "World/Africa", + "World/Asia", + "World/Europe", + "World/Oceania", + "World/Americas", + "World/Africa", + "World/Africa", + "World/Europe", + "World/Asia", + "World/Asia", + "World/Americas", + "World/Americas", + "World/Americas", + "World/Asia", + "World/Europe", + "World/Europe", + "World/Americas", + "World/Africa", + "World/Europe", + "World/Africa", + "World/Africa", + "World/Asia", + "World/Africa", + "World/Europe", + "World/Africa", + "World/Asia", + "World/Europe", + "World/Europe", + "World/Africa", + "World/Africa", + "World/Europe", + "World/Asia", + "World/Africa", + "World/Africa", + "World/Europe", + "World/Europe", + "World/Asia", + "World/Asia", + "World/Africa", + "World/Asia", + "World/Africa", + "World/Americas", + "World/Africa", + "World/Europe", + "World/Africa", + "World/Europe", + "World/Americas", + "World/Americas", + "World/Americas", + "World/Asia", + "World/Asia", + "World/Asia", + "World/Africa", + "World/Africa", + "World", + "World", + "World", + "World", + "World", + "" + ], + "type": "treemap", + "values": [ + 31889923, + 3600523, + 33333216, + 12420476, + 40301927, + 20434176, + 8199783, + 708573, + 150448339, + 10392226, + 8078314, + 9119152, + 4552198, + 1639131, + 190010647, + 7322858, + 14326203, + 8390505, + 14131858, + 17696293, + 33390141, + 4369038, + 10238807, + 16284741, + 1318683096, + 44227550, + 710960, + 64606759, + 3800610, + 4133884, + 18013409, + 4493312, + 11416987, + 10228744, + 5468120, + 496374, + 9319622, + 13755680, + 80264543, + 6939688, + 551201, + 4906585, + 76511887, + 5238460, + 61083916, + 1454867, + 1688359, + 82400996, + 22873338, + 10706290, + 12572928, + 9947814, + 1472041, + 8502814, + 7483763, + 6980412, + 9956108, + 301931, + 1110396331, + 223547000, + 69453570, + 27499638, + 4109086, + 6426679, + 58147733, + 2780132, + 127467972, + 6053193, + 35610177, + 23301725, + 49044790, + 2505559, + 3921278, + 2012649, + 3193942, + 6036914, + 19167654, + 13327079, + 24821286, + 12031795, + 3270065, + 1250882, + 108700891, + 2874127, + 684736, + 33757175, + 19951656, + 47761980, + 2055080, + 28901790, + 16570613, + 4115771, + 5675356, + 12894865, + 135031164, + 4627926, + 3204897, + 169270617, + 3242173, + 6667147, + 28674757, + 91077287, + 38518241, + 10642836, + 3942491, + 798094, + 22276056, + 8860588, + 199579, + 27601038, + 12267493, + 10150265, + 6144562, + 4553009, + 5447502, + 2009245, + 9118773, + 43997828, + 40448191, + 20378239, + 42292929, + 1133066, + 9031088, + 7554661, + 19314747, + 23174294, + 38139640, + 65068149, + 5701579, + 1056608, + 10276158, + 71158647, + 29170398, + 60776238, + 301139947, + 3447496, + 26084662, + 85262356, + 4018332, + 22211743, + 11746035, + 12311143, + 929539692, + 898871184, + 3811953827, + 586098529, + 24549947, + 6251013179 + ] + } + ], + "layout": { + "coloraxis": { + "colorbar": { + "title": { + "text": "lifeExp" + } + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ] + }, + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Treemap - New Plot\n", + "temp_df = gap[gap['year'] == 2007]\n", + "\n", + "px.treemap(\n", + " temp_df, \n", + " path=[px.Constant('World'),'continent','country'], # We require a global entity -> px.Constant('World')\n", + " values='pop',color='lifeExp') # Squared version of pie charts" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "_JW65GE_QULn", + "outputId": "ed0e8ccb-14a8-4aff-99ea-c6f1952f06ed" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "coloraxis": "coloraxis", + "hovertemplate": "continent: %{x}
year: %{y}
color: %{z}", + "name": "0", + "type": "heatmap", + "x": [ + "Africa", + "Americas", + "Asia", + "Europe", + "Oceania" + ], + "xaxis": "x", + "y": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "yaxis": "y", + "z": [ + [ + 39.1355, + 53.27984000000001, + 46.31439393939394, + 64.4085, + 69.255 + ], + [ + 41.26634615384615, + 55.960280000000004, + 49.318544242424245, + 66.70306666666667, + 70.295 + ], + [ + 43.319442307692306, + 58.39876, + 51.56322303030303, + 68.53923333333334, + 71.08500000000001 + ], + [ + 45.334538461538465, + 60.410920000000004, + 54.66364, + 69.7376, + 71.31 + ], + [ + 47.45094230769231, + 62.39492, + 57.319269090909096, + 70.77503333333334, + 71.91 + ], + [ + 49.580423076923076, + 64.39156, + 59.61055636363636, + 71.93776666666666, + 72.85499999999999 + ], + [ + 51.592865384615386, + 66.22884, + 62.61793939393939, + 72.8064, + 74.28999999999999 + ], + [ + 53.344788461538464, + 68.09072, + 64.85118181818181, + 73.64216666666667, + 75.32 + ], + [ + 53.629576923076925, + 69.56836, + 66.53721212121212, + 74.4401, + 76.945 + ], + [ + 53.59826923076923, + 71.15048, + 68.02051515151516, + 75.50516666666667, + 78.19 + ], + [ + 53.32523076923077, + 72.42204, + 69.23387878787878, + 76.7006, + 79.74000000000001 + ], + [ + 54.80603846153846, + 73.60812, + 70.72848484848485, + 77.6486, + 80.7195 + ] + ] + } + ], + "layout": { + "coloraxis": { + "colorscale": [ + [ + 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, + "#f0f921" + ] + ] + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "xaxis": { + "anchor": "y", + "constrain": "domain", + "domain": [ + 0, + 1 + ], + "scaleanchor": "y", + "title": { + "text": "continent" + } + }, + "yaxis": { + "anchor": "x", + "autorange": "reversed", + "constrain": "domain", + "domain": [ + 0, + 1 + ], + "title": { + "text": "year" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Heatmap -> find heatmap of all continents with year on avg life exp\n", + "#temp_df = tips.pivot_table(index='day',columns='sex',values='total_bill',aggfunc='sum')\n", + "\n", + "temp_df = gap.pivot_table(index='year',columns='continent',values='lifeExp',aggfunc='mean')\n", + "px.imshow(temp_df)" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "nUMF9yUvRRiC", + "outputId": "743104fd-8127-45aa-eae5-b067ad509c5a" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
lifeExp=%{x}
pop=%{y}
gdpPercap=%{z}", + "hovertext": [ + "Afghanistan", + "Bahrain", + "Bangladesh", + "Cambodia", + "China", + "Hong Kong, China", + "India", + "Indonesia", + "Iran", + "Iraq", + "Israel", + "Japan", + "Jordan", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Kuwait", + "Lebanon", + "Malaysia", + "Mongolia", + "Myanmar", + "Nepal", + "Oman", + "Pakistan", + "Philippines", + "Saudi Arabia", + "Singapore", + "Sri Lanka", + "Syria", + "Taiwan", + "Thailand", + "Vietnam", + "West Bank and Gaza", + "Yemen, Rep." + ], + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 43.828, + 75.635, + 64.062, + 59.723, + 72.961, + 82.208, + 64.69800000000001, + 70.65, + 70.964, + 59.545, + 80.745, + 82.603, + 72.535, + 67.297, + 78.623, + 77.58800000000002, + 71.993, + 74.241, + 66.803, + 62.069, + 63.785, + 75.64, + 65.483, + 71.688, + 72.777, + 79.972, + 72.396, + 74.143, + 78.4, + 70.616, + 74.249, + 73.422, + 62.698 + ], + "y": [ + 31889923, + 708573, + 150448339, + 14131858, + 1318683096, + 6980412, + 1110396331, + 223547000, + 69453570, + 27499638, + 6426679, + 127467972, + 6053193, + 23301725, + 49044790, + 2505559, + 3921278, + 24821286, + 2874127, + 47761980, + 28901790, + 3204897, + 169270617, + 91077287, + 27601038, + 4553009, + 20378239, + 19314747, + 23174294, + 65068149, + 85262356, + 4018332, + 22211743 + ], + "z": [ + 974.5803384, + 29796.04834, + 1391.253792, + 1713.778686, + 4959.114854, + 39724.97867, + 2452.210407, + 3540.651564, + 11605.71449, + 4471.061906, + 25523.2771, + 31656.06806, + 4519.461171, + 1593.06548, + 23348.139730000006, + 47306.98978, + 10461.05868, + 12451.6558, + 3095.7722710000007, + 944, + 1091.359778, + 22316.19287, + 2605.94758, + 3190.481016, + 21654.83194, + 47143.17964, + 3970.095407, + 4184.548089, + 28718.27684, + 7458.396326999998, + 2441.576404, + 3025.349798, + 2280.769906 + ] + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
lifeExp=%{x}
pop=%{y}
gdpPercap=%{z}", + "hovertext": [ + "Albania", + "Austria", + "Belgium", + "Bosnia and Herzegovina", + "Bulgaria", + "Croatia", + "Czech Republic", + "Denmark", + "Finland", + "France", + "Germany", + "Greece", + "Hungary", + "Iceland", + "Ireland", + "Italy", + "Montenegro", + "Netherlands", + "Norway", + "Poland", + "Portugal", + "Romania", + "Serbia", + "Slovak Republic", + "Slovenia", + "Spain", + "Sweden", + "Switzerland", + "Turkey", + "United Kingdom" + ], + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 76.423, + 79.829, + 79.441, + 74.852, + 73.005, + 75.748, + 76.486, + 78.332, + 79.313, + 80.657, + 79.406, + 79.483, + 73.33800000000002, + 81.757, + 78.885, + 80.546, + 74.543, + 79.762, + 80.196, + 75.563, + 78.098, + 72.476, + 74.002, + 74.663, + 77.926, + 80.941, + 80.884, + 81.70100000000002, + 71.777, + 79.425 + ], + "y": [ + 3600523, + 8199783, + 10392226, + 4552198, + 7322858, + 4493312, + 10228744, + 5468120, + 5238460, + 61083916, + 82400996, + 10706290, + 9956108, + 301931, + 4109086, + 58147733, + 684736, + 16570613, + 4627926, + 38518241, + 10642836, + 22276056, + 10150265, + 5447502, + 2009245, + 40448191, + 9031088, + 7554661, + 71158647, + 60776238 + ], + "z": [ + 5937.029525999998, + 36126.4927, + 33692.60508, + 7446.298803, + 10680.79282, + 14619.222719999998, + 22833.30851, + 35278.41874, + 33207.0844, + 30470.0167, + 32170.37442, + 27538.41188, + 18008.94444, + 36180.78919, + 40675.99635, + 28569.7197, + 9253.896111, + 36797.93332, + 49357.19017, + 15389.924680000002, + 20509.64777, + 10808.47561, + 9786.534714, + 18678.31435, + 25768.25759, + 28821.0637, + 33859.74835, + 37506.41907, + 8458.276384, + 33203.26128 + ] + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
lifeExp=%{x}
pop=%{y}
gdpPercap=%{z}", + "hovertext": [ + "Algeria", + "Angola", + "Benin", + "Botswana", + "Burkina Faso", + "Burundi", + "Cameroon", + "Central African Republic", + "Chad", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Cote d'Ivoire", + "Djibouti", + "Egypt", + "Equatorial Guinea", + "Eritrea", + "Ethiopia", + "Gabon", + "Gambia", + "Ghana", + "Guinea", + "Guinea-Bissau", + "Kenya", + "Lesotho", + "Liberia", + "Libya", + "Madagascar", + "Malawi", + "Mali", + "Mauritania", + "Mauritius", + "Morocco", + "Mozambique", + "Namibia", + "Niger", + "Nigeria", + "Reunion", + "Rwanda", + "Sao Tome and Principe", + "Senegal", + "Sierra Leone", + "Somalia", + "South Africa", + "Sudan", + "Swaziland", + "Tanzania", + "Togo", + "Tunisia", + "Uganda", + "Zambia", + "Zimbabwe" + ], + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 72.301, + 42.731, + 56.728, + 50.728, + 52.295, + 49.58, + 50.43, + 44.74100000000001, + 50.651, + 65.152, + 46.462, + 55.322, + 48.328, + 54.791, + 71.33800000000002, + 51.57899999999999, + 58.04, + 52.947, + 56.735, + 59.448, + 60.022, + 56.007, + 46.38800000000001, + 54.11, + 42.592, + 45.678, + 73.952, + 59.44300000000001, + 48.303, + 54.467, + 64.164, + 72.801, + 71.164, + 42.082, + 52.90600000000001, + 56.867, + 46.859, + 76.442, + 46.242, + 65.528, + 63.062, + 42.56800000000001, + 48.159, + 49.339, + 58.556, + 39.613, + 52.517, + 58.42, + 73.923, + 51.542, + 42.38399999999999, + 43.487 + ], + "y": [ + 33333216, + 12420476, + 8078314, + 1639131, + 14326203, + 8390505, + 17696293, + 4369038, + 10238807, + 710960, + 64606759, + 3800610, + 18013409, + 496374, + 80264543, + 551201, + 4906585, + 76511887, + 1454867, + 1688359, + 22873338, + 9947814, + 1472041, + 35610177, + 2012649, + 3193942, + 6036914, + 19167654, + 13327079, + 12031795, + 3270065, + 1250882, + 33757175, + 19951656, + 2055080, + 12894865, + 135031164, + 798094, + 8860588, + 199579, + 12267493, + 6144562, + 9118773, + 43997828, + 42292929, + 1133066, + 38139640, + 5701579, + 10276158, + 29170398, + 11746035, + 12311143 + ], + "z": [ + 6223.367465, + 4797.231267, + 1441.284873, + 12569.85177, + 1217.032994, + 430.0706916, + 2042.09524, + 706.016537, + 1704.063724, + 986.1478792, + 277.5518587, + 3632.557798, + 1544.750112, + 2082.4815670000007, + 5581.180998, + 12154.08975, + 641.3695236000002, + 690.8055759, + 13206.48452, + 752.7497265, + 1327.60891, + 942.6542111, + 579.2317429999998, + 1463.249282, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 1042.581557, + 1803.151496, + 10956.99112, + 3820.17523, + 823.6856205, + 4811.060429, + 619.6768923999998, + 2013.977305, + 7670.122558, + 863.0884639000002, + 1598.435089, + 1712.472136, + 862.5407561000002, + 926.1410683, + 9269.657808, + 2602.394995, + 4513.480643, + 1107.482182, + 882.9699437999999, + 7092.923025, + 1056.380121, + 1271.211593, + 469.70929810000007 + ] + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
lifeExp=%{x}
pop=%{y}
gdpPercap=%{z}", + "hovertext": [ + "Argentina", + "Bolivia", + "Brazil", + "Canada", + "Chile", + "Colombia", + "Costa Rica", + "Cuba", + "Dominican Republic", + "Ecuador", + "El Salvador", + "Guatemala", + "Haiti", + "Honduras", + "Jamaica", + "Mexico", + "Nicaragua", + "Panama", + "Paraguay", + "Peru", + "Puerto Rico", + "Trinidad and Tobago", + "United States", + "Uruguay", + "Venezuela" + ], + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 75.32, + 65.554, + 72.39, + 80.653, + 78.553, + 72.889, + 78.782, + 78.273, + 72.235, + 74.994, + 71.878, + 70.259, + 60.916, + 70.19800000000001, + 72.567, + 76.195, + 72.899, + 75.53699999999998, + 71.752, + 71.421, + 78.74600000000002, + 69.819, + 78.242, + 76.384, + 73.747 + ], + "y": [ + 40301927, + 9119152, + 190010647, + 33390141, + 16284741, + 44227550, + 4133884, + 11416987, + 9319622, + 13755680, + 6939688, + 12572928, + 8502814, + 7483763, + 2780132, + 108700891, + 5675356, + 3242173, + 6667147, + 28674757, + 3942491, + 1056608, + 301139947, + 3447496, + 26084662 + ], + "z": [ + 12779.37964, + 3822.137084, + 9065.800825, + 36319.23501, + 13171.63885, + 7006.580419, + 9645.06142, + 8948.102923, + 6025.3747520000015, + 6873.262326000001, + 5728.353514, + 5186.050003, + 1201.637154, + 3548.3308460000007, + 7320.8802620000015, + 11977.57496, + 2749.320965, + 9809.185636, + 4172.838464, + 7408.905561, + 19328.70901, + 18008.50924, + 42951.65309, + 10611.46299, + 11415.80569 + ] + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
lifeExp=%{x}
pop=%{y}
gdpPercap=%{z}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 81.235, + 80.204 + ], + "y": [ + 20434176, + 4115771 + ], + "z": [ + 34435.367439999995, + 25185.00911 + ] + } + ], + "layout": { + "legend": { + "title": { + "text": "continent" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "scene": { + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "xaxis": { + "title": { + "text": "lifeExp" + } + }, + "yaxis": { + "title": { + "text": "pop" + }, + "type": "log" + }, + "zaxis": { + "title": { + "text": "gdpPercap" + } + } + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# 3d scatterplot\n", + "# plot a 3d scatter plot of all country data for 2007\n", + "temp_df = gap[gap['year'] == 2007]\n", + "px.scatter_3d(temp_df, x='lifeExp',y='pop',z='gdpPercap',log_y=True,color='continent',hover_name='country')" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "6854bkea73YA", + "outputId": "009dbf75-ac1f-416f-f250-73d12f9da35c" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "species=setosa
sepal_length=%{x}
sepal_width=%{y}
petal_length=%{z}", + "legendgroup": "setosa", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "setosa", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 5.1, + 4.9, + 4.7, + 4.6, + 5, + 5.4, + 4.6, + 5, + 4.4, + 4.9, + 5.4, + 4.8, + 4.8, + 4.3, + 5.8, + 5.7, + 5.4, + 5.1, + 5.7, + 5.1, + 5.4, + 5.1, + 4.6, + 5.1, + 4.8, + 5, + 5, + 5.2, + 5.2, + 4.7, + 4.8, + 5.4, + 5.2, + 5.5, + 4.9, + 5, + 5.5, + 4.9, + 4.4, + 5.1, + 5, + 4.5, + 4.4, + 5, + 5.1, + 4.8, + 5.1, + 4.6, + 5.3, + 5 + ], + "y": [ + 3.5, + 3, + 3.2, + 3.1, + 3.6, + 3.9, + 3.4, + 3.4, + 2.9, + 3.1, + 3.7, + 3.4, + 3, + 3, + 4, + 4.4, + 3.9, + 3.5, + 3.8, + 3.8, + 3.4, + 3.7, + 3.6, + 3.3, + 3.4, + 3, + 3.4, + 3.5, + 3.4, + 3.2, + 3.1, + 3.4, + 4.1, + 4.2, + 3.1, + 3.2, + 3.5, + 3.1, + 3, + 3.4, + 3.5, + 2.3, + 3.2, + 3.5, + 3.8, + 3, + 3.8, + 3.2, + 3.7, + 3.3 + ], + "z": [ + 1.4, + 1.4, + 1.3, + 1.5, + 1.4, + 1.7, + 1.4, + 1.5, + 1.4, + 1.5, + 1.5, + 1.6, + 1.4, + 1.1, + 1.2, + 1.5, + 1.3, + 1.4, + 1.7, + 1.5, + 1.7, + 1.5, + 1, + 1.7, + 1.9, + 1.6, + 1.6, + 1.5, + 1.4, + 1.6, + 1.6, + 1.5, + 1.5, + 1.4, + 1.5, + 1.2, + 1.3, + 1.5, + 1.3, + 1.5, + 1.3, + 1.3, + 1.3, + 1.6, + 1.9, + 1.4, + 1.6, + 1.4, + 1.5, + 1.4 + ] + }, + { + "hovertemplate": "species=versicolor
sepal_length=%{x}
sepal_width=%{y}
petal_length=%{z}", + "legendgroup": "versicolor", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "markers", + "name": "versicolor", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 7, + 6.4, + 6.9, + 5.5, + 6.5, + 5.7, + 6.3, + 4.9, + 6.6, + 5.2, + 5, + 5.9, + 6, + 6.1, + 5.6, + 6.7, + 5.6, + 5.8, + 6.2, + 5.6, + 5.9, + 6.1, + 6.3, + 6.1, + 6.4, + 6.6, + 6.8, + 6.7, + 6, + 5.7, + 5.5, + 5.5, + 5.8, + 6, + 5.4, + 6, + 6.7, + 6.3, + 5.6, + 5.5, + 5.5, + 6.1, + 5.8, + 5, + 5.6, + 5.7, + 5.7, + 6.2, + 5.1, + 5.7 + ], + "y": [ + 3.2, + 3.2, + 3.1, + 2.3, + 2.8, + 2.8, + 3.3, + 2.4, + 2.9, + 2.7, + 2, + 3, + 2.2, + 2.9, + 2.9, + 3.1, + 3, + 2.7, + 2.2, + 2.5, + 3.2, + 2.8, + 2.5, + 2.8, + 2.9, + 3, + 2.8, + 3, + 2.9, + 2.6, + 2.4, + 2.4, + 2.7, + 2.7, + 3, + 3.4, + 3.1, + 2.3, + 3, + 2.5, + 2.6, + 3, + 2.6, + 2.3, + 2.7, + 3, + 2.9, + 2.9, + 2.5, + 2.8 + ], + "z": [ + 4.7, + 4.5, + 4.9, + 4, + 4.6, + 4.5, + 4.7, + 3.3, + 4.6, + 3.9, + 3.5, + 4.2, + 4, + 4.7, + 3.6, + 4.4, + 4.5, + 4.1, + 4.5, + 3.9, + 4.8, + 4, + 4.9, + 4.7, + 4.3, + 4.4, + 4.8, + 5, + 4.5, + 3.5, + 3.8, + 3.7, + 3.9, + 5.1, + 4.5, + 4.5, + 4.7, + 4.4, + 4.1, + 4, + 4.4, + 4.6, + 4, + 3.3, + 4.2, + 4.2, + 4.2, + 4.3, + 3, + 4.1 + ] + }, + { + "hovertemplate": "species=virginica
sepal_length=%{x}
sepal_width=%{y}
petal_length=%{z}", + "legendgroup": "virginica", + "marker": { + "color": "#00cc96", + "symbol": "circle" + }, + "mode": "markers", + "name": "virginica", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 6.3, + 5.8, + 7.1, + 6.3, + 6.5, + 7.6, + 4.9, + 7.3, + 6.7, + 7.2, + 6.5, + 6.4, + 6.8, + 5.7, + 5.8, + 6.4, + 6.5, + 7.7, + 7.7, + 6, + 6.9, + 5.6, + 7.7, + 6.3, + 6.7, + 7.2, + 6.2, + 6.1, + 6.4, + 7.2, + 7.4, + 7.9, + 6.4, + 6.3, + 6.1, + 7.7, + 6.3, + 6.4, + 6, + 6.9, + 6.7, + 6.9, + 5.8, + 6.8, + 6.7, + 6.7, + 6.3, + 6.5, + 6.2, + 5.9 + ], + "y": [ + 3.3, + 2.7, + 3, + 2.9, + 3, + 3, + 2.5, + 2.9, + 2.5, + 3.6, + 3.2, + 2.7, + 3, + 2.5, + 2.8, + 3.2, + 3, + 3.8, + 2.6, + 2.2, + 3.2, + 2.8, + 2.8, + 2.7, + 3.3, + 3.2, + 2.8, + 3, + 2.8, + 3, + 2.8, + 3.8, + 2.8, + 2.8, + 2.6, + 3, + 3.4, + 3.1, + 3, + 3.1, + 3.1, + 3.1, + 2.7, + 3.2, + 3.3, + 3, + 2.5, + 3, + 3.4, + 3 + ], + "z": [ + 6, + 5.1, + 5.9, + 5.6, + 5.8, + 6.6, + 4.5, + 6.3, + 5.8, + 6.1, + 5.1, + 5.3, + 5.5, + 5, + 5.1, + 5.3, + 5.5, + 6.7, + 6.9, + 5, + 5.7, + 4.9, + 6.7, + 4.9, + 5.7, + 6, + 4.8, + 4.9, + 5.6, + 5.8, + 6.1, + 6.4, + 5.6, + 5.1, + 5.6, + 6.1, + 5.6, + 5.5, + 4.8, + 5.4, + 5.6, + 5.1, + 5.1, + 5.9, + 5.7, + 5.2, + 5, + 5.2, + 5.4, + 5.1 + ] + } + ], + "layout": { + "legend": { + "title": { + "text": "species" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "scene": { + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "xaxis": { + "title": { + "text": "sepal_length" + } + }, + "yaxis": { + "title": { + "text": "sepal_width" + } + }, + "zaxis": { + "title": { + "text": "petal_length" + } + } + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.scatter_3d(iris,x='sepal_length',y='sepal_width',z='petal_length',color='species')" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "CM9VHflKTpNo", + "outputId": "d1f3d6ea-a298-496e-cdce-f014f1039b0f" + }, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "dimensions": [ + { + "axis": { + "matches": true + }, + "label": "sepal_length", + "values": [ + 5.1, + 4.9, + 4.7, + 4.6, + 5, + 5.4, + 4.6, + 5, + 4.4, + 4.9, + 5.4, + 4.8, + 4.8, + 4.3, + 5.8, + 5.7, + 5.4, + 5.1, + 5.7, + 5.1, + 5.4, + 5.1, + 4.6, + 5.1, + 4.8, + 5, + 5, + 5.2, + 5.2, + 4.7, + 4.8, + 5.4, + 5.2, + 5.5, + 4.9, + 5, + 5.5, + 4.9, + 4.4, + 5.1, + 5, + 4.5, + 4.4, + 5, + 5.1, + 4.8, + 5.1, + 4.6, + 5.3, + 5 + ] + }, + { + "axis": { + "matches": true + }, + "label": "sepal_width", + "values": [ + 3.5, + 3, + 3.2, + 3.1, + 3.6, + 3.9, + 3.4, + 3.4, + 2.9, + 3.1, + 3.7, + 3.4, + 3, + 3, + 4, + 4.4, + 3.9, + 3.5, + 3.8, + 3.8, + 3.4, + 3.7, + 3.6, + 3.3, + 3.4, + 3, + 3.4, + 3.5, + 3.4, + 3.2, + 3.1, + 3.4, + 4.1, + 4.2, + 3.1, + 3.2, + 3.5, + 3.1, + 3, + 3.4, + 3.5, + 2.3, + 3.2, + 3.5, + 3.8, + 3, + 3.8, + 3.2, + 3.7, + 3.3 + ] + }, + { + "axis": { + "matches": true + }, + "label": "petal_length", + "values": [ + 1.4, + 1.4, + 1.3, + 1.5, + 1.4, + 1.7, + 1.4, + 1.5, + 1.4, + 1.5, + 1.5, + 1.6, + 1.4, + 1.1, + 1.2, + 1.5, + 1.3, + 1.4, + 1.7, + 1.5, + 1.7, + 1.5, + 1, + 1.7, + 1.9, + 1.6, + 1.6, + 1.5, + 1.4, + 1.6, + 1.6, + 1.5, + 1.5, + 1.4, + 1.5, + 1.2, + 1.3, + 1.5, + 1.3, + 1.5, + 1.3, + 1.3, + 1.3, + 1.6, + 1.9, + 1.4, + 1.6, + 1.4, + 1.5, + 1.4 + ] + }, + { + "axis": { + "matches": true + }, + "label": "petal_width", + "values": [ + 0.2, + 0.2, + 0.2, + 0.2, + 0.2, + 0.4, + 0.3, + 0.2, + 0.2, + 0.1, + 0.2, + 0.2, + 0.1, + 0.1, + 0.2, + 0.4, + 0.4, + 0.3, + 0.3, + 0.3, + 0.2, + 0.4, + 0.2, + 0.5, + 0.2, + 0.2, + 0.4, + 0.2, + 0.2, + 0.2, + 0.2, + 0.4, + 0.1, + 0.2, + 0.1, + 0.2, + 0.2, + 0.1, + 0.2, + 0.2, + 0.3, + 0.3, + 0.2, + 0.6, + 0.4, + 0.3, + 0.2, + 0.2, + 0.2, + 0.2 + ] + } + ], + "hovertemplate": "species=setosa
%{xaxis.title.text}=%{x}
%{yaxis.title.text}=%{y}", + "legendgroup": "setosa", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "name": "setosa", + "showlegend": true, + "type": "splom" + }, + { + "dimensions": [ + { + "axis": { + "matches": true + }, + "label": "sepal_length", + "values": [ + 7, + 6.4, + 6.9, + 5.5, + 6.5, + 5.7, + 6.3, + 4.9, + 6.6, + 5.2, + 5, + 5.9, + 6, + 6.1, + 5.6, + 6.7, + 5.6, + 5.8, + 6.2, + 5.6, + 5.9, + 6.1, + 6.3, + 6.1, + 6.4, + 6.6, + 6.8, + 6.7, + 6, + 5.7, + 5.5, + 5.5, + 5.8, + 6, + 5.4, + 6, + 6.7, + 6.3, + 5.6, + 5.5, + 5.5, + 6.1, + 5.8, + 5, + 5.6, + 5.7, + 5.7, + 6.2, + 5.1, + 5.7 + ] + }, + { + "axis": { + "matches": true + }, + "label": "sepal_width", + "values": [ + 3.2, + 3.2, + 3.1, + 2.3, + 2.8, + 2.8, + 3.3, + 2.4, + 2.9, + 2.7, + 2, + 3, + 2.2, + 2.9, + 2.9, + 3.1, + 3, + 2.7, + 2.2, + 2.5, + 3.2, + 2.8, + 2.5, + 2.8, + 2.9, + 3, + 2.8, + 3, + 2.9, + 2.6, + 2.4, + 2.4, + 2.7, + 2.7, + 3, + 3.4, + 3.1, + 2.3, + 3, + 2.5, + 2.6, + 3, + 2.6, + 2.3, + 2.7, + 3, + 2.9, + 2.9, + 2.5, + 2.8 + ] + }, + { + "axis": { + "matches": true + }, + "label": "petal_length", + "values": [ + 4.7, + 4.5, + 4.9, + 4, + 4.6, + 4.5, + 4.7, + 3.3, + 4.6, + 3.9, + 3.5, + 4.2, + 4, + 4.7, + 3.6, + 4.4, + 4.5, + 4.1, + 4.5, + 3.9, + 4.8, + 4, + 4.9, + 4.7, + 4.3, + 4.4, + 4.8, + 5, + 4.5, + 3.5, + 3.8, + 3.7, + 3.9, + 5.1, + 4.5, + 4.5, + 4.7, + 4.4, + 4.1, + 4, + 4.4, + 4.6, + 4, + 3.3, + 4.2, + 4.2, + 4.2, + 4.3, + 3, + 4.1 + ] + }, + { + "axis": { + "matches": true + }, + "label": "petal_width", + "values": [ + 1.4, + 1.5, + 1.5, + 1.3, + 1.5, + 1.3, + 1.6, + 1, + 1.3, + 1.4, + 1, + 1.5, + 1, + 1.4, + 1.3, + 1.4, + 1.5, + 1, + 1.5, + 1.1, + 1.8, + 1.3, + 1.5, + 1.2, + 1.3, + 1.4, + 1.4, + 1.7, + 1.5, + 1, + 1.1, + 1, + 1.2, + 1.6, + 1.5, + 1.6, + 1.5, + 1.3, + 1.3, + 1.3, + 1.2, + 1.4, + 1.2, + 1, + 1.3, + 1.2, + 1.3, + 1.3, + 1.1, + 1.3 + ] + } + ], + "hovertemplate": "species=versicolor
%{xaxis.title.text}=%{x}
%{yaxis.title.text}=%{y}", + "legendgroup": "versicolor", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "name": "versicolor", + "showlegend": true, + "type": "splom" + }, + { + "dimensions": [ + { + "axis": { + "matches": true + }, + "label": "sepal_length", + "values": [ + 6.3, + 5.8, + 7.1, + 6.3, + 6.5, + 7.6, + 4.9, + 7.3, + 6.7, + 7.2, + 6.5, + 6.4, + 6.8, + 5.7, + 5.8, + 6.4, + 6.5, + 7.7, + 7.7, + 6, + 6.9, + 5.6, + 7.7, + 6.3, + 6.7, + 7.2, + 6.2, + 6.1, + 6.4, + 7.2, + 7.4, + 7.9, + 6.4, + 6.3, + 6.1, + 7.7, + 6.3, + 6.4, + 6, + 6.9, + 6.7, + 6.9, + 5.8, + 6.8, + 6.7, + 6.7, + 6.3, + 6.5, + 6.2, + 5.9 + ] + }, + { + "axis": { + "matches": true + }, + "label": "sepal_width", + "values": [ + 3.3, + 2.7, + 3, + 2.9, + 3, + 3, + 2.5, + 2.9, + 2.5, + 3.6, + 3.2, + 2.7, + 3, + 2.5, + 2.8, + 3.2, + 3, + 3.8, + 2.6, + 2.2, + 3.2, + 2.8, + 2.8, + 2.7, + 3.3, + 3.2, + 2.8, + 3, + 2.8, + 3, + 2.8, + 3.8, + 2.8, + 2.8, + 2.6, + 3, + 3.4, + 3.1, + 3, + 3.1, + 3.1, + 3.1, + 2.7, + 3.2, + 3.3, + 3, + 2.5, + 3, + 3.4, + 3 + ] + }, + { + "axis": { + "matches": true + }, + "label": "petal_length", + "values": [ + 6, + 5.1, + 5.9, + 5.6, + 5.8, + 6.6, + 4.5, + 6.3, + 5.8, + 6.1, + 5.1, + 5.3, + 5.5, + 5, + 5.1, + 5.3, + 5.5, + 6.7, + 6.9, + 5, + 5.7, + 4.9, + 6.7, + 4.9, + 5.7, + 6, + 4.8, + 4.9, + 5.6, + 5.8, + 6.1, + 6.4, + 5.6, + 5.1, + 5.6, + 6.1, + 5.6, + 5.5, + 4.8, + 5.4, + 5.6, + 5.1, + 5.1, + 5.9, + 5.7, + 5.2, + 5, + 5.2, + 5.4, + 5.1 + ] + }, + { + "axis": { + "matches": true + }, + "label": "petal_width", + "values": [ + 2.5, + 1.9, + 2.1, + 1.8, + 2.2, + 2.1, + 1.7, + 1.8, + 1.8, + 2.5, + 2, + 1.9, + 2.1, + 2, + 2.4, + 2.3, + 1.8, + 2.2, + 2.3, + 1.5, + 2.3, + 2, + 2, + 1.8, + 2.1, + 1.8, + 1.8, + 1.8, + 2.1, + 1.6, + 1.9, + 2, + 2.2, + 1.5, + 1.4, + 2.3, + 2.4, + 1.8, + 1.8, + 2.1, + 2.4, + 2.3, + 1.9, + 2.3, + 2.5, + 2.3, + 1.9, + 2, + 2.3, + 1.8 + ] + } + ], + "hovertemplate": "species=virginica
%{xaxis.title.text}=%{x}
%{yaxis.title.text}=%{y}", + "legendgroup": "virginica", + "marker": { + "color": "#00cc96", + "symbol": "circle" + }, + "name": "virginica", + "showlegend": true, + "type": "splom" + } + ], + "layout": { + "dragmode": "select", + "legend": { + "title": { + "text": "species" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# scatter_matrix -> dimensions\n", + "px.scatter_matrix(iris,dimensions=['sepal_length','sepal_width','petal_length','petal_width'],color='species')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "3kAe3QRaaxkr" + }, + "outputs": [], + "source": [ + "import plotly.graph_objects as go\n", + "import plotly.express as px\n", + "import numpy as np" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "F1URow1Wv69K" + }, + "outputs": [], + "source": [ + "# facet plot\n", + "tips = px.data.tips()\n", + "gap = px.data.gapminder()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "EO9QQLZdwOB-", + "outputId": "741ebb19-a210-4165-a351-24f4d60d75df" + }, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + "\n", + "\n", + "
\n", + "
\n", + "\n", + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.scatter(tips, x='total_bill', y='tip', facet_col='smoker', facet_row='sex',color='time')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "LBSOB3Wiw_8B", + "outputId": "4d0ec650-4383-4701-8b06-7a66ccfeb71d" + }, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + "\n", + "\n", + "
\n", + "
\n", + "\n", + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.histogram(tips,x='total_bill',facet_row='sex')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "KE8ToibsxQu7", + "outputId": "4bbb93d9-89e3-49ca-ce05-59a0b6ce7117" + }, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + "\n", + "\n", + "
\n", + "
\n", + "\n", + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.scatter(gap, x='lifeExp', y='gdpPercap', facet_col='year', facet_col_wrap=3)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "uGt49kATcsdu", + "outputId": "ee547118-d3a2-44c9-905c-ccf26e84ac3d" + }, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + "\n", + "\n", + "
\n", + "
\n", + "\n", + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# 3d Surface plot\n", + "# can not be created using Plotly express\n", + "# we will use plotly graph object -> go\n", + "\n", + "x = np.linspace(-10,10,100)\n", + "y = np.linspace(-10,10,100)\n", + "\n", + "xx, yy = np.meshgrid(x,y)\n", + "\n", + "z = xx**2 + yy**2\n", + "# z = np.sin(xx) + np.tan(yy)\n", + "# z = np.sqrt(xx**2 + yy**2)\n", + "\n", + "\n", + "trace = go.Surface(x=x,y=y,z=z)\n", + "\n", + "data = [trace]\n", + "\n", + "layout = go.Layout(title='3D Surface Plot')\n", + "\n", + "fig = go.Figure(data,layout)\n", + "\n", + "fig.show()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 542 + }, + "id": "4typlUV8pYzc", + "outputId": "2d9fc95a-abf5-48d6-ff2d-cb9e99d329cc" + }, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + "\n", + "\n", + "
\n", + "
\n", + "\n", + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Contour plot\n", + "x = np.linspace(-10,10,100)\n", + "y = np.linspace(-10,10,100)\n", + "\n", + "xx, yy = np.meshgrid(x,y)\n", + "\n", + "# z = xx**2 + yy**2\n", + "z = np.sin(xx) + np.cos(yy)\n", + "# z = np.sqrt(xx**2 + yy**2)\n", + "\n", + "\n", + "trace = go.Contour(x=x,y=y,z=z)\n", + "\n", + "data = [trace]\n", + "\n", + "layout = go.Layout(title='3D Surface Plot')\n", + "\n", + "fig = go.Figure(data,layout)\n", + "\n", + "fig.show()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "NFEn6aMNpabg" + }, + "outputs": [], + "source": [ + "# Subplots\n", + "from plotly.subplots import make_subplots" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "Rmi5W-cTpb3s" + }, + "outputs": [], + "source": [ + "fig = make_subplots(rows=2,cols=2)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "colab": { + "base_uri": "https://localhost:8080/", + "height": 236 + }, + "id": "reZsIibiEmO3", + "outputId": "33630412-cb2e-43d0-db07-2d6787452e85" + }, + "outputs": [ + { + "ename": "AttributeError", + "evalue": "ignored", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)", + "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 13\u001b[0m fig.add_trace(\n\u001b[0;32m---> 14\u001b[0;31m \u001b[0mpx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mScatter\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m9\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m5\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0my\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m10\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 15\u001b[0m \u001b[0mrow\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 16\u001b[0m \u001b[0mcol\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;31mAttributeError\u001b[0m: module 'plotly.express' has no attribute 'Scatter'" + ] + } + ], + "source": [ + "fig.add_trace(\n", + " go.Scatter(x=[1,9,5],y=[2,10,1]),\n", + " row = 1,\n", + " col = 1\n", + ")\n", + "\n", + "fig.add_trace(\n", + " go.Histogram(x=[1,9,5,22,109,134,56,78,12,34,89]),\n", + " row = 1,\n", + " col = 2\n", + ")\n", + "\n", + "fig.add_trace(\n", + " px.Scatter(x=[1,9,5],y=[2,10,1]),\n", + " row = 2,\n", + " col = 1\n", + ")\n", + "\n", + "fig.add_trace(\n", + " go.Histogram(x=[1,9,5,22,109,134,56,78,12,34,89]),\n", + " row = 2,\n", + " col = 2\n", + ")\n", + "\n", + "fig.update_layout(title='Subplot Demo')\n", + "\n", + "fig.show()\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "CiHdKQOj2x5P" + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "colab": { + "provenance": [] + }, + "kernelspec": { + "display_name": "Python 3", + "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.12.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/Plotly/plotly graph objects.ipynb b/Plotly/plotly graph objects.ipynb new file mode 100644 index 0000000..70ed96b --- /dev/null +++ b/Plotly/plotly graph objects.ipynb @@ -0,0 +1,8070 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
countrycontinentyearlifeExppopgdpPercapiso_alphaiso_num
0AfghanistanAsia195228.8018425333779.445314AFG4
1AfghanistanAsia195730.3329240934820.853030AFG4
2AfghanistanAsia196231.99710267083853.100710AFG4
3AfghanistanAsia196734.02011537966836.197138AFG4
4AfghanistanAsia197236.08813079460739.981106AFG4
\n", + "
" + ], + "text/plain": [ + " country continent year lifeExp pop gdpPercap iso_alpha \\\n", + "0 Afghanistan Asia 1952 28.801 8425333 779.445314 AFG \n", + "1 Afghanistan Asia 1957 30.332 9240934 820.853030 AFG \n", + "2 Afghanistan Asia 1962 31.997 10267083 853.100710 AFG \n", + "3 Afghanistan Asia 1967 34.020 11537966 836.197138 AFG \n", + "4 Afghanistan Asia 1972 36.088 13079460 739.981106 AFG \n", + "\n", + " iso_num \n", + "0 4 \n", + "1 4 \n", + "2 4 \n", + "3 4 \n", + "4 4 " + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import numpy as np\n", + "import pandas as pd\n", + "import plotly.graph_objects as go\n", + "import plotly.express as px\n", + "\n", + "# Importing Dataframes\n", + "tips = px.data.tips()\n", + "gap = px.data.gapminder()\n", + "gap.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "marker": { + "color": "blue", + "size": 5 + }, + "mode": "markers", + "text": [ + "Afghanistan", + "Afghanistan", + "Afghanistan", + "Afghanistan", + "Afghanistan", + "Afghanistan", + "Afghanistan", + "Afghanistan", + "Afghanistan", + "Afghanistan", + "Afghanistan", + "Afghanistan", + "Albania", + "Albania", + "Albania", + "Albania", + "Albania", + "Albania", + "Albania", + "Albania", + "Albania", + "Albania", + "Albania", + "Albania", + "Algeria", + "Algeria", + "Algeria", + "Algeria", + "Algeria", + "Algeria", + "Algeria", + "Algeria", + "Algeria", + "Algeria", + "Algeria", + "Algeria", + "Angola", + "Angola", + "Angola", + "Angola", + "Angola", + "Angola", + "Angola", + "Angola", + "Angola", + "Angola", + "Angola", + "Angola", + "Argentina", + "Argentina", + "Argentina", + "Argentina", + "Argentina", + "Argentina", + "Argentina", + "Argentina", + "Argentina", + "Argentina", + "Argentina", + "Argentina", + "Australia", + "Australia", + "Australia", + "Australia", + "Australia", + "Australia", + "Australia", + "Australia", + "Australia", + "Australia", + "Australia", + "Australia", + "Austria", + "Austria", + "Austria", + "Austria", + "Austria", + "Austria", + "Austria", + "Austria", + "Austria", + "Austria", + "Austria", + "Austria", + "Bahrain", + "Bahrain", + "Bahrain", + "Bahrain", + "Bahrain", + "Bahrain", + "Bahrain", + "Bahrain", + "Bahrain", + "Bahrain", + "Bahrain", + "Bahrain", + "Bangladesh", + "Bangladesh", + "Bangladesh", + "Bangladesh", + "Bangladesh", + "Bangladesh", + "Bangladesh", + "Bangladesh", + "Bangladesh", + "Bangladesh", + "Bangladesh", + "Bangladesh", + "Belgium", + "Belgium", + "Belgium", + "Belgium", + "Belgium", + "Belgium", + "Belgium", + "Belgium", + "Belgium", + "Belgium", + "Belgium", + "Belgium", + "Benin", + "Benin", + "Benin", + "Benin", + "Benin", + "Benin", + "Benin", + "Benin", + "Benin", + "Benin", + "Benin", + "Benin", + "Bolivia", + "Bolivia", + "Bolivia", + "Bolivia", + "Bolivia", + "Bolivia", + "Bolivia", + "Bolivia", + "Bolivia", + "Bolivia", + "Bolivia", + "Bolivia", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Bosnia and Herzegovina", + "Botswana", + "Botswana", + "Botswana", + "Botswana", + "Botswana", + "Botswana", + "Botswana", + "Botswana", + "Botswana", + "Botswana", + "Botswana", + "Botswana", + "Brazil", + "Brazil", + "Brazil", + "Brazil", + "Brazil", + "Brazil", + "Brazil", + "Brazil", + "Brazil", + "Brazil", + "Brazil", + "Brazil", + "Bulgaria", + "Bulgaria", + "Bulgaria", + "Bulgaria", + "Bulgaria", + "Bulgaria", + "Bulgaria", + "Bulgaria", + "Bulgaria", + "Bulgaria", + "Bulgaria", + "Bulgaria", + "Burkina Faso", + "Burkina Faso", + "Burkina Faso", + "Burkina Faso", + "Burkina Faso", + "Burkina Faso", + "Burkina Faso", + "Burkina Faso", + "Burkina Faso", + "Burkina Faso", + "Burkina Faso", + "Burkina Faso", + "Burundi", + "Burundi", + "Burundi", + "Burundi", + "Burundi", + "Burundi", + "Burundi", + "Burundi", + "Burundi", + "Burundi", + "Burundi", + "Burundi", + "Cambodia", + "Cambodia", + "Cambodia", + "Cambodia", + "Cambodia", + "Cambodia", + "Cambodia", + "Cambodia", + "Cambodia", + "Cambodia", + "Cambodia", + "Cambodia", + "Cameroon", + "Cameroon", + "Cameroon", + "Cameroon", + "Cameroon", + "Cameroon", + "Cameroon", + "Cameroon", + "Cameroon", + "Cameroon", + "Cameroon", + "Cameroon", + "Canada", + "Canada", + "Canada", + "Canada", + "Canada", + "Canada", + "Canada", + "Canada", + "Canada", + "Canada", + "Canada", + "Canada", + "Central African Republic", + "Central African Republic", + "Central African Republic", + "Central African Republic", + "Central African Republic", + "Central African Republic", + "Central African Republic", + "Central African Republic", + "Central African Republic", + "Central African Republic", + "Central African Republic", + "Central African Republic", + "Chad", + "Chad", + "Chad", + "Chad", + "Chad", + "Chad", + "Chad", + "Chad", + "Chad", + "Chad", + "Chad", + "Chad", + "Chile", + "Chile", + "Chile", + "Chile", + "Chile", + "Chile", + "Chile", + "Chile", + "Chile", + "Chile", + "Chile", + "Chile", + "China", + "China", + "China", + "China", + "China", + "China", + "China", + "China", + "China", + "China", + "China", + "China", + "Colombia", + "Colombia", + "Colombia", + "Colombia", + "Colombia", + "Colombia", + "Colombia", + "Colombia", + "Colombia", + "Colombia", + "Colombia", + "Colombia", + "Comoros", + "Comoros", + "Comoros", + "Comoros", + "Comoros", + "Comoros", + "Comoros", + "Comoros", + "Comoros", + "Comoros", + "Comoros", + "Comoros", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Dem. Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Congo, Rep.", + "Costa Rica", + "Costa Rica", + "Costa Rica", + "Costa Rica", + "Costa Rica", + "Costa Rica", + "Costa Rica", + "Costa Rica", + "Costa Rica", + "Costa Rica", + "Costa Rica", + "Costa Rica", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Cote d'Ivoire", + "Croatia", + "Croatia", + "Croatia", + "Croatia", + "Croatia", + "Croatia", + "Croatia", + "Croatia", + "Croatia", + "Croatia", + "Croatia", + "Croatia", + "Cuba", + "Cuba", + "Cuba", + "Cuba", + "Cuba", + "Cuba", + "Cuba", + "Cuba", + "Cuba", + "Cuba", + "Cuba", + "Cuba", + "Czech Republic", + "Czech Republic", + "Czech Republic", + "Czech Republic", + "Czech Republic", + "Czech Republic", + "Czech Republic", + "Czech Republic", + "Czech Republic", + "Czech Republic", + "Czech Republic", + "Czech Republic", + "Denmark", + "Denmark", + "Denmark", + "Denmark", + "Denmark", + "Denmark", + "Denmark", + "Denmark", + "Denmark", + "Denmark", + "Denmark", + "Denmark", + "Djibouti", + "Djibouti", + "Djibouti", + "Djibouti", + "Djibouti", + "Djibouti", + "Djibouti", + "Djibouti", + "Djibouti", + "Djibouti", + "Djibouti", + "Djibouti", + "Dominican Republic", + "Dominican Republic", + "Dominican Republic", + "Dominican Republic", + "Dominican Republic", + "Dominican Republic", + "Dominican Republic", + "Dominican Republic", + "Dominican Republic", + "Dominican Republic", + "Dominican Republic", + "Dominican Republic", + "Ecuador", + "Ecuador", + "Ecuador", + "Ecuador", + "Ecuador", + "Ecuador", + "Ecuador", + "Ecuador", + "Ecuador", + "Ecuador", + "Ecuador", + "Ecuador", + "Egypt", + "Egypt", + "Egypt", + "Egypt", + "Egypt", + "Egypt", + "Egypt", + "Egypt", + "Egypt", + "Egypt", + "Egypt", + "Egypt", + "El Salvador", + "El Salvador", + "El Salvador", + "El Salvador", + "El Salvador", + "El Salvador", + "El Salvador", + "El Salvador", + "El Salvador", + "El Salvador", + "El Salvador", + "El Salvador", + "Equatorial Guinea", + "Equatorial Guinea", + "Equatorial Guinea", + "Equatorial Guinea", + "Equatorial Guinea", + "Equatorial Guinea", + "Equatorial Guinea", + "Equatorial Guinea", + "Equatorial Guinea", + "Equatorial Guinea", + "Equatorial Guinea", + "Equatorial Guinea", + "Eritrea", + "Eritrea", + "Eritrea", + "Eritrea", + "Eritrea", + "Eritrea", + "Eritrea", + "Eritrea", + "Eritrea", + "Eritrea", + "Eritrea", + "Eritrea", + "Ethiopia", + "Ethiopia", + "Ethiopia", + "Ethiopia", + "Ethiopia", + "Ethiopia", + "Ethiopia", + "Ethiopia", + "Ethiopia", + "Ethiopia", + "Ethiopia", + "Ethiopia", + "Finland", + "Finland", + "Finland", + "Finland", + "Finland", + "Finland", + "Finland", + "Finland", + "Finland", + "Finland", + "Finland", + "Finland", + "France", + "France", + "France", + "France", + "France", + "France", + "France", + "France", + "France", + "France", + "France", + "France", + "Gabon", + "Gabon", + "Gabon", + "Gabon", + "Gabon", + "Gabon", + "Gabon", + "Gabon", + "Gabon", + "Gabon", + "Gabon", + "Gabon", + "Gambia", + "Gambia", + "Gambia", + "Gambia", + "Gambia", + "Gambia", + "Gambia", + "Gambia", + "Gambia", + "Gambia", + "Gambia", + "Gambia", + "Germany", + "Germany", + "Germany", + "Germany", + "Germany", + "Germany", + "Germany", + "Germany", + "Germany", + "Germany", + "Germany", + "Germany", + "Ghana", + "Ghana", + "Ghana", + "Ghana", + "Ghana", + "Ghana", + "Ghana", + "Ghana", + "Ghana", + "Ghana", + "Ghana", + "Ghana", + "Greece", + "Greece", + "Greece", + "Greece", + "Greece", + "Greece", + "Greece", + "Greece", + "Greece", + "Greece", + "Greece", + "Greece", + "Guatemala", + "Guatemala", + "Guatemala", + "Guatemala", + "Guatemala", + "Guatemala", + "Guatemala", + "Guatemala", + "Guatemala", + "Guatemala", + "Guatemala", + "Guatemala", + "Guinea", + "Guinea", + "Guinea", + "Guinea", + "Guinea", + "Guinea", + "Guinea", + "Guinea", + "Guinea", + "Guinea", + "Guinea", + "Guinea", + "Guinea-Bissau", + "Guinea-Bissau", + "Guinea-Bissau", + "Guinea-Bissau", + "Guinea-Bissau", + "Guinea-Bissau", + "Guinea-Bissau", + "Guinea-Bissau", + "Guinea-Bissau", + "Guinea-Bissau", + "Guinea-Bissau", + "Guinea-Bissau", + "Haiti", + "Haiti", + "Haiti", + "Haiti", + "Haiti", + "Haiti", + "Haiti", + "Haiti", + "Haiti", + "Haiti", + "Haiti", + "Haiti", + "Honduras", + "Honduras", + "Honduras", + "Honduras", + "Honduras", + "Honduras", + "Honduras", + "Honduras", + "Honduras", + "Honduras", + "Honduras", + "Honduras", + "Hong Kong, China", + "Hong Kong, China", + "Hong Kong, China", + "Hong Kong, China", + "Hong Kong, China", + "Hong Kong, China", + "Hong Kong, China", + "Hong Kong, China", + "Hong Kong, China", + "Hong Kong, China", + "Hong Kong, China", + "Hong Kong, China", + "Hungary", + "Hungary", + "Hungary", + "Hungary", + "Hungary", + "Hungary", + "Hungary", + "Hungary", + "Hungary", + "Hungary", + "Hungary", + "Hungary", + "Iceland", + "Iceland", + "Iceland", + "Iceland", + "Iceland", + "Iceland", + "Iceland", + "Iceland", + "Iceland", + "Iceland", + "Iceland", + "Iceland", + "India", + "India", + "India", + "India", + "India", + "India", + "India", + "India", + "India", + "India", + "India", + "India", + "Indonesia", + "Indonesia", + "Indonesia", + "Indonesia", + "Indonesia", + "Indonesia", + "Indonesia", + "Indonesia", + "Indonesia", + "Indonesia", + "Indonesia", + "Indonesia", + "Iran", + "Iran", + "Iran", + "Iran", + "Iran", + "Iran", + "Iran", + "Iran", + "Iran", + "Iran", + "Iran", + "Iran", + "Iraq", + "Iraq", + "Iraq", + "Iraq", + "Iraq", + "Iraq", + "Iraq", + "Iraq", + "Iraq", + "Iraq", + "Iraq", + "Iraq", + "Ireland", + "Ireland", + "Ireland", + "Ireland", + "Ireland", + "Ireland", + "Ireland", + "Ireland", + "Ireland", + "Ireland", + "Ireland", + "Ireland", + "Israel", + "Israel", + "Israel", + "Israel", + "Israel", + "Israel", + "Israel", + "Israel", + "Israel", + "Israel", + "Israel", + "Israel", + "Italy", + "Italy", + "Italy", + "Italy", + "Italy", + "Italy", + "Italy", + "Italy", + "Italy", + "Italy", + "Italy", + "Italy", + "Jamaica", + "Jamaica", + "Jamaica", + "Jamaica", + "Jamaica", + "Jamaica", + "Jamaica", + "Jamaica", + "Jamaica", + "Jamaica", + "Jamaica", + "Jamaica", + "Japan", + "Japan", + "Japan", + "Japan", + "Japan", + "Japan", + "Japan", + "Japan", + "Japan", + "Japan", + "Japan", + "Japan", + "Jordan", + "Jordan", + "Jordan", + "Jordan", + "Jordan", + "Jordan", + "Jordan", + "Jordan", + "Jordan", + "Jordan", + "Jordan", + "Jordan", + "Kenya", + "Kenya", + "Kenya", + "Kenya", + "Kenya", + "Kenya", + "Kenya", + "Kenya", + "Kenya", + "Kenya", + "Kenya", + "Kenya", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Dem. Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Korea, Rep.", + "Kuwait", + "Kuwait", + "Kuwait", + "Kuwait", + "Kuwait", + "Kuwait", + "Kuwait", + "Kuwait", + "Kuwait", + "Kuwait", + "Kuwait", + "Kuwait", + "Lebanon", + "Lebanon", + "Lebanon", + "Lebanon", + "Lebanon", + "Lebanon", + "Lebanon", + "Lebanon", + "Lebanon", + "Lebanon", + "Lebanon", + "Lebanon", + "Lesotho", + "Lesotho", + "Lesotho", + "Lesotho", + "Lesotho", + "Lesotho", + "Lesotho", + "Lesotho", + "Lesotho", + "Lesotho", + "Lesotho", + "Lesotho", + "Liberia", + "Liberia", + "Liberia", + "Liberia", + "Liberia", + "Liberia", + "Liberia", + "Liberia", + "Liberia", + "Liberia", + "Liberia", + "Liberia", + "Libya", + "Libya", + "Libya", + "Libya", + "Libya", + "Libya", + "Libya", + "Libya", + "Libya", + "Libya", + "Libya", + "Libya", + "Madagascar", + "Madagascar", + "Madagascar", + "Madagascar", + "Madagascar", + "Madagascar", + "Madagascar", + "Madagascar", + "Madagascar", + "Madagascar", + "Madagascar", + "Madagascar", + "Malawi", + "Malawi", + "Malawi", + "Malawi", + "Malawi", + "Malawi", + "Malawi", + "Malawi", + "Malawi", + "Malawi", + "Malawi", + "Malawi", + "Malaysia", + "Malaysia", + "Malaysia", + "Malaysia", + "Malaysia", + "Malaysia", + "Malaysia", + "Malaysia", + "Malaysia", + "Malaysia", + "Malaysia", + "Malaysia", + "Mali", + "Mali", + "Mali", + "Mali", + "Mali", + "Mali", + "Mali", + "Mali", + "Mali", + "Mali", + "Mali", + "Mali", + "Mauritania", + "Mauritania", + "Mauritania", + "Mauritania", + "Mauritania", + "Mauritania", + "Mauritania", + "Mauritania", + "Mauritania", + "Mauritania", + "Mauritania", + "Mauritania", + "Mauritius", + "Mauritius", + "Mauritius", + "Mauritius", + "Mauritius", + "Mauritius", + "Mauritius", + "Mauritius", + "Mauritius", + "Mauritius", + "Mauritius", + "Mauritius", + "Mexico", + "Mexico", + "Mexico", + "Mexico", + "Mexico", + "Mexico", + "Mexico", + "Mexico", + "Mexico", + "Mexico", + "Mexico", + "Mexico", + "Mongolia", + "Mongolia", + "Mongolia", + "Mongolia", + "Mongolia", + "Mongolia", + "Mongolia", + "Mongolia", + "Mongolia", + "Mongolia", + "Mongolia", + "Mongolia", + "Montenegro", + "Montenegro", + "Montenegro", + "Montenegro", + "Montenegro", + "Montenegro", + "Montenegro", + "Montenegro", + "Montenegro", + "Montenegro", + "Montenegro", + "Montenegro", + "Morocco", + "Morocco", + "Morocco", + "Morocco", + "Morocco", + "Morocco", + "Morocco", + "Morocco", + "Morocco", + "Morocco", + "Morocco", + "Morocco", + "Mozambique", + "Mozambique", + "Mozambique", + "Mozambique", + "Mozambique", + "Mozambique", + "Mozambique", + "Mozambique", + "Mozambique", + "Mozambique", + "Mozambique", + "Mozambique", + "Myanmar", + "Myanmar", + "Myanmar", + "Myanmar", + "Myanmar", + "Myanmar", + "Myanmar", + "Myanmar", + "Myanmar", + "Myanmar", + "Myanmar", + "Myanmar", + "Namibia", + "Namibia", + "Namibia", + "Namibia", + "Namibia", + "Namibia", + "Namibia", + "Namibia", + "Namibia", + "Namibia", + "Namibia", + "Namibia", + "Nepal", + "Nepal", + "Nepal", + "Nepal", + "Nepal", + "Nepal", + "Nepal", + "Nepal", + "Nepal", + "Nepal", + "Nepal", + "Nepal", + "Netherlands", + "Netherlands", + "Netherlands", + "Netherlands", + "Netherlands", + "Netherlands", + "Netherlands", + "Netherlands", + "Netherlands", + "Netherlands", + "Netherlands", + "Netherlands", + "New Zealand", + "New Zealand", + "New Zealand", + "New Zealand", + "New Zealand", + "New Zealand", + "New Zealand", + "New Zealand", + "New Zealand", + "New Zealand", + "New Zealand", + "New Zealand", + "Nicaragua", + "Nicaragua", + "Nicaragua", + "Nicaragua", + "Nicaragua", + "Nicaragua", + "Nicaragua", + "Nicaragua", + "Nicaragua", + "Nicaragua", + "Nicaragua", + "Nicaragua", + "Niger", + "Niger", + "Niger", + "Niger", + "Niger", + "Niger", + "Niger", + "Niger", + "Niger", + "Niger", + "Niger", + "Niger", + "Nigeria", + "Nigeria", + "Nigeria", + "Nigeria", + "Nigeria", + "Nigeria", + "Nigeria", + "Nigeria", + "Nigeria", + "Nigeria", + "Nigeria", + "Nigeria", + "Norway", + "Norway", + "Norway", + "Norway", + "Norway", + "Norway", + "Norway", + "Norway", + "Norway", + "Norway", + "Norway", + "Norway", + "Oman", + "Oman", + "Oman", + "Oman", + "Oman", + "Oman", + "Oman", + "Oman", + "Oman", + "Oman", + "Oman", + "Oman", + "Pakistan", + "Pakistan", + "Pakistan", + "Pakistan", + "Pakistan", + "Pakistan", + "Pakistan", + "Pakistan", + "Pakistan", + "Pakistan", + "Pakistan", + "Pakistan", + "Panama", + "Panama", + "Panama", + "Panama", + "Panama", + "Panama", + "Panama", + "Panama", + "Panama", + "Panama", + "Panama", + "Panama", + "Paraguay", + "Paraguay", + "Paraguay", + "Paraguay", + "Paraguay", + "Paraguay", + "Paraguay", + "Paraguay", + "Paraguay", + "Paraguay", + "Paraguay", + "Paraguay", + "Peru", + "Peru", + "Peru", + "Peru", + "Peru", + "Peru", + "Peru", + "Peru", + "Peru", + "Peru", + "Peru", + "Peru", + "Philippines", + "Philippines", + "Philippines", + "Philippines", + "Philippines", + "Philippines", + "Philippines", + "Philippines", + "Philippines", + "Philippines", + "Philippines", + "Philippines", + "Poland", + "Poland", + "Poland", + "Poland", + "Poland", + "Poland", + "Poland", + "Poland", + "Poland", + "Poland", + "Poland", + "Poland", + "Portugal", + "Portugal", + "Portugal", + "Portugal", + "Portugal", + "Portugal", + "Portugal", + "Portugal", + "Portugal", + "Portugal", + "Portugal", + "Portugal", + "Puerto Rico", + "Puerto Rico", + "Puerto Rico", + "Puerto Rico", + "Puerto Rico", + "Puerto Rico", + "Puerto Rico", + "Puerto Rico", + "Puerto Rico", + "Puerto Rico", + "Puerto Rico", + "Puerto Rico", + "Reunion", + "Reunion", + "Reunion", + "Reunion", + "Reunion", + "Reunion", + "Reunion", + "Reunion", + "Reunion", + "Reunion", + "Reunion", + "Reunion", + "Romania", + "Romania", + "Romania", + "Romania", + "Romania", + "Romania", + "Romania", + "Romania", + "Romania", + "Romania", + "Romania", + "Romania", + "Rwanda", + "Rwanda", + "Rwanda", + "Rwanda", + "Rwanda", + "Rwanda", + "Rwanda", + "Rwanda", + "Rwanda", + "Rwanda", + "Rwanda", + "Rwanda", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Sao Tome and Principe", + "Saudi Arabia", + "Saudi Arabia", + "Saudi Arabia", + "Saudi Arabia", + "Saudi Arabia", + "Saudi Arabia", + "Saudi Arabia", + "Saudi Arabia", + "Saudi Arabia", + "Saudi Arabia", + "Saudi Arabia", + "Saudi Arabia", + "Senegal", + "Senegal", + "Senegal", + "Senegal", + "Senegal", + "Senegal", + "Senegal", + "Senegal", + "Senegal", + "Senegal", + "Senegal", + "Senegal", + "Serbia", + "Serbia", + "Serbia", + "Serbia", + "Serbia", + "Serbia", + "Serbia", + "Serbia", + "Serbia", + "Serbia", + "Serbia", + "Serbia", + "Sierra Leone", + "Sierra Leone", + "Sierra Leone", + "Sierra Leone", + "Sierra Leone", + "Sierra Leone", + "Sierra Leone", + "Sierra Leone", + "Sierra Leone", + "Sierra Leone", + "Sierra Leone", + "Sierra Leone", + "Singapore", + "Singapore", + "Singapore", + "Singapore", + "Singapore", + "Singapore", + "Singapore", + "Singapore", + "Singapore", + "Singapore", + "Singapore", + "Singapore", + "Slovak Republic", + "Slovak Republic", + "Slovak Republic", + "Slovak Republic", + "Slovak Republic", + "Slovak Republic", + "Slovak Republic", + "Slovak Republic", + "Slovak Republic", + "Slovak Republic", + "Slovak Republic", + "Slovak Republic", + "Slovenia", + "Slovenia", + "Slovenia", + "Slovenia", + "Slovenia", + "Slovenia", + "Slovenia", + "Slovenia", + "Slovenia", + "Slovenia", + "Slovenia", + "Slovenia", + "Somalia", + "Somalia", + "Somalia", + "Somalia", + "Somalia", + "Somalia", + "Somalia", + "Somalia", + "Somalia", + "Somalia", + "Somalia", + "Somalia", + "South Africa", + "South Africa", + "South Africa", + "South Africa", + "South Africa", + "South Africa", + "South Africa", + "South Africa", + "South Africa", + "South Africa", + "South Africa", + "South Africa", + "Spain", + "Spain", + "Spain", + "Spain", + "Spain", + "Spain", + "Spain", + "Spain", + "Spain", + "Spain", + "Spain", + "Spain", + "Sri Lanka", + "Sri Lanka", + "Sri Lanka", + "Sri Lanka", + "Sri Lanka", + "Sri Lanka", + "Sri Lanka", + "Sri Lanka", + "Sri Lanka", + "Sri Lanka", + "Sri Lanka", + "Sri Lanka", + "Sudan", + "Sudan", + "Sudan", + "Sudan", + "Sudan", + "Sudan", + "Sudan", + "Sudan", + "Sudan", + "Sudan", + "Sudan", + "Sudan", + "Swaziland", + "Swaziland", + "Swaziland", + "Swaziland", + "Swaziland", + "Swaziland", + "Swaziland", + "Swaziland", + "Swaziland", + "Swaziland", + "Swaziland", + "Swaziland", + "Sweden", + "Sweden", + "Sweden", + "Sweden", + "Sweden", + "Sweden", + "Sweden", + "Sweden", + "Sweden", + "Sweden", + "Sweden", + "Sweden", + "Switzerland", + "Switzerland", + "Switzerland", + "Switzerland", + "Switzerland", + "Switzerland", + "Switzerland", + "Switzerland", + "Switzerland", + "Switzerland", + "Switzerland", + "Switzerland", + "Syria", + "Syria", + "Syria", + "Syria", + "Syria", + "Syria", + "Syria", + "Syria", + "Syria", + "Syria", + "Syria", + "Syria", + "Taiwan", + "Taiwan", + "Taiwan", + "Taiwan", + "Taiwan", + "Taiwan", + "Taiwan", + "Taiwan", + "Taiwan", + "Taiwan", + "Taiwan", + "Taiwan", + "Tanzania", + "Tanzania", + "Tanzania", + "Tanzania", + "Tanzania", + "Tanzania", + "Tanzania", + "Tanzania", + "Tanzania", + "Tanzania", + "Tanzania", + "Tanzania", + "Thailand", + "Thailand", + "Thailand", + "Thailand", + "Thailand", + "Thailand", + "Thailand", + "Thailand", + "Thailand", + "Thailand", + "Thailand", + "Thailand", + "Togo", + "Togo", + "Togo", + "Togo", + "Togo", + "Togo", + "Togo", + "Togo", + "Togo", + "Togo", + "Togo", + "Togo", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Trinidad and Tobago", + "Tunisia", + "Tunisia", + "Tunisia", + "Tunisia", + "Tunisia", + "Tunisia", + "Tunisia", + "Tunisia", + "Tunisia", + "Tunisia", + "Tunisia", + "Tunisia", + "Turkey", + "Turkey", + "Turkey", + "Turkey", + "Turkey", + "Turkey", + "Turkey", + "Turkey", + "Turkey", + "Turkey", + "Turkey", + "Turkey", + "Uganda", + "Uganda", + "Uganda", + "Uganda", + "Uganda", + "Uganda", + "Uganda", + "Uganda", + "Uganda", + "Uganda", + "Uganda", + "Uganda", + "United Kingdom", + "United Kingdom", + "United Kingdom", + "United Kingdom", + "United Kingdom", + "United Kingdom", + "United Kingdom", + "United Kingdom", + "United Kingdom", + "United Kingdom", + "United Kingdom", + "United Kingdom", + "United States", + "United States", + "United States", + "United States", + "United States", + "United States", + "United States", + "United States", + "United States", + "United States", + "United States", + "United States", + "Uruguay", + "Uruguay", + "Uruguay", + "Uruguay", + "Uruguay", + "Uruguay", + "Uruguay", + "Uruguay", + "Uruguay", + "Uruguay", + "Uruguay", + "Uruguay", + "Venezuela", + "Venezuela", + "Venezuela", + "Venezuela", + "Venezuela", + "Venezuela", + "Venezuela", + "Venezuela", + "Venezuela", + "Venezuela", + "Venezuela", + "Venezuela", + "Vietnam", + "Vietnam", + "Vietnam", + "Vietnam", + "Vietnam", + "Vietnam", + "Vietnam", + "Vietnam", + "Vietnam", + "Vietnam", + "Vietnam", + "Vietnam", + "West Bank and Gaza", + "West Bank and Gaza", + "West Bank and Gaza", + "West Bank and Gaza", + "West Bank and Gaza", + "West Bank and Gaza", + "West Bank and Gaza", + "West Bank and Gaza", + "West Bank and Gaza", + "West Bank and Gaza", + "West Bank and Gaza", + "West Bank and Gaza", + "Yemen, Rep.", + "Yemen, Rep.", + "Yemen, Rep.", + "Yemen, Rep.", + "Yemen, Rep.", + "Yemen, Rep.", + "Yemen, Rep.", + "Yemen, Rep.", + "Yemen, Rep.", + "Yemen, Rep.", + "Yemen, Rep.", + "Yemen, Rep.", + "Zambia", + "Zambia", + "Zambia", + "Zambia", + "Zambia", + "Zambia", + "Zambia", + "Zambia", + "Zambia", + "Zambia", + "Zambia", + "Zambia", + "Zimbabwe", + "Zimbabwe", + "Zimbabwe", + "Zimbabwe", + "Zimbabwe", + "Zimbabwe", + "Zimbabwe", + "Zimbabwe", + "Zimbabwe", + "Zimbabwe", + "Zimbabwe", + "Zimbabwe" + ], + "type": "scatter", + "x": [ + 28.801, + 30.332, + 31.997, + 34.02, + 36.088, + 38.438, + 39.854, + 40.822, + 41.674, + 41.76300000000001, + 42.129, + 43.828, + 55.23, + 59.28, + 64.82, + 66.22, + 67.69, + 68.93, + 70.42, + 72, + 71.581, + 72.95, + 75.65100000000002, + 76.423, + 43.077, + 45.685, + 48.303, + 51.407, + 54.518, + 58.014, + 61.368, + 65.79899999999999, + 67.744, + 69.152, + 70.994, + 72.301, + 30.015, + 31.999, + 34, + 35.985, + 37.928, + 39.483, + 39.942, + 39.906, + 40.647, + 40.963, + 41.003, + 42.731, + 62.485, + 64.399, + 65.142, + 65.634, + 67.065, + 68.48100000000001, + 69.942, + 70.774, + 71.868, + 73.275, + 74.34, + 75.32, + 69.12, + 70.33, + 70.93, + 71.1, + 71.93, + 73.49, + 74.74, + 76.32, + 77.56, + 78.83, + 80.37, + 81.235, + 66.8, + 67.48, + 69.54, + 70.14, + 70.63, + 72.17, + 73.18, + 74.94, + 76.04, + 77.51, + 78.98, + 79.829, + 50.93899999999999, + 53.832, + 56.923, + 59.923, + 63.3, + 65.593, + 69.05199999999999, + 70.75, + 72.601, + 73.925, + 74.795, + 75.635, + 37.484, + 39.348, + 41.216, + 43.453, + 45.252, + 46.923, + 50.00899999999999, + 52.819, + 56.018, + 59.412, + 62.01300000000001, + 64.062, + 68, + 69.24, + 70.25, + 70.94, + 71.44, + 72.8, + 73.93, + 75.35, + 76.46, + 77.53, + 78.32, + 79.441, + 38.223, + 40.358, + 42.618, + 44.885, + 47.014, + 49.19, + 50.904, + 52.337, + 53.919, + 54.777, + 54.40600000000001, + 56.728, + 40.414, + 41.89, + 43.428, + 45.032, + 46.714, + 50.023, + 53.859, + 57.25100000000001, + 59.957, + 62.05, + 63.883, + 65.554, + 53.82, + 58.45, + 61.93, + 64.79, + 67.45, + 69.86, + 70.69, + 71.14, + 72.178, + 73.244, + 74.09, + 74.852, + 47.622, + 49.618, + 51.52, + 53.298, + 56.024, + 59.319, + 61.484, + 63.622, + 62.745, + 52.556, + 46.63399999999999, + 50.728, + 50.917, + 53.285, + 55.665, + 57.632, + 59.504, + 61.489, + 63.33600000000001, + 65.205, + 67.057, + 69.388, + 71.006, + 72.39, + 59.6, + 66.61, + 69.51, + 70.42, + 70.9, + 70.81, + 71.08, + 71.34, + 71.19, + 70.32, + 72.14, + 73.005, + 31.975, + 34.906, + 37.814, + 40.697, + 43.591, + 46.137, + 48.122, + 49.557, + 50.26, + 50.324, + 50.65, + 52.295, + 39.031, + 40.533, + 42.045, + 43.548, + 44.057, + 45.91, + 47.471, + 48.21100000000001, + 44.736, + 45.326, + 47.36, + 49.58, + 39.417, + 41.36600000000001, + 43.415, + 45.415, + 40.317, + 31.22, + 50.957, + 53.914, + 55.803, + 56.534, + 56.752, + 59.723, + 38.523, + 40.428, + 42.643, + 44.799, + 47.049, + 49.355, + 52.96100000000001, + 54.985, + 54.31399999999999, + 52.199, + 49.856, + 50.43, + 68.75, + 69.96, + 71.3, + 72.13, + 72.88, + 74.21, + 75.76, + 76.86, + 77.95, + 78.61, + 79.77, + 80.653, + 35.463, + 37.464, + 39.475, + 41.478, + 43.457, + 46.775, + 48.295, + 50.485, + 49.396, + 46.066, + 43.308, + 44.74100000000001, + 38.092, + 39.881, + 41.716, + 43.601000000000006, + 45.569, + 47.383, + 49.517, + 51.051, + 51.724, + 51.573, + 50.525, + 50.651, + 54.745, + 56.074, + 57.924, + 60.523, + 63.441, + 67.05199999999999, + 70.565, + 72.492, + 74.126, + 75.816, + 77.86, + 78.553, + 44, + 50.54896, + 44.50136, + 58.38112, + 63.11888, + 63.96736, + 65.525, + 67.274, + 68.69, + 70.426, + 72.028, + 72.961, + 50.643, + 55.118, + 57.863, + 59.963, + 61.62300000000001, + 63.837, + 66.653, + 67.768, + 68.421, + 70.313, + 71.682, + 72.889, + 40.715, + 42.46, + 44.467, + 46.472, + 48.944, + 50.93899999999999, + 52.933, + 54.926, + 57.93899999999999, + 60.66, + 62.974, + 65.152, + 39.143, + 40.652, + 42.122, + 44.056, + 45.989, + 47.804, + 47.784, + 47.412, + 45.548, + 42.587, + 44.966, + 46.462, + 42.111, + 45.053, + 48.435, + 52.04, + 54.907, + 55.625, + 56.695, + 57.47, + 56.433, + 52.962, + 52.97, + 55.322, + 57.206, + 60.026, + 62.842, + 65.42399999999999, + 67.84899999999999, + 70.75, + 73.45, + 74.752, + 75.71300000000002, + 77.26, + 78.123, + 78.782, + 40.477, + 42.469, + 44.93, + 47.35, + 49.801, + 52.374, + 53.983, + 54.655, + 52.044, + 47.99100000000001, + 46.832, + 48.328, + 61.21, + 64.77, + 67.13, + 68.5, + 69.61, + 70.64, + 70.46, + 71.52, + 72.527, + 73.68, + 74.876, + 75.748, + 59.42100000000001, + 62.325, + 65.24600000000001, + 68.29, + 70.723, + 72.649, + 73.717, + 74.17399999999998, + 74.414, + 76.15100000000002, + 77.158, + 78.273, + 66.87, + 69.03, + 69.9, + 70.38, + 70.29, + 70.71, + 70.96, + 71.58, + 72.4, + 74.01, + 75.51, + 76.486, + 70.78, + 71.81, + 72.35, + 72.96, + 73.47, + 74.69, + 74.63, + 74.8, + 75.33, + 76.11, + 77.18, + 78.332, + 34.812, + 37.328, + 39.69300000000001, + 42.074, + 44.36600000000001, + 46.519, + 48.812, + 50.04, + 51.604, + 53.157, + 53.37300000000001, + 54.791, + 45.928, + 49.828, + 53.459, + 56.75100000000001, + 59.631, + 61.788, + 63.727, + 66.046, + 68.457, + 69.957, + 70.847, + 72.235, + 48.357, + 51.356, + 54.64, + 56.678, + 58.79600000000001, + 61.31, + 64.342, + 67.23100000000001, + 69.613, + 72.312, + 74.173, + 74.994, + 41.893, + 44.444, + 46.992, + 49.293, + 51.137, + 53.319, + 56.006, + 59.797, + 63.674, + 67.217, + 69.806, + 71.33800000000002, + 45.262, + 48.57, + 52.307, + 55.855, + 58.207, + 56.69600000000001, + 56.604, + 63.154, + 66.798, + 69.535, + 70.734, + 71.878, + 34.482, + 35.98300000000001, + 37.485, + 38.987, + 40.516, + 42.024, + 43.662, + 45.664, + 47.545, + 48.245, + 49.348, + 51.57899999999999, + 35.92800000000001, + 38.047, + 40.158, + 42.18899999999999, + 44.142, + 44.535, + 43.89, + 46.453, + 49.99100000000001, + 53.378, + 55.24, + 58.04, + 34.078, + 36.667, + 40.059, + 42.115, + 43.515, + 44.51, + 44.916, + 46.684, + 48.091, + 49.402, + 50.725, + 52.947, + 66.55, + 67.49, + 68.75, + 69.83, + 70.87, + 72.52, + 74.55, + 74.83, + 75.7, + 77.13, + 78.37, + 79.313, + 67.41, + 68.93, + 70.51, + 71.55, + 72.38, + 73.83, + 74.89, + 76.34, + 77.46, + 78.64, + 79.59, + 80.657, + 37.003, + 38.999, + 40.489, + 44.598, + 48.69, + 52.79, + 56.56399999999999, + 60.19, + 61.36600000000001, + 60.46100000000001, + 56.761, + 56.735, + 30, + 32.065, + 33.896, + 35.857, + 38.308, + 41.842, + 45.58, + 49.265, + 52.644, + 55.861, + 58.041, + 59.448, + 67.5, + 69.1, + 70.3, + 70.8, + 71, + 72.5, + 73.8, + 74.847, + 76.07, + 77.34, + 78.67, + 79.406, + 43.149, + 44.779, + 46.452, + 48.072, + 49.875, + 51.756, + 53.744, + 55.729, + 57.50100000000001, + 58.556, + 58.453, + 60.022, + 65.86, + 67.86, + 69.51, + 71, + 72.34, + 73.68, + 75.24, + 76.67, + 77.03, + 77.869, + 78.256, + 79.483, + 42.023, + 44.142, + 46.95399999999999, + 50.01600000000001, + 53.738, + 56.029, + 58.137, + 60.782, + 63.37300000000001, + 66.322, + 68.97800000000001, + 70.259, + 33.609, + 34.558, + 35.753, + 37.197, + 38.842, + 40.762, + 42.89100000000001, + 45.552, + 48.576, + 51.455, + 53.676, + 56.007, + 32.5, + 33.489000000000004, + 34.488, + 35.492, + 36.486, + 37.465, + 39.327, + 41.245, + 43.26600000000001, + 44.87300000000001, + 45.504, + 46.38800000000001, + 37.579, + 40.696, + 43.59, + 46.243, + 48.042, + 49.923, + 51.46100000000001, + 53.636, + 55.089, + 56.67100000000001, + 58.137, + 60.916, + 41.912, + 44.665, + 48.041, + 50.924, + 53.88399999999999, + 57.402, + 60.909, + 64.492, + 66.399, + 67.65899999999999, + 68.565, + 70.19800000000001, + 60.96, + 64.75, + 67.65, + 70, + 72, + 73.6, + 75.45, + 76.2, + 77.601, + 80, + 81.495, + 82.208, + 64.03, + 66.41, + 67.96, + 69.5, + 69.76, + 69.95, + 69.39, + 69.58, + 69.17, + 71.04, + 72.59, + 73.33800000000002, + 72.49, + 73.47, + 73.68, + 73.73, + 74.46, + 76.11, + 76.99, + 77.23, + 78.77, + 78.95, + 80.5, + 81.757, + 37.37300000000001, + 40.249, + 43.605, + 47.19300000000001, + 50.651, + 54.208, + 56.596, + 58.553, + 60.223, + 61.765, + 62.879, + 64.69800000000001, + 37.468, + 39.918, + 42.518, + 45.964, + 49.203, + 52.702, + 56.159, + 60.137, + 62.681, + 66.041, + 68.58800000000001, + 70.65, + 44.869, + 47.181, + 49.325, + 52.469, + 55.234, + 57.702, + 59.62, + 63.04, + 65.742, + 68.042, + 69.45100000000001, + 70.964, + 45.32, + 48.437, + 51.457, + 54.459, + 56.95, + 60.413, + 62.038, + 65.044, + 59.46100000000001, + 58.81100000000001, + 57.04600000000001, + 59.545, + 66.91, + 68.9, + 70.29, + 71.08, + 71.28, + 72.03, + 73.1, + 74.36, + 75.467, + 76.122, + 77.783, + 78.885, + 65.39, + 67.84, + 69.39, + 70.75, + 71.63, + 73.06, + 74.45, + 75.6, + 76.93, + 78.26899999999998, + 79.696, + 80.745, + 65.94, + 67.81, + 69.24, + 71.06, + 72.19, + 73.48, + 74.98, + 76.42, + 77.44, + 78.82, + 80.24, + 80.546, + 58.53, + 62.61, + 65.61, + 67.51, + 69, + 70.11, + 71.21, + 71.77, + 71.766, + 72.262, + 72.047, + 72.567, + 63.03, + 65.5, + 68.73, + 71.43, + 73.42, + 75.38, + 77.11, + 78.67, + 79.36, + 80.69, + 82, + 82.603, + 43.158, + 45.669, + 48.12600000000001, + 51.629, + 56.528, + 61.13399999999999, + 63.739, + 65.869, + 68.015, + 69.77199999999999, + 71.263, + 72.535, + 42.27, + 44.68600000000001, + 47.949, + 50.654, + 53.559, + 56.155, + 58.76600000000001, + 59.339, + 59.285, + 54.407, + 50.992, + 54.11, + 50.056, + 54.081, + 56.65600000000001, + 59.942, + 63.983, + 67.15899999999999, + 69.1, + 70.64699999999998, + 69.97800000000001, + 67.727, + 66.66199999999999, + 67.297, + 47.453, + 52.681, + 55.292, + 57.716, + 62.612, + 64.766, + 67.123, + 69.81, + 72.244, + 74.64699999999998, + 77.045, + 78.623, + 55.565, + 58.033, + 60.47, + 64.624, + 67.712, + 69.343, + 71.309, + 74.17399999999998, + 75.19, + 76.156, + 76.904, + 77.58800000000002, + 55.928, + 59.489, + 62.094, + 63.87, + 65.421, + 66.09899999999999, + 66.983, + 67.926, + 69.292, + 70.265, + 71.028, + 71.993, + 42.13800000000001, + 45.047, + 47.747, + 48.492, + 49.767, + 52.208, + 55.078, + 57.18, + 59.685, + 55.558, + 44.593, + 42.592, + 38.48, + 39.486, + 40.502, + 41.536, + 42.614, + 43.764, + 44.852, + 46.027, + 40.802, + 42.221, + 43.753, + 45.678, + 42.723, + 45.289, + 47.808, + 50.227, + 52.773, + 57.442, + 62.155, + 66.234, + 68.755, + 71.555, + 72.737, + 73.952, + 36.681, + 38.865, + 40.848, + 42.881, + 44.851000000000006, + 46.881, + 48.969, + 49.35, + 52.214, + 54.978, + 57.286, + 59.44300000000001, + 36.256, + 37.207, + 38.41, + 39.487, + 41.76600000000001, + 43.767, + 45.642, + 47.457, + 49.42, + 47.495, + 45.00899999999999, + 48.303, + 48.463, + 52.102, + 55.737, + 59.371, + 63.01, + 65.256, + 68, + 69.5, + 70.693, + 71.938, + 73.044, + 74.241, + 33.685, + 35.30699999999999, + 36.936, + 38.487, + 39.977, + 41.714, + 43.916, + 46.364, + 48.38800000000001, + 49.903, + 51.81800000000001, + 54.467, + 40.543, + 42.338, + 44.24800000000001, + 46.289, + 48.437, + 50.852, + 53.599, + 56.145, + 58.333, + 60.43, + 62.247, + 64.164, + 50.986, + 58.089, + 60.246, + 61.557, + 62.944, + 64.93, + 66.711, + 68.74, + 69.745, + 70.736, + 71.954, + 72.801, + 50.789, + 55.19, + 58.299, + 60.11, + 62.361, + 65.032, + 67.405, + 69.498, + 71.455, + 73.67, + 74.902, + 76.195, + 42.244, + 45.24800000000001, + 48.25100000000001, + 51.253, + 53.754, + 55.49100000000001, + 57.489, + 60.222, + 61.271, + 63.625, + 65.033, + 66.803, + 59.164, + 61.448, + 63.728, + 67.178, + 70.63600000000002, + 73.066, + 74.101, + 74.865, + 75.435, + 75.445, + 73.98100000000002, + 74.543, + 42.87300000000001, + 45.423, + 47.924, + 50.335, + 52.862, + 55.73, + 59.65, + 62.677, + 65.393, + 67.66, + 69.615, + 71.164, + 31.286, + 33.779, + 36.161, + 38.113, + 40.328, + 42.495, + 42.795, + 42.861, + 44.284, + 46.344, + 44.026, + 42.082, + 36.319, + 41.905, + 45.108, + 49.379, + 53.07, + 56.059, + 58.056, + 58.339, + 59.32, + 60.328, + 59.908, + 62.069, + 41.725, + 45.226000000000006, + 48.386, + 51.159, + 53.867, + 56.437, + 58.968, + 60.835, + 61.999, + 58.909, + 51.479, + 52.90600000000001, + 36.157, + 37.686, + 39.393, + 41.472, + 43.971, + 46.74800000000001, + 49.594, + 52.537, + 55.727, + 59.426, + 61.34, + 63.785, + 72.13, + 72.99, + 73.23, + 73.82, + 73.75, + 75.24, + 76.05, + 76.83, + 77.42, + 78.03, + 78.53, + 79.762, + 69.39, + 70.26, + 71.24, + 71.52, + 71.89, + 72.22, + 73.84, + 74.32, + 76.33, + 77.55, + 79.11, + 80.204, + 42.31399999999999, + 45.432, + 48.632, + 51.88399999999999, + 55.151, + 57.47, + 59.298, + 62.008, + 65.843, + 68.426, + 70.836, + 72.899, + 37.444, + 38.598, + 39.487, + 40.118, + 40.546, + 41.291, + 42.598, + 44.555, + 47.39100000000001, + 51.313, + 54.496, + 56.867, + 36.324, + 37.802, + 39.36, + 41.04, + 42.82100000000001, + 44.514, + 45.826, + 46.886, + 47.472, + 47.464, + 46.608, + 46.859, + 72.67, + 73.44, + 73.47, + 74.08, + 74.34, + 75.37, + 75.97, + 75.89, + 77.32, + 78.32, + 79.05, + 80.196, + 37.578, + 40.08, + 43.165, + 46.988, + 52.143, + 57.367, + 62.728, + 67.734, + 71.197, + 72.499, + 74.193, + 75.64, + 43.43600000000001, + 45.557, + 47.67, + 49.8, + 51.929, + 54.043, + 56.158, + 58.245, + 60.838, + 61.81800000000001, + 63.61, + 65.483, + 55.191, + 59.201, + 61.817, + 64.071, + 66.21600000000001, + 68.681, + 70.472, + 71.523, + 72.462, + 73.738, + 74.712, + 75.53699999999998, + 62.649, + 63.19600000000001, + 64.361, + 64.95100000000001, + 65.815, + 66.35300000000001, + 66.874, + 67.378, + 68.225, + 69.4, + 70.755, + 71.752, + 43.902, + 46.26300000000001, + 49.096, + 51.445, + 55.448, + 58.447, + 61.40600000000001, + 64.134, + 66.458, + 68.38600000000001, + 69.906, + 71.421, + 47.752, + 51.334, + 54.757, + 56.393, + 58.065, + 60.06, + 62.082, + 64.15100000000001, + 66.458, + 68.564, + 70.303, + 71.688, + 61.31, + 65.77, + 67.64, + 69.61, + 70.85, + 70.67, + 71.32, + 70.98, + 70.99, + 72.75, + 74.67, + 75.563, + 59.82, + 61.51, + 64.39, + 66.6, + 69.26, + 70.41, + 72.77, + 74.06, + 74.86, + 75.97, + 77.29, + 78.098, + 64.28, + 68.54, + 69.62, + 71.1, + 72.16, + 73.44, + 73.75, + 74.63, + 73.911, + 74.917, + 77.778, + 78.74600000000002, + 52.724, + 55.09, + 57.666, + 60.542, + 64.274, + 67.064, + 69.885, + 71.913, + 73.615, + 74.77199999999998, + 75.744, + 76.442, + 61.05, + 64.1, + 66.8, + 66.8, + 69.21, + 69.46, + 69.66, + 69.53, + 69.36, + 69.72, + 71.322, + 72.476, + 40, + 41.5, + 43, + 44.1, + 44.6, + 45, + 46.218, + 44.02, + 23.599, + 36.087, + 43.413, + 46.242, + 46.471, + 48.945, + 51.893, + 54.425, + 56.48, + 58.55, + 60.351000000000006, + 61.728, + 62.742, + 63.306, + 64.337, + 65.528, + 39.875, + 42.868, + 45.914, + 49.901, + 53.886, + 58.69, + 63.012, + 66.295, + 68.768, + 70.533, + 71.626, + 72.777, + 37.278, + 39.329, + 41.45399999999999, + 43.563, + 45.815, + 48.879, + 52.379, + 55.769, + 58.19600000000001, + 60.187, + 61.6, + 63.062, + 57.996, + 61.685, + 64.531, + 66.914, + 68.7, + 70.3, + 70.16199999999999, + 71.218, + 71.65899999999998, + 72.232, + 73.21300000000002, + 74.002, + 30.331, + 31.57, + 32.767, + 34.113, + 35.4, + 36.788, + 38.445, + 40.006, + 38.333, + 39.897, + 41.012, + 42.56800000000001, + 60.396, + 63.179, + 65.798, + 67.946, + 69.521, + 70.795, + 71.76, + 73.56, + 75.788, + 77.158, + 78.77, + 79.972, + 64.36, + 67.45, + 70.33, + 70.98, + 70.35, + 70.45, + 70.8, + 71.08, + 71.38, + 72.71, + 73.8, + 74.663, + 65.57, + 67.85, + 69.15, + 69.18, + 69.82, + 70.97, + 71.063, + 72.25, + 73.64, + 75.13, + 76.66, + 77.926, + 32.978, + 34.977, + 36.981, + 38.977, + 40.973, + 41.974, + 42.955, + 44.50100000000001, + 39.658, + 43.795, + 45.93600000000001, + 48.159, + 45.00899999999999, + 47.985, + 49.951, + 51.927, + 53.69600000000001, + 55.527, + 58.161, + 60.834, + 61.88800000000001, + 60.236, + 53.365, + 49.339, + 64.94, + 66.66, + 69.69, + 71.44, + 73.06, + 74.39, + 76.3, + 76.9, + 77.57, + 78.77, + 79.78, + 80.941, + 57.593, + 61.456, + 62.192, + 64.266, + 65.042, + 65.949, + 68.757, + 69.01100000000001, + 70.37899999999998, + 70.457, + 70.815, + 72.396, + 38.635, + 39.624, + 40.87, + 42.858, + 45.083, + 47.8, + 50.338, + 51.744, + 53.556, + 55.37300000000001, + 56.369, + 58.556, + 41.407, + 43.424, + 44.992, + 46.633, + 49.552, + 52.537, + 55.56100000000001, + 57.678, + 58.474, + 54.289, + 43.869, + 39.613, + 71.86, + 72.49, + 73.37, + 74.16, + 74.72, + 75.44, + 76.42, + 77.19, + 78.16, + 79.39, + 80.04, + 80.884, + 69.62, + 70.56, + 71.32, + 72.77, + 73.78, + 75.39, + 76.21, + 77.41, + 78.03, + 79.37, + 80.62, + 81.70100000000002, + 45.883, + 48.284, + 50.305, + 53.655, + 57.29600000000001, + 61.195, + 64.59, + 66.97399999999999, + 69.249, + 71.527, + 73.053, + 74.143, + 58.5, + 62.4, + 65.2, + 67.5, + 69.39, + 70.59, + 72.16, + 73.4, + 74.26, + 75.25, + 76.99, + 78.4, + 41.215, + 42.974, + 44.246, + 45.757, + 47.62, + 49.919, + 50.608, + 51.535, + 50.44, + 48.466, + 49.651, + 52.517, + 50.848, + 53.63, + 56.06100000000001, + 58.285, + 60.405, + 62.494, + 64.597, + 66.084, + 67.298, + 67.521, + 68.564, + 70.616, + 38.596, + 41.208, + 43.922, + 46.769, + 49.75899999999999, + 52.887, + 55.471, + 56.941, + 58.06100000000001, + 58.39, + 57.56100000000001, + 58.42, + 59.1, + 61.8, + 64.9, + 65.4, + 65.9, + 68.3, + 68.832, + 69.582, + 69.862, + 69.465, + 68.976, + 69.819, + 44.6, + 47.1, + 49.57899999999999, + 52.053, + 55.602, + 59.837, + 64.048, + 66.89399999999999, + 70.001, + 71.973, + 73.042, + 73.923, + 43.585, + 48.07899999999999, + 52.098, + 54.33600000000001, + 57.005, + 59.507, + 61.036, + 63.108, + 66.146, + 68.835, + 70.845, + 71.777, + 39.978, + 42.57100000000001, + 45.344, + 48.051, + 51.01600000000001, + 50.35, + 49.849, + 51.50899999999999, + 48.825, + 44.578, + 47.813, + 51.542, + 69.18, + 70.42, + 70.76, + 71.36, + 72.01, + 72.76, + 74.04, + 75.007, + 76.42, + 77.218, + 78.471, + 79.425, + 68.44, + 69.49, + 70.21, + 70.76, + 71.34, + 73.38, + 74.65, + 75.02, + 76.09, + 76.81, + 77.31, + 78.242, + 66.071, + 67.044, + 68.253, + 68.468, + 68.673, + 69.48100000000001, + 70.805, + 71.918, + 72.752, + 74.223, + 75.307, + 76.384, + 55.088, + 57.907, + 60.77, + 63.479, + 65.712, + 67.456, + 68.557, + 70.19, + 71.15, + 72.146, + 72.766, + 73.747, + 40.412, + 42.887, + 45.363, + 47.838, + 50.254, + 55.764, + 58.816, + 62.82, + 67.66199999999999, + 70.672, + 73.017, + 74.249, + 43.16, + 45.67100000000001, + 48.127, + 51.631, + 56.532, + 60.765, + 64.406, + 67.046, + 69.718, + 71.096, + 72.37, + 73.422, + 32.548, + 33.97, + 35.18, + 36.984, + 39.848, + 44.175, + 49.113, + 52.922, + 55.599, + 58.02, + 60.308, + 62.698, + 42.038, + 44.077, + 46.023, + 47.768, + 50.107, + 51.386, + 51.82100000000001, + 50.82100000000001, + 46.1, + 40.238, + 39.19300000000001, + 42.38399999999999, + 48.451, + 50.469, + 52.358, + 53.995, + 55.635, + 57.674, + 60.363, + 62.351000000000006, + 60.377, + 46.809, + 39.989, + 43.487 + ], + "y": [ + 8425333, + 9240934, + 10267083, + 11537966, + 13079460, + 14880372, + 12881816, + 13867957, + 16317921, + 22227415, + 25268405, + 31889923, + 1282697, + 1476505, + 1728137, + 1984060, + 2263554, + 2509048, + 2780097, + 3075321, + 3326498, + 3428038, + 3508512, + 3600523, + 9279525, + 10270856, + 11000948, + 12760499, + 14760787, + 17152804, + 20033753, + 23254956, + 26298373, + 29072015, + 31287142, + 33333216, + 4232095, + 4561361, + 4826015, + 5247469, + 5894858, + 6162675, + 7016384, + 7874230, + 8735988, + 9875024, + 10866106, + 12420476, + 17876956, + 19610538, + 21283783, + 22934225, + 24779799, + 26983828, + 29341374, + 31620918, + 33958947, + 36203463, + 38331121, + 40301927, + 8691212, + 9712569, + 10794968, + 11872264, + 13177000, + 14074100, + 15184200, + 16257249, + 17481977, + 18565243, + 19546792, + 20434176, + 6927772, + 6965860, + 7129864, + 7376998, + 7544201, + 7568430, + 7574613, + 7578903, + 7914969, + 8069876, + 8148312, + 8199783, + 120447, + 138655, + 171863, + 202182, + 230800, + 297410, + 377967, + 454612, + 529491, + 598561, + 656397, + 708573, + 46886859, + 51365468, + 56839289, + 62821884, + 70759295, + 80428306, + 93074406, + 103764241, + 113704579, + 123315288, + 135656790, + 150448339, + 8730405, + 8989111, + 9218400, + 9556500, + 9709100, + 9821800, + 9856303, + 9870200, + 10045622, + 10199787, + 10311970, + 10392226, + 1738315, + 1925173, + 2151895, + 2427334, + 2761407, + 3168267, + 3641603, + 4243788, + 4981671, + 6066080, + 7026113, + 8078314, + 2883315, + 3211738, + 3593918, + 4040665, + 4565872, + 5079716, + 5642224, + 6156369, + 6893451, + 7693188, + 8445134, + 9119152, + 2791000, + 3076000, + 3349000, + 3585000, + 3819000, + 4086000, + 4172693, + 4338977, + 4256013, + 3607000, + 4165416, + 4552198, + 442308, + 474639, + 512764, + 553541, + 619351, + 781472, + 970347, + 1151184, + 1342614, + 1536536, + 1630347, + 1639131, + 56602560, + 65551171, + 76039390, + 88049823, + 100840058, + 114313951, + 128962939, + 142938076, + 155975974, + 168546719, + 179914212, + 190010647, + 7274900, + 7651254, + 8012946, + 8310226, + 8576200, + 8797022, + 8892098, + 8971958, + 8658506, + 8066057, + 7661799, + 7322858, + 4469979, + 4713416, + 4919632, + 5127935, + 5433886, + 5889574, + 6634596, + 7586551, + 8878303, + 10352843, + 12251209, + 14326203, + 2445618, + 2667518, + 2961915, + 3330989, + 3529983, + 3834415, + 4580410, + 5126023, + 5809236, + 6121610, + 7021078, + 8390505, + 4693836, + 5322536, + 6083619, + 6960067, + 7450606, + 6978607, + 7272485, + 8371791, + 10150094, + 11782962, + 12926707, + 14131858, + 5009067, + 5359923, + 5793633, + 6335506, + 7021028, + 7959865, + 9250831, + 10780667, + 12467171, + 14195809, + 15929988, + 17696293, + 14785584, + 17010154, + 18985849, + 20819767, + 22284500, + 23796400, + 25201900, + 26549700, + 28523502, + 30305843, + 31902268, + 33390141, + 1291695, + 1392284, + 1523478, + 1733638, + 1927260, + 2167533, + 2476971, + 2840009, + 3265124, + 3696513, + 4048013, + 4369038, + 2682462, + 2894855, + 3150417, + 3495967, + 3899068, + 4388260, + 4875118, + 5498955, + 6429417, + 7562011, + 8835739, + 10238807, + 6377619, + 7048426, + 7961258, + 8858908, + 9717524, + 10599793, + 11487112, + 12463354, + 13572994, + 14599929, + 15497046, + 16284741, + 556263527, + 637408000, + 665770000, + 754550000, + 862030000, + 943455000, + 1000281000, + 1084035000, + 1164970000, + 1230075000, + 1280400000, + 1318683096, + 12350771, + 14485993, + 17009885, + 19764027, + 22542890, + 25094412, + 27764644, + 30964245, + 34202721, + 37657830, + 41008227, + 44227550, + 153936, + 170928, + 191689, + 217378, + 250027, + 304739, + 348643, + 395114, + 454429, + 527982, + 614382, + 710960, + 14100005, + 15577932, + 17486434, + 19941073, + 23007669, + 26480870, + 30646495, + 35481645, + 41672143, + 47798986, + 55379852, + 64606759, + 854885, + 940458, + 1047924, + 1179760, + 1340458, + 1536769, + 1774735, + 2064095, + 2409073, + 2800947, + 3328795, + 3800610, + 926317, + 1112300, + 1345187, + 1588717, + 1834796, + 2108457, + 2424367, + 2799811, + 3173216, + 3518107, + 3834934, + 4133884, + 2977019, + 3300000, + 3832408, + 4744870, + 6071696, + 7459574, + 9025951, + 10761098, + 12772596, + 14625967, + 16252726, + 18013409, + 3882229, + 3991242, + 4076557, + 4174366, + 4225310, + 4318673, + 4413368, + 4484310, + 4494013, + 4444595, + 4481020, + 4493312, + 6007797, + 6640752, + 7254373, + 8139332, + 8831348, + 9537988, + 9789224, + 10239839, + 10723260, + 10983007, + 11226999, + 11416987, + 9125183, + 9513758, + 9620282, + 9835109, + 9862158, + 10161915, + 10303704, + 10311597, + 10315702, + 10300707, + 10256295, + 10228744, + 4334000, + 4487831, + 4646899, + 4838800, + 4991596, + 5088419, + 5117810, + 5127024, + 5171393, + 5283663, + 5374693, + 5468120, + 63149, + 71851, + 89898, + 127617, + 178848, + 228694, + 305991, + 311025, + 384156, + 417908, + 447416, + 496374, + 2491346, + 2923186, + 3453434, + 4049146, + 4671329, + 5302800, + 5968349, + 6655297, + 7351181, + 7992357, + 8650322, + 9319622, + 3548753, + 4058385, + 4681707, + 5432424, + 6298651, + 7278866, + 8365850, + 9545158, + 10748394, + 11911819, + 12921234, + 13755680, + 22223309, + 25009741, + 28173309, + 31681188, + 34807417, + 38783863, + 45681811, + 52799062, + 59402198, + 66134291, + 73312559, + 80264543, + 2042865, + 2355805, + 2747687, + 3232927, + 3790903, + 4282586, + 4474873, + 4842194, + 5274649, + 5783439, + 6353681, + 6939688, + 216964, + 232922, + 249220, + 259864, + 277603, + 192675, + 285483, + 341244, + 387838, + 439971, + 495627, + 551201, + 1438760, + 1542611, + 1666618, + 1820319, + 2260187, + 2512642, + 2637297, + 2915959, + 3668440, + 4058319, + 4414865, + 4906585, + 20860941, + 22815614, + 25145372, + 27860297, + 30770372, + 34617799, + 38111756, + 42999530, + 52088559, + 59861301, + 67946797, + 76511887, + 4090500, + 4324000, + 4491443, + 4605744, + 4639657, + 4738902, + 4826933, + 4931729, + 5041039, + 5134406, + 5193039, + 5238460, + 42459667, + 44310863, + 47124000, + 49569000, + 51732000, + 53165019, + 54433565, + 55630100, + 57374179, + 58623428, + 59925035, + 61083916, + 420702, + 434904, + 455661, + 489004, + 537977, + 706367, + 753874, + 880397, + 985739, + 1126189, + 1299304, + 1454867, + 284320, + 323150, + 374020, + 439593, + 517101, + 608274, + 715523, + 848406, + 1025384, + 1235767, + 1457766, + 1688359, + 69145952, + 71019069, + 73739117, + 76368453, + 78717088, + 78160773, + 78335266, + 77718298, + 80597764, + 82011073, + 82350671, + 82400996, + 5581001, + 6391288, + 7355248, + 8490213, + 9354120, + 10538093, + 11400338, + 14168101, + 16278738, + 18418288, + 20550751, + 22873338, + 7733250, + 8096218, + 8448233, + 8716441, + 8888628, + 9308479, + 9786480, + 9974490, + 10325429, + 10502372, + 10603863, + 10706290, + 3146381, + 3640876, + 4208858, + 4690773, + 5149581, + 5703430, + 6395630, + 7326406, + 8486949, + 9803875, + 11178650, + 12572928, + 2664249, + 2876726, + 3140003, + 3451418, + 3811387, + 4227026, + 4710497, + 5650262, + 6990574, + 8048834, + 8807818, + 9947814, + 580653, + 601095, + 627820, + 601287, + 625361, + 745228, + 825987, + 927524, + 1050938, + 1193708, + 1332459, + 1472041, + 3201488, + 3507701, + 3880130, + 4318137, + 4698301, + 4908554, + 5198399, + 5756203, + 6326682, + 6913545, + 7607651, + 8502814, + 1517453, + 1770390, + 2090162, + 2500689, + 2965146, + 3055235, + 3669448, + 4372203, + 5077347, + 5867957, + 6677328, + 7483763, + 2125900, + 2736300, + 3305200, + 3722800, + 4115700, + 4583700, + 5264500, + 5584510, + 5829696, + 6495918, + 6762476, + 6980412, + 9504000, + 9839000, + 10063000, + 10223422, + 10394091, + 10637171, + 10705535, + 10612740, + 10348684, + 10244684, + 10083313, + 9956108, + 147962, + 165110, + 182053, + 198676, + 209275, + 221823, + 233997, + 244676, + 259012, + 271192, + 288030, + 301931, + 372000000, + 409000000, + 454000000, + 506000000, + 567000000, + 634000000, + 708000000, + 788000000, + 872000000, + 959000000, + 1034172547, + 1110396331, + 82052000, + 90124000, + 99028000, + 109343000, + 121282000, + 136725000, + 153343000, + 169276000, + 184816000, + 199278000, + 211060000, + 223547000, + 17272000, + 19792000, + 22874000, + 26538000, + 30614000, + 35480679, + 43072751, + 51889696, + 60397973, + 63327987, + 66907826, + 69453570, + 5441766, + 6248643, + 7240260, + 8519282, + 10061506, + 11882916, + 14173318, + 16543189, + 17861905, + 20775703, + 24001816, + 27499638, + 2952156, + 2878220, + 2830000, + 2900100, + 3024400, + 3271900, + 3480000, + 3539900, + 3557761, + 3667233, + 3879155, + 4109086, + 1620914, + 1944401, + 2310904, + 2693585, + 3095893, + 3495918, + 3858421, + 4203148, + 4936550, + 5531387, + 6029529, + 6426679, + 47666000, + 49182000, + 50843200, + 52667100, + 54365564, + 56059245, + 56535636, + 56729703, + 56840847, + 57479469, + 57926999, + 58147733, + 1426095, + 1535090, + 1665128, + 1861096, + 1997616, + 2156814, + 2298309, + 2326606, + 2378618, + 2531311, + 2664659, + 2780132, + 86459025, + 91563009, + 95831757, + 100825279, + 107188273, + 113872473, + 118454974, + 122091325, + 124329269, + 125956499, + 127065841, + 127467972, + 607914, + 746559, + 933559, + 1255058, + 1613551, + 1937652, + 2347031, + 2820042, + 3867409, + 4526235, + 5307470, + 6053193, + 6464046, + 7454779, + 8678557, + 10191512, + 12044785, + 14500404, + 17661452, + 21198082, + 25020539, + 28263827, + 31386842, + 35610177, + 8865488, + 9411381, + 10917494, + 12617009, + 14781241, + 16325320, + 17647518, + 19067554, + 20711375, + 21585105, + 22215365, + 23301725, + 20947571, + 22611552, + 26420307, + 30131000, + 33505000, + 36436000, + 39326000, + 41622000, + 43805450, + 46173816, + 47969150, + 49044790, + 160000, + 212846, + 358266, + 575003, + 841934, + 1140357, + 1497494, + 1891487, + 1418095, + 1765345, + 2111561, + 2505559, + 1439529, + 1647412, + 1886848, + 2186894, + 2680018, + 3115787, + 3086876, + 3089353, + 3219994, + 3430388, + 3677780, + 3921278, + 748747, + 813338, + 893143, + 996380, + 1116779, + 1251524, + 1411807, + 1599200, + 1803195, + 1982823, + 2046772, + 2012649, + 863308, + 975950, + 1112796, + 1279406, + 1482628, + 1703617, + 1956875, + 2269414, + 1912974, + 2200725, + 2814651, + 3193942, + 1019729, + 1201578, + 1441863, + 1759224, + 2183877, + 2721783, + 3344074, + 3799845, + 4364501, + 4759670, + 5368585, + 6036914, + 4762912, + 5181679, + 5703324, + 6334556, + 7082430, + 8007166, + 9171477, + 10568642, + 12210395, + 14165114, + 16473477, + 19167654, + 2917802, + 3221238, + 3628608, + 4147252, + 4730997, + 5637246, + 6502825, + 7824747, + 10014249, + 10419991, + 11824495, + 13327079, + 6748378, + 7739235, + 8906385, + 10154878, + 11441462, + 12845381, + 14441916, + 16331785, + 18319502, + 20476091, + 22662365, + 24821286, + 3838168, + 4241884, + 4690372, + 5212416, + 5828158, + 6491649, + 6998256, + 7634008, + 8416215, + 9384984, + 10580176, + 12031795, + 1022556, + 1076852, + 1146757, + 1230542, + 1332786, + 1456688, + 1622136, + 1841240, + 2119465, + 2444741, + 2828858, + 3270065, + 516556, + 609816, + 701016, + 789309, + 851334, + 913025, + 992040, + 1042663, + 1096202, + 1149818, + 1200206, + 1250882, + 30144317, + 35015548, + 41121485, + 47995559, + 55984294, + 63759976, + 71640904, + 80122492, + 88111030, + 95895146, + 102479927, + 108700891, + 800663, + 882134, + 1010280, + 1149500, + 1320500, + 1528000, + 1756032, + 2015133, + 2312802, + 2494803, + 2674234, + 2874127, + 413834, + 442829, + 474528, + 501035, + 527678, + 560073, + 562548, + 569473, + 621621, + 692651, + 720230, + 684736, + 9939217, + 11406350, + 13056604, + 14770296, + 16660670, + 18396941, + 20198730, + 22987397, + 25798239, + 28529501, + 31167783, + 33757175, + 6446316, + 7038035, + 7788944, + 8680909, + 9809596, + 11127868, + 12587223, + 12891952, + 13160731, + 16603334, + 18473780, + 19951656, + 20092996, + 21731844, + 23634436, + 25870271, + 28466390, + 31528087, + 34680442, + 38028578, + 40546538, + 43247867, + 45598081, + 47761980, + 485831, + 548080, + 621392, + 706640, + 821782, + 977026, + 1099010, + 1278184, + 1554253, + 1774766, + 1972153, + 2055080, + 9182536, + 9682338, + 10332057, + 11261690, + 12412593, + 13933198, + 15796314, + 17917180, + 20326209, + 23001113, + 25873917, + 28901790, + 10381988, + 11026383, + 11805689, + 12596822, + 13329874, + 13852989, + 14310401, + 14665278, + 15174244, + 15604464, + 16122830, + 16570613, + 1994794, + 2229407, + 2488550, + 2728150, + 2929100, + 3164900, + 3210650, + 3317166, + 3437674, + 3676187, + 3908037, + 4115771, + 1165790, + 1358828, + 1590597, + 1865490, + 2182908, + 2554598, + 2979423, + 3344353, + 4017939, + 4609572, + 5146848, + 5675356, + 3379468, + 3692184, + 4076008, + 4534062, + 5060262, + 5682086, + 6437188, + 7332638, + 8392818, + 9666252, + 11140655, + 12894865, + 33119096, + 37173340, + 41871351, + 47287752, + 53740085, + 62209173, + 73039376, + 81551520, + 93364244, + 106207839, + 119901274, + 135031164, + 3327728, + 3491938, + 3638919, + 3786019, + 3933004, + 4043205, + 4114787, + 4186147, + 4286357, + 4405672, + 4535591, + 4627926, + 507833, + 561977, + 628164, + 714775, + 829050, + 1004533, + 1301048, + 1593882, + 1915208, + 2283635, + 2713462, + 3204897, + 41346560, + 46679944, + 53100671, + 60641899, + 69325921, + 78152686, + 91462088, + 105186881, + 120065004, + 135564834, + 153403524, + 169270617, + 940080, + 1063506, + 1215725, + 1405486, + 1616384, + 1839782, + 2036305, + 2253639, + 2484997, + 2734531, + 2990875, + 3242173, + 1555876, + 1770902, + 2009813, + 2287985, + 2614104, + 2984494, + 3366439, + 3886512, + 4483945, + 5154123, + 5884491, + 6667147, + 8025700, + 9146100, + 10516500, + 12132200, + 13954700, + 15990099, + 18125129, + 20195924, + 22430449, + 24748122, + 26769436, + 28674757, + 22438691, + 26072194, + 30325264, + 35356600, + 40850141, + 46850962, + 53456774, + 60017788, + 67185766, + 75012988, + 82995088, + 91077287, + 25730551, + 28235346, + 30329617, + 31785378, + 33039545, + 34621254, + 36227381, + 37740710, + 38370697, + 38654957, + 38625976, + 38518241, + 8526050, + 8817650, + 9019800, + 9103000, + 8970450, + 9662600, + 9859650, + 9915289, + 9927680, + 10156415, + 10433867, + 10642836, + 2227000, + 2260000, + 2448046, + 2648961, + 2847132, + 3080828, + 3279001, + 3444468, + 3585176, + 3759430, + 3859606, + 3942491, + 257700, + 308700, + 358900, + 414024, + 461633, + 492095, + 517810, + 562035, + 622191, + 684810, + 743981, + 798094, + 16630000, + 17829327, + 18680721, + 19284814, + 20662648, + 21658597, + 22356726, + 22686371, + 22797027, + 22562458, + 22404337, + 22276056, + 2534927, + 2822082, + 3051242, + 3451079, + 3992121, + 4657072, + 5507565, + 6349365, + 7290203, + 7212583, + 7852401, + 8860588, + 60011, + 61325, + 65345, + 70787, + 76595, + 86796, + 98593, + 110812, + 125911, + 145608, + 170372, + 199579, + 4005677, + 4419650, + 4943029, + 5618198, + 6472756, + 8128505, + 11254672, + 14619745, + 16945857, + 21229759, + 24501530, + 27601038, + 2755589, + 3054547, + 3430243, + 3965841, + 4588696, + 5260855, + 6147783, + 7171347, + 8307920, + 9535314, + 10870037, + 12267493, + 6860147, + 7271135, + 7616060, + 7971222, + 8313288, + 8686367, + 9032824, + 9230783, + 9826397, + 10336594, + 10111559, + 10150265, + 2143249, + 2295678, + 2467895, + 2662190, + 2879013, + 3140897, + 3464522, + 3868905, + 4260884, + 4578212, + 5359092, + 6144562, + 1127000, + 1445929, + 1750200, + 1977600, + 2152400, + 2325300, + 2651869, + 2794552, + 3235865, + 3802309, + 4197776, + 4553009, + 3558137, + 3844277, + 4237384, + 4442238, + 4593433, + 4827803, + 5048043, + 5199318, + 5302888, + 5383010, + 5410052, + 5447502, + 1489518, + 1533070, + 1582962, + 1646912, + 1694510, + 1746919, + 1861252, + 1945870, + 1999210, + 2011612, + 2011497, + 2009245, + 2526994, + 2780415, + 3080153, + 3428839, + 3840161, + 4353666, + 5828892, + 6921858, + 6099799, + 6633514, + 7753310, + 9118773, + 14264935, + 16151549, + 18356657, + 20997321, + 23935810, + 27129932, + 31140029, + 35933379, + 39964159, + 42835005, + 44433622, + 43997828, + 28549870, + 29841614, + 31158061, + 32850275, + 34513161, + 36439000, + 37983310, + 38880702, + 39549438, + 39855442, + 40152517, + 40448191, + 7982342, + 9128546, + 10421936, + 11737396, + 13016733, + 14116836, + 15410151, + 16495304, + 17587060, + 18698655, + 19576783, + 20378239, + 8504667, + 9753392, + 11183227, + 12716129, + 14597019, + 17104986, + 20367053, + 24725960, + 28227588, + 32160729, + 37090298, + 42292929, + 290243, + 326741, + 370006, + 420690, + 480105, + 551425, + 649901, + 779348, + 962344, + 1054486, + 1130269, + 1133066, + 7124673, + 7363802, + 7561588, + 7867931, + 8122293, + 8251648, + 8325260, + 8421403, + 8718867, + 8897619, + 8954175, + 9031088, + 4815000, + 5126000, + 5666000, + 6063000, + 6401400, + 6316424, + 6468126, + 6649942, + 6995447, + 7193761, + 7361757, + 7554661, + 3661549, + 4149908, + 4834621, + 5680812, + 6701172, + 7932503, + 9410494, + 11242847, + 13219062, + 15081016, + 17155814, + 19314747, + 8550362, + 10164215, + 11918938, + 13648692, + 15226039, + 16785196, + 18501390, + 19757799, + 20686918, + 21628605, + 22454239, + 23174294, + 8322925, + 9452826, + 10863958, + 12607312, + 14706593, + 17129565, + 19844382, + 23040630, + 26605473, + 30686889, + 34593779, + 38139640, + 21289402, + 25041917, + 29263397, + 34024249, + 39276153, + 44148285, + 48827160, + 52910342, + 56667095, + 60216677, + 62806748, + 65068149, + 1219113, + 1357445, + 1528098, + 1735550, + 2056351, + 2308582, + 2644765, + 3154264, + 3747553, + 4320890, + 4977378, + 5701579, + 662850, + 764900, + 887498, + 960155, + 975199, + 1039009, + 1116479, + 1191336, + 1183669, + 1138101, + 1101832, + 1056608, + 3647735, + 3950849, + 4286552, + 4786986, + 5303507, + 6005061, + 6734098, + 7724976, + 8523077, + 9231669, + 9770575, + 10276158, + 22235677, + 25670939, + 29788695, + 33411317, + 37492953, + 42404033, + 47328791, + 52881328, + 58179144, + 63047647, + 67308928, + 71158647, + 5824797, + 6675501, + 7688797, + 8900294, + 10190285, + 11457758, + 12939400, + 15283050, + 18252190, + 21210254, + 24739869, + 29170398, + 50430000, + 51430000, + 53292000, + 54959000, + 56079000, + 56179000, + 56339704, + 56981620, + 57866349, + 58808266, + 59912431, + 60776238, + 157553000, + 171984000, + 186538000, + 198712000, + 209896000, + 220239000, + 232187835, + 242803533, + 256894189, + 272911760, + 287675526, + 301139947, + 2252965, + 2424959, + 2598466, + 2748579, + 2829526, + 2873520, + 2953997, + 3045153, + 3149262, + 3262838, + 3363085, + 3447496, + 5439568, + 6702668, + 8143375, + 9709552, + 11515649, + 13503563, + 15620766, + 17910182, + 20265563, + 22374398, + 24287670, + 26084662, + 26246839, + 28998543, + 33796140, + 39463910, + 44655014, + 50533506, + 56142181, + 62826491, + 69940728, + 76048996, + 80908147, + 85262356, + 1030585, + 1070439, + 1133134, + 1142636, + 1089572, + 1261091, + 1425876, + 1691210, + 2104779, + 2826046, + 3389578, + 4018332, + 4963829, + 5498090, + 6120081, + 6740785, + 7407075, + 8403990, + 9657618, + 11219340, + 13367997, + 15826497, + 18701257, + 22211743, + 2672000, + 3016000, + 3421000, + 3900000, + 4506497, + 5216550, + 6100407, + 7272406, + 8381163, + 9417789, + 10595811, + 11746035, + 3080907, + 3646340, + 4277736, + 4995432, + 5861135, + 6642107, + 7636524, + 9216418, + 10704340, + 11404948, + 11926563, + 12311143 + ] + } + ], + "layout": { + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "Scatter plot using Plotly Graph Objects" + }, + "xaxis": { + "title": { + "text": "X_Axis" + } + }, + "yaxis": { + "title": { + "text": "Y_Axis" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Scatter Plots\n", + "trace1 = go.Scatter(\n", + " x = gap['lifeExp'], y = gap['pop'],\n", + " mode = 'markers', # Because you can plot scatter as well as line plot using Scatter function\n", + " marker = {'color': \"blue\", 'size': 5},\n", + " text = gap['country']\n", + ")\n", + "\n", + "# trace2 = go.Scatter(\n", + "# x = gap['lifeExp'], y = gap['gdpPercap'],\n", + "# mode = 'lines'\n", + "# )\n", + "\n", + "data = [trace1] # Here you can pass the second trace\n", + "\n", + "layout = go.Layout(\n", + " # Code related to customization of overall graphs and not the internals of graph\n", + " title = \"Scatter plot using Plotly Graph Objects\",\n", + " xaxis = {'title': \"X_Axis\"},\n", + " yaxis = {'title': \"Y_Axis\"}\n", + ")\n", + "\n", + "fig = go.Figure(data = data, layout = layout)\n", + "fig.show()" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "marker": { + "size": 12 + }, + "mode": "lines+markers", + "type": "scatter", + "x": [ + 1952, + 1957, + 1962, + 1967, + 1972, + 1977, + 1982, + 1987, + 1992, + 1997, + 2002, + 2007 + ], + "y": [ + 2406957150, + 2664404580, + 2899782974, + 3217478384, + 3576977158, + 3930045807, + 4289436840, + 4691477418, + 5110710260, + 5515204472, + 5886977579, + 6251013179 + ] + } + ], + "layout": { + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "Line plot using Plotly Graph Objects" + }, + "xaxis": { + "title": { + "text": "X_Axis" + } + }, + "yaxis": { + "title": { + "text": "Y_Axis" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Line Plots\n", + "temp_df = gap.groupby(by = 'year')['pop'].sum().reset_index()\n", + "\n", + "trace1 = go.Scatter(\n", + " x = temp_df['year'], y = temp_df['pop'],\n", + " mode = 'lines+markers', # Because you can plot scatter as well as line plot using Scatter function\n", + " marker = {'size': 12},\n", + ")\n", + "\n", + "data = [trace1]\n", + "\n", + "layout = go.Layout(\n", + " title = \"Line plot using Plotly Graph Objects\",\n", + " xaxis = {'title': \"X_Axis\"},\n", + " yaxis = {'title': \"Y_Axis\"}\n", + ")\n", + "\n", + "fig = go.Figure(data = data, layout = layout)\n", + "fig.show()" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
countrycontinentyearlifeExppopgdpPercapiso_alphaiso_num
0AfghanistanAsia195228.8018425333779.445314AFG4
1AfghanistanAsia195730.3329240934820.853030AFG4
2AfghanistanAsia196231.99710267083853.100710AFG4
3AfghanistanAsia196734.02011537966836.197138AFG4
4AfghanistanAsia197236.08813079460739.981106AFG4
\n", + "
" + ], + "text/plain": [ + " country continent year lifeExp pop gdpPercap iso_alpha \\\n", + "0 Afghanistan Asia 1952 28.801 8425333 779.445314 AFG \n", + "1 Afghanistan Asia 1957 30.332 9240934 820.853030 AFG \n", + "2 Afghanistan Asia 1962 31.997 10267083 853.100710 AFG \n", + "3 Afghanistan Asia 1967 34.020 11537966 836.197138 AFG \n", + "4 Afghanistan Asia 1972 36.088 13079460 739.981106 AFG \n", + "\n", + " iso_num \n", + "0 4 \n", + "1 4 \n", + "2 4 \n", + "3 4 \n", + "4 4 " + ] + }, + "execution_count": 25, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gap.head()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "type": "bar", + "x": [ + "Africa", + "Americas", + "Asia", + "Europe", + "Oceania" + ], + "y": [ + 6187585961, + 7351438499, + 30507333901, + 6181115304, + 212992136 + ] + } + ], + "layout": { + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 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, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "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, + "#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, + "#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 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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, + "#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, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 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, + "#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": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "text": "Line plot using Plotly Graph Objects" + }, + "xaxis": { + "title": { + "text": "X_Axis" + } + }, + "yaxis": { + "title": { + "text": "Y_Axis" + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# Bar Charts\n", + "temp_df = gap.groupby(by = 'continent')['pop'].sum().reset_index()\n", + "\n", + "trace = go.Bar(x = temp_df['continent'], y = temp_df['pop'])\n", + "data = [trace]\n", + "\n", + "layout = go.Layout(\n", + " title = \"Line plot using Plotly Graph Objects\",\n", + " xaxis = {'title': \"X_Axis\"},\n", + " yaxis = {'title': \"Y_Axis\"},\n", + " # barmode = 'overlay' / 'stack'\n", + ")\n", + "\n", + "fig = go.Figure(data, layout)\n", + "fig.show()" + ] + } + ], + "metadata": { + "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.12.2" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}