From 5e7e58b1711bd1c24238cc6d0b02b99a2517ca63 Mon Sep 17 00:00:00 2001 From: Li Xing Date: Wed, 28 Apr 2021 12:21:07 +0800 Subject: [PATCH 1/2] Delete Plotly-Express-Introducing.ipynb --- .../Plotly-Express-Introducing.ipynb | 54954 ---------------- 1 file changed, 54954 deletions(-) delete mode 100644 comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb diff --git a/comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb b/comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb deleted file mode 100644 index be19dbe..0000000 --- a/comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb +++ /dev/null @@ -1,54954 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": { - "toc": true - }, - "source": [ - "

Table of Contents

\n", - "
" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Plotly Express 使用简介\n", - "\n", - "## 引入 plotly_express 库" - ] - }, - { - "cell_type": "code", - "execution_count": 28, - "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
11AfghanistanAsia200743.82831889923974.580338AFG4
23AlbaniaEurope200776.42336005235937.029526ALB8
35AlgeriaAfrica200772.301333332166223.367465DZA12
47AngolaAfrica200742.731124204764797.231267AGO24
59ArgentinaAmericas200775.3204030192712779.379640ARG32
\n", - "
" - ], - "text/plain": [ - " country continent year lifeExp pop gdpPercap iso_alpha \\\n", - "11 Afghanistan Asia 2007 43.828 31889923 974.580338 AFG \n", - "23 Albania Europe 2007 76.423 3600523 5937.029526 ALB \n", - "35 Algeria Africa 2007 72.301 33333216 6223.367465 DZA \n", - "47 Angola Africa 2007 42.731 12420476 4797.231267 AGO \n", - "59 Argentina Americas 2007 75.320 40301927 12779.379640 ARG \n", - "\n", - " iso_num \n", - "11 4 \n", - "23 8 \n", - "35 12 \n", - "47 24 \n", - "59 32 " - ] - }, - "execution_count": 28, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "import plotly_express as px\n", - "gapminder = px.data.gapminder()\n", - "gapminder2007 = gapminder.query('year == 2007')\n", - "\n", - "gapminder2007.head()" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## scatter" - ] - }, - { - "cell_type": "code", - "execution_count": 29, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "gdpPercap=%{x}
lifeExp=%{y}", - "legendgroup": "", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "markers", - "name": "", - "showlegend": false, - "type": "scatter", - "uid": "eb23728c-2645-4374-bbcd-fb438cd371a3", - "x": [ - 974.5803384, - 5937.029525999999, - 6223.367465, - 4797.231267, - 12779.379640000001, - 34435.367439999995, - 36126.4927, - 29796.048339999998, - 1391.253792, - 33692.60508, - 1441.284873, - 3822.1370840000004, - 7446.298803, - 12569.851770000001, - 9065.800825, - 10680.79282, - 1217.032994, - 430.07069160000003, - 1713.7786859999999, - 2042.0952399999999, - 36319.235010000004, - 706.016537, - 1704.0637239999999, - 13171.63885, - 4959.1148539999995, - 7006.580419, - 986.1478792000001, - 277.55185869999997, - 3632.557798, - 9645.06142, - 1544.750112, - 14619.222719999998, - 8948.102923, - 22833.30851, - 35278.41874, - 2082.4815670000003, - 6025.374752000001, - 6873.262326000001, - 5581.180998, - 5728.353514, - 12154.08975, - 641.3695236000001, - 690.8055759, - 33207.0844, - 30470.0167, - 13206.48452, - 752.7497265, - 32170.37442, - 1327.60891, - 27538.41188, - 5186.050003, - 942.6542111, - 579.2317429999999, - 1201.637154, - 3548.3308460000003, - 39724.97867, - 18008.94444, - 36180.789189999996, - 2452.210407, - 3540.6515640000002, - 11605.71449, - 4471.061906, - 40675.99635, - 25523.2771, - 28569.7197, - 7320.880262000001, - 31656.06806, - 4519.461171, - 1463.249282, - 1593.06548, - 23348.139730000003, - 47306.98978, - 10461.05868, - 1569.331442, - 414.5073415, - 12057.49928, - 1044.770126, - 759.3499101, - 12451.6558, - 1042.581557, - 1803.1514960000002, - 10956.99112, - 11977.57496, - 3095.7722710000003, - 9253.896111, - 3820.17523, - 823.6856205, - 944, - 4811.060429, - 1091.359778, - 36797.93332, - 25185.00911, - 2749.320965, - 619.6768923999999, - 2013.9773050000001, - 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.0884639000001, - 1598.435089, - 21654.83194, - 1712.4721359999999, - 9786.534714, - 862.5407561000001, - 47143.179639999995, - 18678.31435, - 25768.25759, - 926.1410683, - 9269.657808, - 28821.0637, - 3970.0954070000003, - 2602.394995, - 4513.480643, - 33859.74835, - 37506.419069999996, - 4184.548089, - 28718.27684, - 1107.482182, - 7458.3963269999995, - 882.9699437999999, - 18008.50924, - 7092.923025, - 8458.276384, - 1056.3801210000001, - 33203.26128, - 42951.65309, - 10611.46299, - 11415.805690000001, - 2441.576404, - 3025.349798, - 2280.769906, - 1271.211593, - 469.70929810000007 - ], - "xaxis": "x", - "y": [ - 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.461999999999996, - 55.321999999999996, - 78.782, - 48.328, - 75.748, - 78.273, - 76.486, - 78.332, - 54.791000000000004, - 72.235, - 74.994, - 71.33800000000001, - 71.878, - 51.57899999999999, - 58.04, - 52.946999999999996, - 79.313, - 80.657, - 56.735, - 59.448, - 79.406, - 60.022, - 79.483, - 70.259, - 56.007, - 46.388000000000005, - 60.916000000000004, - 70.19800000000001, - 82.208, - 73.33800000000001, - 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.58800000000001, - 71.993, - 42.592, - 45.678000000000004, - 73.952, - 59.443000000000005, - 48.303000000000004, - 74.241, - 54.467, - 64.164, - 72.801, - 76.195, - 66.803, - 74.543, - 71.164, - 42.082, - 62.068999999999996, - 52.906000000000006, - 63.785, - 79.762, - 80.204, - 72.899, - 56.867, - 46.858999999999995, - 80.196, - 75.64, - 65.483, - 75.53699999999999, - 71.752, - 71.421, - 71.688, - 75.563, - 78.098, - 78.74600000000001, - 76.442, - 72.476, - 46.242, - 65.528, - 72.777, - 63.062, - 74.002, - 42.568000000000005, - 79.972, - 74.663, - 77.926, - 48.159, - 49.339, - 80.941, - 72.396, - 58.556000000000004, - 39.613, - 80.884, - 81.70100000000001, - 74.143, - 78.4, - 52.516999999999996, - 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.486999999999995 - ], - "yaxis": "y" - } - ], - "layout": { - "grid": { - "xaxes": [ - "x" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "gdpPercap" - } - }, - "yaxis": { - "title": { - "text": "lifeExp" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp')" - ] - }, - { - "cell_type": "code", - "execution_count": 30, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "continent=Asia
gdpPercap=%{x}
lifeExp=%{y}", - "legendgroup": "continent=Asia", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "uid": "a221a72f-d11a-46b2-a9b8-47df5921a533", - "x": [ - 974.5803384, - 29796.048339999998, - 1391.253792, - 1713.7786859999999, - 4959.1148539999995, - 39724.97867, - 2452.210407, - 3540.6515640000002, - 11605.71449, - 4471.061906, - 25523.2771, - 31656.06806, - 4519.461171, - 1593.06548, - 23348.139730000003, - 47306.98978, - 10461.05868, - 12451.6558, - 3095.7722710000003, - 944, - 1091.359778, - 22316.19287, - 2605.94758, - 3190.481016, - 21654.83194, - 47143.179639999995, - 3970.0954070000003, - 4184.548089, - 28718.27684, - 7458.3963269999995, - 2441.576404, - 3025.349798, - 2280.769906 - ], - "xaxis": "x", - "y": [ - 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.58800000000001, - 71.993, - 74.241, - 66.803, - 62.068999999999996, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "continent=Europe
gdpPercap=%{x}
lifeExp=%{y}", - "legendgroup": "continent=Europe", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "uid": "280d2551-49ea-44ba-a816-ee90ed641a7d", - "x": [ - 5937.029525999999, - 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.789189999996, - 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.419069999996, - 8458.276384, - 33203.26128 - ], - "xaxis": "x", - "y": [ - 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.33800000000001, - 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.70100000000001, - 71.777, - 79.425 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "continent=Africa
gdpPercap=%{x}
lifeExp=%{y}", - "legendgroup": "continent=Africa", - "marker": { - "color": "#00cc96", - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "uid": "2f0b9e20-7165-4956-acf4-ba62d6f3ee95", - "x": [ - 6223.367465, - 4797.231267, - 1441.284873, - 12569.851770000001, - 1217.032994, - 430.07069160000003, - 2042.0952399999999, - 706.016537, - 1704.0637239999999, - 986.1478792000001, - 277.55185869999997, - 3632.557798, - 1544.750112, - 2082.4815670000003, - 5581.180998, - 12154.08975, - 641.3695236000001, - 690.8055759, - 13206.48452, - 752.7497265, - 1327.60891, - 942.6542111, - 579.2317429999999, - 1463.249282, - 1569.331442, - 414.5073415, - 12057.49928, - 1044.770126, - 759.3499101, - 1042.581557, - 1803.1514960000002, - 10956.99112, - 3820.17523, - 823.6856205, - 4811.060429, - 619.6768923999999, - 2013.9773050000001, - 7670.122558, - 863.0884639000001, - 1598.435089, - 1712.4721359999999, - 862.5407561000001, - 926.1410683, - 9269.657808, - 2602.394995, - 4513.480643, - 1107.482182, - 882.9699437999999, - 7092.923025, - 1056.3801210000001, - 1271.211593, - 469.70929810000007 - ], - "xaxis": "x", - "y": [ - 72.301, - 42.731, - 56.728, - 50.728, - 52.295, - 49.58, - 50.43, - 44.74100000000001, - 50.651, - 65.152, - 46.461999999999996, - 55.321999999999996, - 48.328, - 54.791000000000004, - 71.33800000000001, - 51.57899999999999, - 58.04, - 52.946999999999996, - 56.735, - 59.448, - 60.022, - 56.007, - 46.388000000000005, - 54.11, - 42.592, - 45.678000000000004, - 73.952, - 59.443000000000005, - 48.303000000000004, - 54.467, - 64.164, - 72.801, - 71.164, - 42.082, - 52.906000000000006, - 56.867, - 46.858999999999995, - 76.442, - 46.242, - 65.528, - 63.062, - 42.568000000000005, - 48.159, - 49.339, - 58.556000000000004, - 39.613, - 52.516999999999996, - 58.42, - 73.923, - 51.542, - 42.38399999999999, - 43.486999999999995 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "continent=Americas
gdpPercap=%{x}
lifeExp=%{y}", - "legendgroup": "continent=Americas", - "marker": { - "color": "#ab63fa", - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "uid": "0254b4e3-f32b-4e1e-aca9-07a0ef4f3f73", - "x": [ - 12779.379640000001, - 3822.1370840000004, - 9065.800825, - 36319.235010000004, - 13171.63885, - 7006.580419, - 9645.06142, - 8948.102923, - 6025.374752000001, - 6873.262326000001, - 5728.353514, - 5186.050003, - 1201.637154, - 3548.3308460000003, - 7320.880262000001, - 11977.57496, - 2749.320965, - 9809.185636, - 4172.838464, - 7408.905561, - 19328.70901, - 18008.50924, - 42951.65309, - 10611.46299, - 11415.805690000001 - ], - "xaxis": "x", - "y": [ - 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.916000000000004, - 70.19800000000001, - 72.567, - 76.195, - 72.899, - 75.53699999999999, - 71.752, - 71.421, - 78.74600000000001, - 69.819, - 78.242, - 76.384, - 73.747 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}", - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "uid": "9f1bf31f-bcf5-4362-a42a-ba34ceadda08", - "x": [ - 34435.367439999995, - 25185.00911 - ], - "xaxis": "x", - "y": [ - 81.235, - 80.204 - ], - "yaxis": "y" - } - ], - "layout": { - "grid": { - "xaxes": [ - "x" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "gdpPercap" - } - }, - "yaxis": { - "title": { - "text": "lifeExp" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "# 添加 color 参数, 以各个大洲区分不同颜色\n", - "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', color='continent')" - ] - }, - { - "cell_type": "code", - "execution_count": 31, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "continent=Asia
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", - "legendgroup": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "uid": "acc2ffe4-be8e-411e-a760-144a82bb8528", - "x": [ - 974.5803384, - 29796.048339999998, - 1391.253792, - 1713.7786859999999, - 4959.1148539999995, - 39724.97867, - 2452.210407, - 3540.6515640000002, - 11605.71449, - 4471.061906, - 25523.2771, - 31656.06806, - 4519.461171, - 1593.06548, - 23348.139730000003, - 47306.98978, - 10461.05868, - 12451.6558, - 3095.7722710000003, - 944, - 1091.359778, - 22316.19287, - 2605.94758, - 3190.481016, - 21654.83194, - 47143.179639999995, - 3970.0954070000003, - 4184.548089, - 28718.27684, - 7458.3963269999995, - 2441.576404, - 3025.349798, - 2280.769906 - ], - "xaxis": "x", - "y": [ - 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.58800000000001, - 71.993, - 74.241, - 66.803, - 62.068999999999996, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "continent=Europe
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", - "legendgroup": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "uid": "ae1900ba-177d-495e-acd5-5b052040db32", - "x": [ - 5937.029525999999, - 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.789189999996, - 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.419069999996, - 8458.276384, - 33203.26128 - ], - "xaxis": "x", - "y": [ - 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.33800000000001, - 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.70100000000001, - 71.777, - 79.425 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "continent=Africa
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", - "legendgroup": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "uid": "12593646-713c-41c1-8e4f-fa3df0fd9309", - "x": [ - 6223.367465, - 4797.231267, - 1441.284873, - 12569.851770000001, - 1217.032994, - 430.07069160000003, - 2042.0952399999999, - 706.016537, - 1704.0637239999999, - 986.1478792000001, - 277.55185869999997, - 3632.557798, - 1544.750112, - 2082.4815670000003, - 5581.180998, - 12154.08975, - 641.3695236000001, - 690.8055759, - 13206.48452, - 752.7497265, - 1327.60891, - 942.6542111, - 579.2317429999999, - 1463.249282, - 1569.331442, - 414.5073415, - 12057.49928, - 1044.770126, - 759.3499101, - 1042.581557, - 1803.1514960000002, - 10956.99112, - 3820.17523, - 823.6856205, - 4811.060429, - 619.6768923999999, - 2013.9773050000001, - 7670.122558, - 863.0884639000001, - 1598.435089, - 1712.4721359999999, - 862.5407561000001, - 926.1410683, - 9269.657808, - 2602.394995, - 4513.480643, - 1107.482182, - 882.9699437999999, - 7092.923025, - 1056.3801210000001, - 1271.211593, - 469.70929810000007 - ], - "xaxis": "x", - "y": [ - 72.301, - 42.731, - 56.728, - 50.728, - 52.295, - 49.58, - 50.43, - 44.74100000000001, - 50.651, - 65.152, - 46.461999999999996, - 55.321999999999996, - 48.328, - 54.791000000000004, - 71.33800000000001, - 51.57899999999999, - 58.04, - 52.946999999999996, - 56.735, - 59.448, - 60.022, - 56.007, - 46.388000000000005, - 54.11, - 42.592, - 45.678000000000004, - 73.952, - 59.443000000000005, - 48.303000000000004, - 54.467, - 64.164, - 72.801, - 71.164, - 42.082, - 52.906000000000006, - 56.867, - 46.858999999999995, - 76.442, - 46.242, - 65.528, - 63.062, - 42.568000000000005, - 48.159, - 49.339, - 58.556000000000004, - 39.613, - 52.516999999999996, - 58.42, - 73.923, - 51.542, - 42.38399999999999, - 43.486999999999995 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "continent=Americas
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", - "legendgroup": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "uid": "ebe035f7-65f3-4578-9f80-dc46ad42efe3", - "x": [ - 12779.379640000001, - 3822.1370840000004, - 9065.800825, - 36319.235010000004, - 13171.63885, - 7006.580419, - 9645.06142, - 8948.102923, - 6025.374752000001, - 6873.262326000001, - 5728.353514, - 5186.050003, - 1201.637154, - 3548.3308460000003, - 7320.880262000001, - 11977.57496, - 2749.320965, - 9809.185636, - 4172.838464, - 7408.905561, - 19328.70901, - 18008.50924, - 42951.65309, - 10611.46299, - 11415.805690000001 - ], - "xaxis": "x", - "y": [ - 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.916000000000004, - 70.19800000000001, - 72.567, - 76.195, - 72.899, - 75.53699999999999, - 71.752, - 71.421, - 78.74600000000001, - 69.819, - 78.242, - 76.384, - 73.747 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 20434176, - 4115771 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "uid": "8fa79e5b-b3ab-4d46-aa31-d9c340244fa6", - "x": [ - 34435.367439999995, - 25185.00911 - ], - "xaxis": "x", - "y": [ - 81.235, - 80.204 - ], - "yaxis": "y" - } - ], - "layout": { - "grid": { - "xaxes": [ - "x" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "itemsizing": "constant", - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "gdpPercap" - } - }, - "yaxis": { - "title": { - "text": "lifeExp" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "# 添加 size 参数, 用 “人口”来区分\n", - "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', \n", - " color='continent', size='pop', size_max=60)" - ] - }, - { - "cell_type": "code", - "execution_count": 32, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "uid": "e8f84902-7d36-4ede-9cc1-070d5f315bab", - "x": [ - 974.5803384, - 29796.048339999998, - 1391.253792, - 1713.7786859999999, - 4959.1148539999995, - 39724.97867, - 2452.210407, - 3540.6515640000002, - 11605.71449, - 4471.061906, - 25523.2771, - 31656.06806, - 4519.461171, - 1593.06548, - 23348.139730000003, - 47306.98978, - 10461.05868, - 12451.6558, - 3095.7722710000003, - 944, - 1091.359778, - 22316.19287, - 2605.94758, - 3190.481016, - 21654.83194, - 47143.179639999995, - 3970.0954070000003, - 4184.548089, - 28718.27684, - 7458.3963269999995, - 2441.576404, - 3025.349798, - 2280.769906 - ], - "xaxis": "x", - "y": [ - 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.58800000000001, - 71.993, - 74.241, - 66.803, - 62.068999999999996, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "uid": "586fe440-5927-4d0f-a5b6-642d73ebfe2f", - "x": [ - 5937.029525999999, - 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.789189999996, - 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.419069999996, - 8458.276384, - 33203.26128 - ], - "xaxis": "x", - "y": [ - 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.33800000000001, - 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.70100000000001, - 71.777, - 79.425 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "uid": "71dc7e47-d854-49f2-bdbf-3f1b003e0843", - "x": [ - 6223.367465, - 4797.231267, - 1441.284873, - 12569.851770000001, - 1217.032994, - 430.07069160000003, - 2042.0952399999999, - 706.016537, - 1704.0637239999999, - 986.1478792000001, - 277.55185869999997, - 3632.557798, - 1544.750112, - 2082.4815670000003, - 5581.180998, - 12154.08975, - 641.3695236000001, - 690.8055759, - 13206.48452, - 752.7497265, - 1327.60891, - 942.6542111, - 579.2317429999999, - 1463.249282, - 1569.331442, - 414.5073415, - 12057.49928, - 1044.770126, - 759.3499101, - 1042.581557, - 1803.1514960000002, - 10956.99112, - 3820.17523, - 823.6856205, - 4811.060429, - 619.6768923999999, - 2013.9773050000001, - 7670.122558, - 863.0884639000001, - 1598.435089, - 1712.4721359999999, - 862.5407561000001, - 926.1410683, - 9269.657808, - 2602.394995, - 4513.480643, - 1107.482182, - 882.9699437999999, - 7092.923025, - 1056.3801210000001, - 1271.211593, - 469.70929810000007 - ], - "xaxis": "x", - "y": [ - 72.301, - 42.731, - 56.728, - 50.728, - 52.295, - 49.58, - 50.43, - 44.74100000000001, - 50.651, - 65.152, - 46.461999999999996, - 55.321999999999996, - 48.328, - 54.791000000000004, - 71.33800000000001, - 51.57899999999999, - 58.04, - 52.946999999999996, - 56.735, - 59.448, - 60.022, - 56.007, - 46.388000000000005, - 54.11, - 42.592, - 45.678000000000004, - 73.952, - 59.443000000000005, - 48.303000000000004, - 54.467, - 64.164, - 72.801, - 71.164, - 42.082, - 52.906000000000006, - 56.867, - 46.858999999999995, - 76.442, - 46.242, - 65.528, - 63.062, - 42.568000000000005, - 48.159, - 49.339, - 58.556000000000004, - 39.613, - 52.516999999999996, - 58.42, - 73.923, - 51.542, - 42.38399999999999, - 43.486999999999995 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "uid": "b1d4e076-ea7d-41e5-b28f-c224d4e8737b", - "x": [ - 12779.379640000001, - 3822.1370840000004, - 9065.800825, - 36319.235010000004, - 13171.63885, - 7006.580419, - 9645.06142, - 8948.102923, - 6025.374752000001, - 6873.262326000001, - 5728.353514, - 5186.050003, - 1201.637154, - 3548.3308460000003, - 7320.880262000001, - 11977.57496, - 2749.320965, - 9809.185636, - 4172.838464, - 7408.905561, - 19328.70901, - 18008.50924, - 42951.65309, - 10611.46299, - 11415.805690000001 - ], - "xaxis": "x", - "y": [ - 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.916000000000004, - 70.19800000000001, - 72.567, - 76.195, - 72.899, - 75.53699999999999, - 71.752, - 71.421, - 78.74600000000001, - 69.819, - 78.242, - 76.384, - 73.747 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 20434176, - 4115771 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "uid": "da875454-2db3-4aa8-9fcf-a2a1351dcf3e", - "x": [ - 34435.367439999995, - 25185.00911 - ], - "xaxis": "x", - "y": [ - 81.235, - 80.204 - ], - "yaxis": "y" - } - ], - "layout": { - "grid": { - "xaxes": [ - "x" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "itemsizing": "constant", - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "gdpPercap" - } - }, - "yaxis": { - "title": { - "text": "lifeExp" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', \n", - " color='continent', size='pop', \n", - " size_max=60, hover_name='country')" - ] - }, - { - "cell_type": "code", - "execution_count": 33, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "uid": "5eeb1217-bc60-4ac0-857b-3c40413af366", - "x": [ - 974.5803384, - 29796.048339999998, - 1391.253792, - 1713.7786859999999, - 4959.1148539999995, - 39724.97867, - 2452.210407, - 3540.6515640000002, - 11605.71449, - 4471.061906, - 25523.2771, - 31656.06806, - 4519.461171, - 1593.06548, - 23348.139730000003, - 47306.98978, - 10461.05868, - 12451.6558, - 3095.7722710000003, - 944, - 1091.359778, - 22316.19287, - 2605.94758, - 3190.481016, - 21654.83194, - 47143.179639999995, - 3970.0954070000003, - 4184.548089, - 28718.27684, - 7458.3963269999995, - 2441.576404, - 3025.349798, - 2280.769906 - ], - "xaxis": "x", - "y": [ - 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.58800000000001, - 71.993, - 74.241, - 66.803, - 62.068999999999996, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "uid": "3ebb9a03-3cbd-495f-be3b-94b64834c832", - "x": [ - 5937.029525999999, - 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.789189999996, - 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.419069999996, - 8458.276384, - 33203.26128 - ], - "xaxis": "x2", - "y": [ - 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.33800000000001, - 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.70100000000001, - 71.777, - 79.425 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "uid": "a6a3b57f-0ba6-4cd9-90e3-79cb3dbee963", - "x": [ - 6223.367465, - 4797.231267, - 1441.284873, - 12569.851770000001, - 1217.032994, - 430.07069160000003, - 2042.0952399999999, - 706.016537, - 1704.0637239999999, - 986.1478792000001, - 277.55185869999997, - 3632.557798, - 1544.750112, - 2082.4815670000003, - 5581.180998, - 12154.08975, - 641.3695236000001, - 690.8055759, - 13206.48452, - 752.7497265, - 1327.60891, - 942.6542111, - 579.2317429999999, - 1463.249282, - 1569.331442, - 414.5073415, - 12057.49928, - 1044.770126, - 759.3499101, - 1042.581557, - 1803.1514960000002, - 10956.99112, - 3820.17523, - 823.6856205, - 4811.060429, - 619.6768923999999, - 2013.9773050000001, - 7670.122558, - 863.0884639000001, - 1598.435089, - 1712.4721359999999, - 862.5407561000001, - 926.1410683, - 9269.657808, - 2602.394995, - 4513.480643, - 1107.482182, - 882.9699437999999, - 7092.923025, - 1056.3801210000001, - 1271.211593, - 469.70929810000007 - ], - "xaxis": "x3", - "y": [ - 72.301, - 42.731, - 56.728, - 50.728, - 52.295, - 49.58, - 50.43, - 44.74100000000001, - 50.651, - 65.152, - 46.461999999999996, - 55.321999999999996, - 48.328, - 54.791000000000004, - 71.33800000000001, - 51.57899999999999, - 58.04, - 52.946999999999996, - 56.735, - 59.448, - 60.022, - 56.007, - 46.388000000000005, - 54.11, - 42.592, - 45.678000000000004, - 73.952, - 59.443000000000005, - 48.303000000000004, - 54.467, - 64.164, - 72.801, - 71.164, - 42.082, - 52.906000000000006, - 56.867, - 46.858999999999995, - 76.442, - 46.242, - 65.528, - 63.062, - 42.568000000000005, - 48.159, - 49.339, - 58.556000000000004, - 39.613, - 52.516999999999996, - 58.42, - 73.923, - 51.542, - 42.38399999999999, - 43.486999999999995 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "uid": "7d5c91e5-bf23-4645-878d-da349d75a122", - "x": [ - 12779.379640000001, - 3822.1370840000004, - 9065.800825, - 36319.235010000004, - 13171.63885, - 7006.580419, - 9645.06142, - 8948.102923, - 6025.374752000001, - 6873.262326000001, - 5728.353514, - 5186.050003, - 1201.637154, - 3548.3308460000003, - 7320.880262000001, - 11977.57496, - 2749.320965, - 9809.185636, - 4172.838464, - 7408.905561, - 19328.70901, - 18008.50924, - 42951.65309, - 10611.46299, - 11415.805690000001 - ], - "xaxis": "x4", - "y": [ - 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.916000000000004, - 70.19800000000001, - 72.567, - 76.195, - 72.899, - 75.53699999999999, - 71.752, - 71.421, - 78.74600000000001, - 69.819, - 78.242, - 76.384, - 73.747 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 20434176, - 4115771 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "uid": "952e6d5e-5f05-4beb-a429-7581210798c4", - "x": [ - 34435.367439999995, - 25185.00911 - ], - "xaxis": "x5", - "y": [ - 81.235, - 80.204 - ], - "yaxis": "y" - } - ], - "layout": { - "annotations": [ - { - "showarrow": false, - "text": "continent=Asia", - "textangle": 0, - "x": 0.09183673469387754, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "continent=Europe", - "textangle": 0, - "x": 0.2959183673469387, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "continent=Africa", - "textangle": 0, - "x": 0.5, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "continent=Americas", - "textangle": 0, - "x": 0.7040816326530612, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "continent=Oceania", - "textangle": 0, - "x": 0.9081632653061223, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - } - ], - "grid": { - "xaxes": [ - "x", - "x2", - "x3", - "x4", - "x5" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "itemsizing": "constant", - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "gdpPercap" - } - }, - "xaxis2": { - "matches": "x", - "title": { - "text": "gdpPercap" - } - }, - "xaxis3": { - "matches": "x", - "title": { - "text": "gdpPercap" - } - }, - "xaxis4": { - "matches": "x", - "title": { - "text": "gdpPercap" - } - }, - "xaxis5": { - "matches": "x", - "title": { - "text": "gdpPercap" - } - }, - "yaxis": { - "title": { - "text": "lifeExp" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "# 添加 facet_col 参数\n", - "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', \n", - " color='continent', size='pop', \n", - " size_max=60, hover_name='country',\n", - " facet_col='continent')" - ] - }, - { - "cell_type": "code", - "execution_count": 34, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "uid": "0a5da17d-554b-4b26-940d-cf96152f169f", - "x": [ - 974.5803384, - 29796.048339999998, - 1391.253792, - 1713.7786859999999, - 4959.1148539999995, - 39724.97867, - 2452.210407, - 3540.6515640000002, - 11605.71449, - 4471.061906, - 25523.2771, - 31656.06806, - 4519.461171, - 1593.06548, - 23348.139730000003, - 47306.98978, - 10461.05868, - 12451.6558, - 3095.7722710000003, - 944, - 1091.359778, - 22316.19287, - 2605.94758, - 3190.481016, - 21654.83194, - 47143.179639999995, - 3970.0954070000003, - 4184.548089, - 28718.27684, - 7458.3963269999995, - 2441.576404, - 3025.349798, - 2280.769906 - ], - "xaxis": "x", - "y": [ - 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.58800000000001, - 71.993, - 74.241, - 66.803, - 62.068999999999996, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "uid": "b4bca67d-4f24-4447-9b9a-a4207cc3895d", - "x": [ - 5937.029525999999, - 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.789189999996, - 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.419069999996, - 8458.276384, - 33203.26128 - ], - "xaxis": "x2", - "y": [ - 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.33800000000001, - 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.70100000000001, - 71.777, - 79.425 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "uid": "b319ecdc-c133-405b-ac11-77c170ddcb60", - "x": [ - 6223.367465, - 4797.231267, - 1441.284873, - 12569.851770000001, - 1217.032994, - 430.07069160000003, - 2042.0952399999999, - 706.016537, - 1704.0637239999999, - 986.1478792000001, - 277.55185869999997, - 3632.557798, - 1544.750112, - 2082.4815670000003, - 5581.180998, - 12154.08975, - 641.3695236000001, - 690.8055759, - 13206.48452, - 752.7497265, - 1327.60891, - 942.6542111, - 579.2317429999999, - 1463.249282, - 1569.331442, - 414.5073415, - 12057.49928, - 1044.770126, - 759.3499101, - 1042.581557, - 1803.1514960000002, - 10956.99112, - 3820.17523, - 823.6856205, - 4811.060429, - 619.6768923999999, - 2013.9773050000001, - 7670.122558, - 863.0884639000001, - 1598.435089, - 1712.4721359999999, - 862.5407561000001, - 926.1410683, - 9269.657808, - 2602.394995, - 4513.480643, - 1107.482182, - 882.9699437999999, - 7092.923025, - 1056.3801210000001, - 1271.211593, - 469.70929810000007 - ], - "xaxis": "x3", - "y": [ - 72.301, - 42.731, - 56.728, - 50.728, - 52.295, - 49.58, - 50.43, - 44.74100000000001, - 50.651, - 65.152, - 46.461999999999996, - 55.321999999999996, - 48.328, - 54.791000000000004, - 71.33800000000001, - 51.57899999999999, - 58.04, - 52.946999999999996, - 56.735, - 59.448, - 60.022, - 56.007, - 46.388000000000005, - 54.11, - 42.592, - 45.678000000000004, - 73.952, - 59.443000000000005, - 48.303000000000004, - 54.467, - 64.164, - 72.801, - 71.164, - 42.082, - 52.906000000000006, - 56.867, - 46.858999999999995, - 76.442, - 46.242, - 65.528, - 63.062, - 42.568000000000005, - 48.159, - 49.339, - 58.556000000000004, - 39.613, - 52.516999999999996, - 58.42, - 73.923, - 51.542, - 42.38399999999999, - 43.486999999999995 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
gdpPercap=%{x}
lifeExp=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "uid": "470ca946-d58c-4557-a21e-3388b064be22", - "x": [ - 12779.379640000001, - 3822.1370840000004, - 9065.800825, - 36319.235010000004, - 13171.63885, - 7006.580419, - 9645.06142, - 8948.102923, - 6025.374752000001, - 6873.262326000001, - 5728.353514, - 5186.050003, - 1201.637154, - 3548.3308460000003, - 7320.880262000001, - 11977.57496, - 2749.320965, - 9809.185636, - 4172.838464, - 7408.905561, - 19328.70901, - 18008.50924, - 42951.65309, - 10611.46299, - 11415.805690000001 - ], - "xaxis": "x4", - "y": [ - 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.916000000000004, - 70.19800000000001, - 72.567, - 76.195, - 72.899, - 75.53699999999999, - 71.752, - 71.421, - 78.74600000000001, - 69.819, - 78.242, - 76.384, - 73.747 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 20434176, - 4115771 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "uid": "7e99d07b-b2c9-4d8c-aba9-cef48ae73341", - "x": [ - 34435.367439999995, - 25185.00911 - ], - "xaxis": "x5", - "y": [ - 81.235, - 80.204 - ], - "yaxis": "y" - } - ], - "layout": { - "annotations": [ - { - "showarrow": false, - "text": "continent=Asia", - "textangle": 0, - "x": 0.09183673469387754, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "continent=Europe", - "textangle": 0, - "x": 0.2959183673469387, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "continent=Africa", - "textangle": 0, - "x": 0.5, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "continent=Americas", - "textangle": 0, - "x": 0.7040816326530612, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "continent=Oceania", - "textangle": 0, - "x": 0.9081632653061223, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - } - ], - "grid": { - "xaxes": [ - "x", - "x2", - "x3", - "x4", - "x5" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "itemsizing": "constant", - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "gdpPercap" - }, - "type": "log" - }, - "xaxis2": { - "matches": "x", - "title": { - "text": "gdpPercap" - }, - "type": "log" - }, - "xaxis3": { - "matches": "x", - "title": { - "text": "gdpPercap" - }, - "type": "log" - }, - "xaxis4": { - "matches": "x", - "title": { - "text": "gdpPercap" - }, - "type": "log" - }, - "xaxis5": { - "matches": "x", - "title": { - "text": "gdpPercap" - }, - "type": "log" - }, - "yaxis": { - "title": { - "text": "lifeExp" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "# 添加 facet_col 参数 和 log_x 参数\n", - "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', \n", - " color='continent', size='pop', \n", - " size_max=60, hover_name='country',\n", - " facet_col='continent', log_x=True)" - ] - }, - { - "cell_type": "code", - "execution_count": 35, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "uid": "1c253b78-c3fd-4a8e-831d-d104b7293118", - "x": [ - 779.4453145, - 9867.084765000001, - 684.2441716, - 368.46928560000003, - 400.44861099999997, - 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.8657228999999, - 1828.230307, - 684.5971437999999, - 1272.880995, - 6459.5548229999995, - 2315.138227, - 1083.53203, - 1643.485354, - 1206.947913, - 757.7974177, - 605.0664917, - 1515.5923289999998, - 781.7175761 - ], - "xaxis": "x", - "y": [ - 28.801, - 50.93899999999999, - 37.484, - 39.417, - 44, - 60.96, - 37.373000000000005, - 37.468, - 44.869, - 45.32, - 65.39, - 63.03, - 43.158, - 50.056000000000004, - 47.453, - 55.565, - 55.928000000000004, - 48.463, - 42.244, - 36.319, - 36.157, - 37.578, - 43.43600000000001, - 47.751999999999995, - 39.875, - 60.396, - 57.593, - 45.883, - 58.5, - 50.848, - 40.412, - 43.16, - 32.548 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "uid": "8a44c660-e5ed-4c02-9f45-7e13b46d73b4", - "x": [ - 1601.056136, - 6137.076492, - 8343.105126999999, - 973.5331947999999, - 2444.2866480000002, - 3119.23652, - 6876.14025, - 9692.385245, - 6424.519071, - 7029.809327, - 7144.114393000001, - 3530.690067, - 5263.6738159999995, - 7267.688428, - 5210.280328, - 4931.404154999999, - 2647.585601, - 8941.571858, - 10095.42172, - 4029.3296990000003, - 3068.319867, - 3144.613186, - 3581.4594479999996, - 5074.659104, - 4215.041741, - 3834.0347420000003, - 8527.844662000001, - 14734.23275, - 1969.1009800000002, - 9979.508487000001 - ], - "xaxis": "x", - "y": [ - 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.163999999999994, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "uid": "d25123ef-a009-4c43-a131-713bff84a24f", - "x": [ - 2449.008185, - 3520.610273, - 1062.7522, - 851.2411407, - 543.2552413, - 339.29645869999996, - 1172.667655, - 1071.310713, - 1178.665927, - 1102.990936, - 780.5423257, - 2125.621418, - 1388.594732, - 2669.529475, - 1418.822445, - 375.6431231, - 328.94055710000004, - 362.1462796, - 4293.476475, - 485.2306591, - 911.2989371, - 510.19649230000005, - 299.850319, - 853.5409189999999, - 298.8462121, - 575.5729961000001, - 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.32387520000003, - 879.5835855, - 1450.356983, - 879.7877358, - 1135.749842, - 4725.295531000001, - 1615.991129, - 1148.376626, - 716.6500721, - 859.8086567, - 1468.475631, - 734.753484, - 1147.388831, - 406.8841148 - ], - "xaxis": "x", - "y": [ - 43.077, - 30.015, - 38.223, - 47.622, - 31.975, - 39.031, - 38.523, - 35.463, - 38.092, - 40.715, - 39.143, - 42.111000000000004, - 40.477, - 34.812, - 41.893, - 34.482, - 35.928000000000004, - 34.078, - 37.003, - 30, - 43.148999999999994, - 33.609, - 32.5, - 42.27, - 42.138000000000005, - 38.48, - 42.723, - 36.681, - 36.256, - 33.685, - 40.543, - 50.986000000000004, - 42.873000000000005, - 31.285999999999998, - 41.725, - 37.444, - 36.324, - 52.724, - 40, - 46.471000000000004, - 37.278, - 30.331, - 32.978, - 45.00899999999999, - 38.635, - 41.407, - 41.215, - 38.596, - 44.6, - 39.978, - 42.038000000000004, - 48.451 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "uid": "87eabd19-eb43-47b1-9506-f4ff504745ad", - "x": [ - 5911.315053, - 2677.3263469999997, - 2108.944355, - 11367.16112, - 3939.9787890000002, - 2144.115096, - 2627.0094710000003, - 5586.53878, - 1397.7171369999999, - 3522.110717, - 3048.3029, - 2428.2377690000003, - 1840.366939, - 2194.926204, - 2898.5308809999997, - 3478.125529, - 3112.363948, - 2480.380334, - 1952.3087010000002, - 3758.523437, - 3081.959785, - 3023.271928, - 13990.482080000002, - 5716.766744, - 7689.799761 - ], - "xaxis": "x", - "y": [ - 62.485, - 40.414, - 50.917, - 68.75, - 54.745, - 50.643, - 57.206, - 59.42100000000001, - 45.928000000000004, - 48.357, - 45.262, - 42.023, - 37.579, - 41.912, - 58.53, - 50.788999999999994, - 42.31399999999999, - 55.191, - 62.648999999999994, - 43.902, - 64.28, - 59.1, - 68.44, - 66.071, - 55.088 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 8691212, - 1994794 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "uid": "8b68c54d-68e5-44cf-aecb-a9a4f4eb52ec", - "x": [ - 10039.595640000001, - 10556.575659999999 - ], - "xaxis": "x", - "y": [ - 69.12, - 69.39 - ], - "yaxis": "y" - } - ], - "frames": [ - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 779.4453145, - 9867.084765000001, - 684.2441716, - 368.46928560000003, - 400.44861099999997, - 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.8657228999999, - 1828.230307, - 684.5971437999999, - 1272.880995, - 6459.5548229999995, - 2315.138227, - 1083.53203, - 1643.485354, - 1206.947913, - 757.7974177, - 605.0664917, - 1515.5923289999998, - 781.7175761 - ], - "xaxis": "x", - "y": [ - 28.801, - 50.93899999999999, - 37.484, - 39.417, - 44, - 60.96, - 37.373000000000005, - 37.468, - 44.869, - 45.32, - 65.39, - 63.03, - 43.158, - 50.056000000000004, - 47.453, - 55.565, - 55.928000000000004, - 48.463, - 42.244, - 36.319, - 36.157, - 37.578, - 43.43600000000001, - 47.751999999999995, - 39.875, - 60.396, - 57.593, - 45.883, - 58.5, - 50.848, - 40.412, - 43.16, - 32.548 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 1601.056136, - 6137.076492, - 8343.105126999999, - 973.5331947999999, - 2444.2866480000002, - 3119.23652, - 6876.14025, - 9692.385245, - 6424.519071, - 7029.809327, - 7144.114393000001, - 3530.690067, - 5263.6738159999995, - 7267.688428, - 5210.280328, - 4931.404154999999, - 2647.585601, - 8941.571858, - 10095.42172, - 4029.3296990000003, - 3068.319867, - 3144.613186, - 3581.4594479999996, - 5074.659104, - 4215.041741, - 3834.0347420000003, - 8527.844662000001, - 14734.23275, - 1969.1009800000002, - 9979.508487000001 - ], - "xaxis": "x", - "y": [ - 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.163999999999994, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 2449.008185, - 3520.610273, - 1062.7522, - 851.2411407, - 543.2552413, - 339.29645869999996, - 1172.667655, - 1071.310713, - 1178.665927, - 1102.990936, - 780.5423257, - 2125.621418, - 1388.594732, - 2669.529475, - 1418.822445, - 375.6431231, - 328.94055710000004, - 362.1462796, - 4293.476475, - 485.2306591, - 911.2989371, - 510.19649230000005, - 299.850319, - 853.5409189999999, - 298.8462121, - 575.5729961000001, - 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.32387520000003, - 879.5835855, - 1450.356983, - 879.7877358, - 1135.749842, - 4725.295531000001, - 1615.991129, - 1148.376626, - 716.6500721, - 859.8086567, - 1468.475631, - 734.753484, - 1147.388831, - 406.8841148 - ], - "xaxis": "x", - "y": [ - 43.077, - 30.015, - 38.223, - 47.622, - 31.975, - 39.031, - 38.523, - 35.463, - 38.092, - 40.715, - 39.143, - 42.111000000000004, - 40.477, - 34.812, - 41.893, - 34.482, - 35.928000000000004, - 34.078, - 37.003, - 30, - 43.148999999999994, - 33.609, - 32.5, - 42.27, - 42.138000000000005, - 38.48, - 42.723, - 36.681, - 36.256, - 33.685, - 40.543, - 50.986000000000004, - 42.873000000000005, - 31.285999999999998, - 41.725, - 37.444, - 36.324, - 52.724, - 40, - 46.471000000000004, - 37.278, - 30.331, - 32.978, - 45.00899999999999, - 38.635, - 41.407, - 41.215, - 38.596, - 44.6, - 39.978, - 42.038000000000004, - 48.451 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 5911.315053, - 2677.3263469999997, - 2108.944355, - 11367.16112, - 3939.9787890000002, - 2144.115096, - 2627.0094710000003, - 5586.53878, - 1397.7171369999999, - 3522.110717, - 3048.3029, - 2428.2377690000003, - 1840.366939, - 2194.926204, - 2898.5308809999997, - 3478.125529, - 3112.363948, - 2480.380334, - 1952.3087010000002, - 3758.523437, - 3081.959785, - 3023.271928, - 13990.482080000002, - 5716.766744, - 7689.799761 - ], - "xaxis": "x", - "y": [ - 62.485, - 40.414, - 50.917, - 68.75, - 54.745, - 50.643, - 57.206, - 59.42100000000001, - 45.928000000000004, - 48.357, - 45.262, - 42.023, - 37.579, - 41.912, - 58.53, - 50.788999999999994, - 42.31399999999999, - 55.191, - 62.648999999999994, - 43.902, - 64.28, - 59.1, - 68.44, - 66.071, - 55.088 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 8691212, - 1994794 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 10039.595640000001, - 10556.575659999999 - ], - "xaxis": "x", - "y": [ - 69.12, - 69.39 - ], - "yaxis": "y" - } - ], - "name": "1952" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1957
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 820.8530296, - 11635.79945, - 661.6374577, - 434.0383364, - 575.9870009, - 3629.076457, - 590.061996, - 858.9002707000001, - 3290.257643, - 6229.333562, - 5385.278451, - 4317.694365, - 1886.080591, - 1571.134655, - 1487.593537, - 113523.1329, - 6089.786934000001, - 1810.0669920000003, - 912.6626085, - 350, - 597.9363557999999, - 2242.746551, - 747.0835292, - 1547.9448439999999, - 8157.591248000001, - 2843.104409, - 1072.546602, - 2117.234893, - 1507.86129, - 793.5774147999999, - 676.2854477999999, - 1827.0677420000002, - 804.8304547 - ], - "xaxis": "x", - "y": [ - 30.331999999999997, - 53.832, - 39.348, - 41.36600000000001, - 50.54896, - 64.75, - 40.249, - 39.918, - 47.181000000000004, - 48.437, - 67.84, - 65.5, - 45.669, - 54.081, - 52.681000000000004, - 58.033, - 59.489, - 52.102, - 45.248000000000005, - 41.905, - 37.686, - 40.08, - 45.556999999999995, - 51.333999999999996, - 42.868, - 63.178999999999995, - 61.456, - 48.284, - 62.4, - 53.63, - 42.887, - 45.67100000000001, - 33.97 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1957
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 1942.2842440000002, - 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.193440000001, - 11653.97304, - 4734.253019, - 3774.571743, - 3943.370225, - 4981.090891, - 6093.2629799999995, - 5862.276629, - 4564.80241, - 9911.878226, - 17909.48973, - 2218.754257, - 11283.17795 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1957
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 3013.976023, - 3827.9404649999997, - 959.6010805, - 918.2325348999999, - 617.1834647999999, - 379.56462810000005, - 1313.048099, - 1190.844328, - 1308.495577, - 1211.1485480000001, - 905.8602302999999, - 2315.056572, - 1500.895925, - 2864.9690760000003, - 1458.915272, - 426.0964081, - 344.16188589999996, - 378.90416319999997, - 4976.198099, - 520.9267111, - 1043.5615369999998, - 576.2670245, - 431.7904566000001, - 944.4383152, - 335.99711510000003, - 620.9699901, - 3448.284395, - 1589.20275, - 416.36980639999996, - 490.3821867, - 846.1202613, - 2034.037981, - 1642.002314, - 495.5868333000001, - 2621.448058, - 835.5234025000001, - 1100.5925630000002, - 2769.451844, - 540.2893982999999, - 860.7369026, - 1567.653006, - 1004.484437, - 1258.1474130000001, - 5487.104219, - 1770.3370739999998, - 1244.708364, - 698.5356073, - 925.9083201999999, - 1395.232468, - 774.3710692000001, - 1311.956766, - 518.7642681 - ], - "xaxis": "x", - "y": [ - 45.685, - 31.999000000000002, - 40.358000000000004, - 49.618, - 34.906, - 40.533, - 40.428000000000004, - 37.464, - 39.881, - 42.46, - 40.652, - 45.053000000000004, - 42.468999999999994, - 37.328, - 44.443999999999996, - 35.983000000000004, - 38.047, - 36.667, - 38.999, - 32.065, - 44.778999999999996, - 34.558, - 33.489000000000004, - 44.68600000000001, - 45.047, - 39.486, - 45.288999999999994, - 38.865, - 37.207, - 35.306999999999995, - 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.571000000000005, - 44.077, - 50.468999999999994 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1957
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 6856.856212000001, - 2127.686326, - 2487.365989, - 12489.95006, - 4315.6227229999995, - 2323.805581, - 2990.010802, - 6092.174359000001, - 1544.402995, - 3780.5466509999997, - 3421.523218, - 2617.155967, - 1726.887882, - 2220.487682, - 4756.525781, - 4131.546641, - 3457.415947, - 2961.800905, - 2046.1547059999998, - 4245.256697999999, - 3907.1561890000003, - 4100.3934, - 14847.12712, - 6150.772969, - 9802.466526 - ], - "xaxis": "x", - "y": [ - 64.399, - 41.89, - 53.285, - 69.96, - 56.074, - 55.118, - 60.026, - 62.325, - 49.828, - 51.356, - 48.57, - 44.141999999999996, - 40.696, - 44.665, - 62.61, - 55.19, - 45.431999999999995, - 59.201, - 63.196000000000005, - 46.263000000000005, - 68.54, - 61.8, - 69.49, - 67.044, - 57.907 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1957
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 9712569, - 2229407 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 10949.64959, - 12247.39532 - ], - "xaxis": "x", - "y": [ - 70.33, - 70.26 - ], - "yaxis": "y" - } - ], - "name": "1957" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1962
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 853.1007099999999, - 12753.27514, - 686.3415537999999, - 496.9136476, - 487.6740183, - 4692.648271999999, - 658.3471509, - 849.2897700999999, - 4187.329802, - 8341.737815, - 7105.630706, - 6576.649461, - 2348.009158, - 1621.693598, - 1536.3443869999999, - 95458.11176, - 5714.560611, - 2036.8849440000001, - 1056.353958, - 388, - 652.3968593, - 2924.638113, - 803.3427418, - 1649.5521529999999, - 11626.41975, - 3674.735572, - 1074.4719599999999, - 2193.037133, - 1822.879028, - 1002.1991720000001, - 772.0491602000001, - 2198.9563120000003, - 825.6232006 - ], - "xaxis": "x", - "y": [ - 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.126000000000005, - 56.656000000000006, - 55.292, - 60.47, - 62.093999999999994, - 55.736999999999995, - 48.251000000000005, - 45.108000000000004, - 39.393, - 43.165, - 47.67, - 54.757, - 45.913999999999994, - 65.798, - 62.192, - 50.305, - 65.2, - 56.06100000000001, - 45.363, - 48.126999999999995, - 35.18 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1962
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 2312.888958, - 10750.721109999999, - 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.849559999999, - 13450.40151, - 5338.752143, - 4727.954889, - 4734.9975859999995, - 6289.629157, - 7481.1075980000005, - 7402.303395, - 5693.843879, - 12329.441920000001, - 20431.0927, - 2322.8699079999997, - 12477.17707 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1962
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 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.8419713999999, - 380.99584330000005, - 419.4564161, - 6631.4592219999995, - 599.650276, - 1190.0411179999999, - 686.3736739, - 522.0343725, - 896.9663732, - 411.80062660000004, - 634.1951625, - 6757.0308159999995, - 1643.38711, - 427.90108560000004, - 496.17434280000003, - 1055.8960359999999, - 2529.0674870000003, - 1566.353493, - 556.6863539, - 3173.215595, - 997.7661127, - 1150.9274779999998, - 3173.72334, - 597.4730727000001, - 1071.551119, - 1654.988723, - 1116.6398769999998, - 1369.488336, - 5768.729717, - 1959.593767, - 1856.182125, - 722.0038073, - 1067.5348099999999, - 1660.30321, - 767.2717397999999, - 1452.725766, - 527.2721818 - ], - "xaxis": "x", - "y": [ - 48.303000000000004, - 34, - 42.618, - 51.52, - 37.814, - 42.045, - 42.643, - 39.475, - 41.716, - 44.467, - 42.122, - 48.435, - 44.93, - 39.693000000000005, - 46.992, - 37.485, - 40.158, - 40.059, - 40.489000000000004, - 33.896, - 46.452, - 35.753, - 34.488, - 47.949, - 47.747, - 40.501999999999995, - 47.808, - 40.848, - 38.41, - 36.936, - 44.248000000000005, - 60.246, - 47.924, - 36.161, - 48.386, - 39.486999999999995, - 39.36, - 57.666000000000004, - 43, - 51.893, - 41.45399999999999, - 32.766999999999996, - 36.981, - 49.951, - 40.87, - 44.992, - 44.246, - 43.922, - 49.57899999999999, - 45.343999999999994, - 46.023, - 52.358000000000004 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1962
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 7133.166023000001, - 2180.972546, - 3336.585802, - 13462.48555, - 4519.094331, - 2492.351109, - 3460.937025, - 5180.75591, - 1662.137359, - 4086.114078, - 3776.8036270000002, - 2750.364446, - 1796.589032, - 2291.1568350000002, - 5246.107524, - 4581.609385, - 3634.364406, - 3536.540301, - 2148.027146, - 4957.037982, - 5108.34463, - 4997.5239710000005, - 16173.145859999999, - 5603.357717, - 8422.974165000001 - ], - "xaxis": "x", - "y": [ - 65.142, - 43.428000000000004, - 55.665, - 71.3, - 57.924, - 57.863, - 62.842, - 65.24600000000001, - 53.458999999999996, - 54.64, - 52.306999999999995, - 46.95399999999999, - 43.59, - 48.041000000000004, - 65.61, - 58.299, - 48.632, - 61.817, - 64.361, - 49.096000000000004, - 69.62, - 64.9, - 70.21, - 68.253, - 60.77 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1962
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 10794968, - 2488550 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 12217.226859999999, - 13175.678 - ], - "xaxis": "x", - "y": [ - 70.93, - 71.24 - ], - "yaxis": "y" - } - ], - "name": "1962" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1967
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 836.1971382, - 14804.6727, - 721.1860862000001, - 523.4323142, - 612.7056934, - 6197.962814, - 700.7706107000001, - 762.4317721, - 5906.731804999999, - 8931.459811, - 8393.741404, - 9847.788606999999, - 2741.796252, - 2143.540609, - 2029.2281420000002, - 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.8586809999997, - 1295.46066, - 637.1232887, - 2649.7150070000002, - 862.4421463 - ], - "xaxis": "x", - "y": [ - 34.02, - 59.923, - 43.453, - 45.415, - 58.381119999999996, - 70, - 47.193000000000005, - 45.964, - 52.468999999999994, - 54.458999999999996, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1967
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 2760.196931, - 12834.6024, - 13149.04119, - 2172.3524230000003, - 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.3563870000003, - 14142.85089 - ], - "xaxis": "x", - "y": [ - 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.336000000000006, - 71.36 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1967
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 3246.991771, - 5522.776375, - 1035.831411, - 1214.709294, - 794.8265597, - 412.97751360000007, - 1508.453148, - 1136.056615, - 1196.810565, - 1876.029643, - 861.5932424, - 2677.9396420000003, - 2052.0504730000002, - 3020.0505129999997, - 1814.880728, - 915.5960025, - 468.7949699, - 516.1186438, - 8358.761987, - 734.7829124, - 1125.69716, - 708.7595409, - 715.5806402000001, - 1056.736457, - 498.63902649999994, - 713.6036482999999, - 18772.75169, - 1634.047282, - 495.5147806, - 545.0098873, - 1421.145193, - 2475.387562, - 1711.04477, - 566.6691539, - 3793.694753, - 1054.384891, - 1014.5141039999999, - 4021.1757390000002, - 510.9637142, - 1384.840593, - 1612.404632, - 1206.043465, - 1284.7331800000002, - 7114.477970999999, - 1687.997641, - 2613.1016649999997, - 848.2186575, - 1477.59676, - 1932.3601670000003, - 908.9185217, - 1777.0773179999999, - 569.7950712 - ], - "xaxis": "x", - "y": [ - 51.407, - 35.985, - 44.885, - 53.298, - 40.696999999999996, - 43.548, - 44.799, - 41.478, - 43.601000000000006, - 46.472, - 44.056000000000004, - 52.04, - 47.35, - 42.074, - 49.293, - 38.986999999999995, - 42.18899999999999, - 42.115, - 44.598, - 35.857, - 48.071999999999996, - 37.196999999999996, - 35.492, - 50.653999999999996, - 48.492, - 41.536, - 50.227, - 42.881, - 39.486999999999995, - 38.486999999999995, - 46.288999999999994, - 61.556999999999995, - 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.858000000000004, - 46.633, - 45.757, - 46.769, - 52.053000000000004, - 48.051, - 47.768, - 53.995 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1967
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 8052.953020999999, - 2586.886053, - 3429.864357, - 16076.58803, - 5106.654313, - 2678.729839, - 4161.727834, - 5690.268015, - 1653.7230029999998, - 4579.074215, - 4358.595393, - 3242.5311469999997, - 1452.057666, - 2538.269358, - 6124.703450999999, - 5754.733883, - 4643.393534000001, - 4421.009084, - 2299.376311, - 5788.09333, - 6929.277714, - 5621.368472, - 19530.365569999998, - 5444.61962, - 9541.474188 - ], - "xaxis": "x", - "y": [ - 65.634, - 45.032, - 57.632, - 72.13, - 60.523, - 59.963, - 65.42399999999999, - 68.29, - 56.751000000000005, - 56.678000000000004, - 55.855, - 50.016000000000005, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1967
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 11872264, - 2728150 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 14526.12465, - 14463.918930000002 - ], - "xaxis": "x", - "y": [ - 71.1, - 71.52 - ], - "yaxis": "y" - } - ], - "name": "1967" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1972
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 739.9811057999999, - 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.6215030000003, - 3030.87665, - 109347.867, - 7486.384341, - 2849.09478, - 1421.741975, - 357, - 674.7881296, - 10618.03855, - 1049.938981, - 1989.3740699999998, - 24837.42865, - 8597.756202, - 1213.39553, - 2571.423014, - 4062.523897, - 1524.3589359999999, - 699.5016441, - 3133.4092769999997, - 1265.047031 - ], - "xaxis": "x", - "y": [ - 36.088, - 63.3, - 45.251999999999995, - 40.317, - 63.118880000000004, - 72, - 50.651, - 49.203, - 55.233999999999995, - 56.95, - 71.63, - 73.42, - 56.528, - 63.983000000000004, - 62.611999999999995, - 67.712, - 65.421, - 63.01, - 53.754, - 53.07, - 43.971000000000004, - 52.143, - 51.928999999999995, - 58.065, - 53.886, - 69.521, - 65.042, - 57.29600000000001, - 69.39, - 60.405, - 50.254, - 56.532, - 39.848 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1972
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 3313.422188, - 16661.6256, - 16672.14356, - 2860.16975, - 6597.494398, - 9164.090127, - 13108.4536, - 18866.20721, - 14358.8759, - 16107.19171, - 18016.180269999997, - 12724.82957, - 10168.65611, - 15798.063619999999, - 9530.772895999999, - 12269.27378, - 7778.414017, - 18794.74567, - 18965.05551, - 8006.506993000001, - 9022.247417, - 8011.414401999999, - 10522.067490000001, - 9674.167626, - 12383.4862, - 10638.75131, - 17832.02464, - 27195.113039999997, - 3450.69638, - 15895.116409999999 - ], - "xaxis": "x", - "y": [ - 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.63600000000001, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1972
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 4182.663766, - 5473.288004999999, - 1085.796879, - 2263.6111140000003, - 854.7359763000001, - 464.0995039, - 1684.1465280000002, - 1070.013275, - 1104.103987, - 1937.577675, - 904.8960685000001, - 3213.152683, - 2378.201111, - 3694.2123520000005, - 2024.0081469999998, - 672.4122571, - 514.3242081999999, - 566.2439442000001, - 11401.948409999999, - 756.0868363, - 1178.223708, - 741.6662307, - 820.2245876000001, - 1222.359968, - 496.58159220000005, - 803.0054535, - 21011.497209999998, - 1748.562982, - 584.6219709, - 581.3688761, - 1586.851781, - 2575.4841579999998, - 1930.194975, - 724.9178037, - 3746.080948, - 954.2092363, - 1698.3888379999999, - 5047.658563, - 590.5806637999999, - 1532.985254, - 1597.712056, - 1353.759762, - 1254.576127, - 7765.962636, - 1659.652775, - 3364.836625, - 915.9850592, - 1649.660188, - 2753.2859940000003, - 950.735869, - 1773.498265, - 799.3621757999999 - ], - "xaxis": "x", - "y": [ - 54.518, - 37.928000000000004, - 47.013999999999996, - 56.023999999999994, - 43.591, - 44.056999999999995, - 47.049, - 43.457, - 45.568999999999996, - 48.943999999999996, - 45.989, - 54.907, - 49.801, - 44.36600000000001, - 51.137, - 40.516, - 44.141999999999996, - 43.515, - 48.69, - 38.308, - 49.875, - 38.842, - 36.486, - 53.559, - 49.766999999999996, - 42.614, - 52.773, - 44.851000000000006, - 41.766000000000005, - 39.977, - 48.437, - 62.943999999999996, - 52.861999999999995, - 40.328, - 53.867, - 40.546, - 42.821000000000005, - 64.274, - 44.6, - 56.48, - 45.815, - 35.4, - 40.973, - 53.696000000000005, - 45.083, - 49.552, - 47.62, - 49.75899999999999, - 55.602, - 51.016000000000005, - 50.107, - 55.635 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1972
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 9443.038526, - 2980.331339, - 4985.711467, - 18970.57086, - 5494.024437, - 3264.660041, - 5118.146939, - 5305.445256, - 2189.874499, - 5280.99471, - 4520.246008, - 4031.4082710000002, - 1654.456946, - 2529.842345, - 7433.889293000001, - 6809.406690000001, - 4688.593267, - 5364.2496630000005, - 2523.337977, - 5937.827283, - 9123.041742, - 6619.551418999999, - 21806.03594, - 5703.408898, - 10505.25966 - ], - "xaxis": "x", - "y": [ - 67.065, - 46.714, - 59.504, - 72.88, - 63.441, - 61.623000000000005, - 67.84899999999999, - 70.723, - 59.631, - 58.79600000000001, - 58.207, - 53.738, - 48.042, - 53.88399999999999, - 69, - 62.361000000000004, - 55.151, - 66.21600000000001, - 65.815, - 55.448, - 72.16, - 65.9, - 71.34, - 68.673, - 65.712 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1972
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 13177000, - 2929100 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 16788.62948, - 16046.03728 - ], - "xaxis": "x", - "y": [ - 71.93, - 71.89 - ], - "yaxis": "y" - } - ], - "name": "1972" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1977
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 786.11336, - 19340.10196, - 659.8772322000001, - 524.9721831999999, - 741.2374699, - 11186.14125, - 813.3373230000001, - 1382.702056, - 11888.59508, - 14688.235069999999, - 13306.619209999999, - 16610.37701, - 2852.351568, - 4106.301249, - 4657.22102, - 59265.477139999995, - 8659.696836, - 3827.9215710000003, - 1647.511665, - 371, - 694.1124398, - 11848.343920000001, - 1175.921193, - 2373.204287, - 34167.7626, - 11210.08948, - 1348.775651, - 3195.484582, - 5596.519826, - 1961.2246350000003, - 713.5371196000001, - 3682.8314939999996, - 1829.765177 - ], - "xaxis": "x", - "y": [ - 38.438, - 65.593, - 46.923, - 31.22, - 63.96736, - 73.6, - 54.208, - 52.702, - 57.702, - 60.413000000000004, - 73.06, - 75.38, - 61.13399999999999, - 67.15899999999999, - 64.766, - 69.343, - 66.09899999999999, - 65.256, - 55.49100000000001, - 56.059, - 46.748000000000005, - 57.367, - 54.043, - 60.06, - 58.69, - 70.795, - 65.949, - 61.195, - 70.59, - 62.494, - 55.763999999999996, - 60.765, - 44.175 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1977
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 3533.0039100000004, - 19749.4223, - 19117.97448, - 3528.481305, - 7612.240438, - 11305.38517, - 14800.160619999999, - 20422.9015, - 15605.422830000001, - 18292.635140000002, - 20512.92123, - 14195.524280000001, - 11674.837370000001, - 19654.96247, - 11150.98113, - 14255.98475, - 9595.929904999999, - 21209.0592, - 23311.34939, - 9508.141454, - 10172.48572, - 9356.39724, - 12980.66956, - 10922.664040000001, - 15277.030169999998, - 13236.92117, - 18855.72521, - 26982.29052, - 4269.122326, - 17428.74846 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1977
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 4910.4167560000005, - 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.7610219999997, - 2785.493582, - 958.5668124, - 505.7538077, - 556.8083834, - 21745.57328, - 884.7552507000001, - 993.2239571, - 874.6858642999999, - 764.7259627999999, - 1267.613204, - 745.3695408, - 640.3224382999999, - 21951.21176, - 1544.228586, - 663.2236766, - 686.3952693, - 1497.492223, - 3710.9829630000004, - 2370.619976, - 502.31973339999996, - 3876.4859579999998, - 808.8970727999999, - 1981.9518059999998, - 4319.804067, - 670.0806011, - 1737.561657, - 1561.769116, - 1348.285159, - 1450.9925130000001, - 8028.651439, - 2202.9884230000002, - 3781.410618, - 962.4922932, - 1532.776998, - 3120.876811, - 843.7331372000001, - 1588.688299, - 685.5876821 - ], - "xaxis": "x", - "y": [ - 58.013999999999996, - 39.483000000000004, - 49.19, - 59.318999999999996, - 46.137, - 45.91, - 49.355, - 46.775, - 47.383, - 50.93899999999999, - 47.803999999999995, - 55.625, - 52.373999999999995, - 46.519, - 53.318999999999996, - 42.023999999999994, - 44.535, - 44.51, - 52.79, - 41.842, - 51.756, - 40.762, - 37.465, - 56.155, - 52.208, - 43.763999999999996, - 57.442, - 46.881, - 43.766999999999996, - 41.714, - 50.852, - 64.93, - 55.73, - 42.495, - 56.437, - 41.291000000000004, - 44.513999999999996, - 67.064, - 45, - 58.55, - 48.879, - 36.788000000000004, - 41.974, - 55.527, - 47.8, - 52.537, - 49.919, - 52.887, - 59.836999999999996, - 50.35, - 51.386, - 57.674 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1977
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 10079.026740000001, - 3548.097832, - 6660.118654, - 22090.88306, - 4756.763836, - 3815.80787, - 5926.876967, - 6380.494965999999, - 2681.9889, - 6679.62326, - 5138.922374, - 4879.992748, - 1874.2989309999998, - 3203.208066, - 6650.195573, - 7674.929108, - 5486.371089, - 5351.912144, - 3248.373311, - 6281.290854999999, - 9770.524921, - 7899.554209000001, - 24072.63213, - 6504.339663000001, - 13143.95095 - ], - "xaxis": "x", - "y": [ - 68.48100000000001, - 50.023, - 61.489, - 74.21, - 67.05199999999999, - 63.836999999999996, - 70.75, - 72.649, - 61.788000000000004, - 61.31, - 56.696000000000005, - 56.028999999999996, - 49.923, - 57.402, - 70.11, - 65.032, - 57.47, - 68.681, - 66.35300000000001, - 58.446999999999996, - 73.44, - 68.3, - 73.38, - 69.48100000000001, - 67.456 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1977
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 14074100, - 3164900 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 18334.197509999998, - 16233.7177 - ], - "xaxis": "x", - "y": [ - 73.49, - 72.22 - ], - "yaxis": "y" - } - ], - "name": "1977" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1982
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 978.0114388000001, - 19211.14731, - 676.9818656, - 624.4754784, - 962.4213804999999, - 14560.530509999999, - 855.7235377000001, - 1516.872988, - 7608.334602, - 14517.90711, - 15367.0292, - 19384.10571, - 4161.415959, - 4106.525293, - 5622.942464, - 31354.03573, - 7640.519520999999, - 4920.355951, - 2000.603139, - 424, - 718.3730947, - 12954.791009999999, - 1443.429832, - 2603.273765, - 33693.17525, - 15169.161119999999, - 1648.0797890000001, - 3761.8377149999997, - 7426.354773999999, - 2393.219781, - 707.2357863, - 4336.032082, - 1977.5570100000002 - ], - "xaxis": "x", - "y": [ - 39.854, - 69.05199999999999, - 50.00899999999999, - 50.957, - 65.525, - 75.45, - 56.596000000000004, - 56.159, - 59.62, - 62.038000000000004, - 74.45, - 77.11, - 63.739, - 69.1, - 67.123, - 71.309, - 66.983, - 68, - 57.489, - 58.056000000000004, - 49.593999999999994, - 62.728, - 56.158, - 62.082, - 63.012, - 71.76, - 68.757, - 64.59, - 72.16, - 64.597, - 58.816, - 64.406, - 49.113 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1982
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 3630.880722, - 21597.083619999998, - 20979.84589, - 4126.613157, - 8224.191647, - 13221.82184, - 15377.22855, - 21688.04048, - 18533.15761, - 20293.89746, - 22031.532740000002, - 15268.420890000001, - 12545.99066, - 23269.6075, - 12618.321409999999, - 16537.4835, - 11222.58762, - 21399.46046, - 26298.635309999998, - 8451.531004, - 11753.84291, - 9605.314053, - 15181.0927, - 11348.54585, - 17866.72175, - 13926.169969999999, - 20667.38125, - 28397.715119999997, - 4241.356344, - 18232.42452 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1982
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 5745.160213, - 2756.953672, - 1277.897616, - 4551.14215, - 807.1985855, - 559.6032309999999, - 2367.983282, - 956.7529906999999, - 797.9081006, - 1267.100083, - 673.7478181, - 4879.507522, - 2602.710169, - 2879.4680670000002, - 3503.729636, - 927.8253427000001, - 524.8758493, - 577.8607471, - 15113.36194, - 835.8096107999999, - 876.032569, - 857.2503577, - 838.1239671, - 1348.225791, - 797.2631074, - 572.1995694, - 17364.275380000003, - 1302.878658, - 632.8039209, - 618.0140640999999, - 1481.150189, - 3688.037739, - 2702.620356, - 462.2114149, - 4191.100511, - 909.7221354000001, - 1576.97375, - 5267.219353, - 881.5706467, - 1890.2181170000001, - 1518.479984, - 1465.010784, - 1176.807031, - 8568.266228, - 1895.544073, - 3895.384018, - 874.2426069, - 1344.577953, - 3560.2331740000004, - 682.2662267999999, - 1408.678565, - 788.8550411 - ], - "xaxis": "x", - "y": [ - 61.368, - 39.942, - 50.903999999999996, - 61.483999999999995, - 48.122, - 47.471000000000004, - 52.961000000000006, - 48.295, - 49.516999999999996, - 52.933, - 47.784, - 56.695, - 53.983000000000004, - 48.812, - 56.006, - 43.662, - 43.89, - 44.916000000000004, - 56.56399999999999, - 45.58, - 53.744, - 42.891000000000005, - 39.327, - 58.766000000000005, - 55.078, - 44.852, - 62.155, - 48.968999999999994, - 45.641999999999996, - 43.916000000000004, - 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.608000000000004, - 55.471000000000004, - 64.048, - 49.849, - 51.821000000000005, - 60.363 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1982
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 8997.897412, - 3156.510452, - 7030.835878, - 22898.79214, - 5095.665738000001, - 4397.575659, - 5262.734751, - 7316.9181069999995, - 2861.092386, - 7213.7912670000005, - 4098.344175, - 4820.49479, - 2011.1595489999997, - 3121.7607940000003, - 6068.05135, - 9611.147541, - 3470.3381560000003, - 7009.601598, - 4258.5036039999995, - 6434.501797, - 10330.98915, - 9119.528607, - 25009.55914, - 6920.223051000001, - 11152.410109999999 - ], - "xaxis": "x", - "y": [ - 69.942, - 53.858999999999995, - 63.336000000000006, - 75.76, - 70.565, - 66.653, - 73.45, - 73.717, - 63.727, - 64.342, - 56.604, - 58.137, - 51.461000000000006, - 60.909, - 71.21, - 67.405, - 59.298, - 70.472, - 66.874, - 61.406000000000006, - 73.75, - 68.832, - 74.65, - 70.805, - 68.557 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1982
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 15184200, - 3210650 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 19477.009280000002, - 17632.4104 - ], - "xaxis": "x", - "y": [ - 74.74, - 73.84 - ], - "yaxis": "y" - } - ], - "name": "1982" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1987
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 852.3959447999999, - 18524.02406, - 751.9794035, - 683.8955732000001, - 1378.904018, - 20038.472690000002, - 976.5126756000001, - 1748.356961, - 6642.881371, - 11643.57268, - 17122.47986, - 22375.941890000002, - 4448.679912, - 4106.4923149999995, - 8533.088805, - 28118.42998, - 5377.091329, - 5249.802653, - 2338.008304, - 385, - 775.6324501, - 18115.223130000002, - 1704.686583, - 2189.634995, - 21198.26136, - 18861.53081, - 1876.766827, - 3116.774285, - 11054.56175, - 2982.653773, - 820.7994449, - 5107.197384, - 1971.741538 - ], - "xaxis": "x", - "y": [ - 40.821999999999996, - 70.75, - 52.818999999999996, - 53.913999999999994, - 67.274, - 76.2, - 58.553000000000004, - 60.137, - 63.04, - 65.044, - 75.6, - 78.67, - 65.869, - 70.64699999999999, - 69.81, - 74.17399999999999, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1987
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 3738.9327350000003, - 23687.82607, - 22525.56308, - 4314.114757, - 8239.854824, - 13822.58394, - 16310.4434, - 25116.17581, - 21141.01223, - 22066.44214, - 24639.18566, - 16120.528390000001, - 12986.47998, - 26923.206280000002, - 13872.86652, - 19207.234819999998, - 11732.51017, - 23651.32361, - 31540.9748, - 9082.351172, - 13039.30876, - 9696.273295, - 15870.878509999999, - 12037.26758, - 18678.53492, - 15764.98313, - 23586.92927, - 30281.704589999998, - 5089.043686, - 21664.787669999998 - ], - "xaxis": "x", - "y": [ - 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.108000000000004, - 75.007 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1987
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 5681.358539, - 2430.208311, - 1225.85601, - 6205.88385, - 912.0631417000001, - 621.8188188999999, - 2602.664206, - 844.8763504000001, - 952.3861289999999, - 1315.980812, - 672.774812, - 4201.194936999999, - 2156.9560690000003, - 2880.102568, - 3885.4607100000003, - 966.8968149, - 521.1341333, - 573.7413142000001, - 11864.408440000001, - 611.6588611000001, - 847.0061135, - 805.5724717999999, - 736.4153921, - 1361.936856, - 773.9932140999999, - 506.1138573, - 11770.5898, - 1155.4419480000001, - 635.5173633999999, - 684.1715576, - 1421.603576, - 4783.586903, - 2755.046991, - 389.87618460000004, - 3693.7313369999997, - 668.3000228, - 1385.029563, - 5303.377488, - 847.991217, - 1516.525457, - 1441.72072, - 1294.4477880000002, - 1093.244963, - 7825.823398, - 1507.819159, - 3984.8398119999997, - 831.8220794, - 1202.201361, - 3810.419296, - 617.7244065, - 1213.315116, - 706.1573059 - ], - "xaxis": "x", - "y": [ - 65.79899999999999, - 39.906, - 52.336999999999996, - 63.622, - 49.556999999999995, - 48.211000000000006, - 54.985, - 50.485, - 51.051, - 54.926, - 47.412, - 57.47, - 54.655, - 50.04, - 59.797, - 45.663999999999994, - 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.861000000000004, - 60.835, - 44.555, - 46.886, - 71.913, - 44.02, - 61.728, - 55.769, - 40.006, - 44.501000000000005, - 60.833999999999996, - 51.744, - 57.678000000000004, - 51.535, - 56.941, - 66.89399999999999, - 51.50899999999999, - 50.821000000000005, - 62.351000000000006 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1987
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 9139.671389, - 2753.6914899999997, - 7807.095818000001, - 26626.515030000002, - 5547.063754, - 4903.2191, - 5629.915318, - 7532.924762999999, - 2899.842175, - 6481.776993, - 4140.442097, - 4246.485974, - 1823.015995, - 3023.0966989999997, - 6351.237495, - 8688.156003, - 2955.984375, - 7034.779161, - 3998.875695, - 6360.9434439999995, - 12281.34191, - 7388.597823, - 29884.350410000003, - 7452.398969, - 9883.584648 - ], - "xaxis": "x", - "y": [ - 70.774, - 57.251000000000005, - 65.205, - 76.86, - 72.492, - 67.768, - 74.752, - 74.17399999999999, - 66.046, - 67.23100000000001, - 63.153999999999996, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1987
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 16257249, - 3317166 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 21888.889030000002, - 19007.19129 - ], - "xaxis": "x", - "y": [ - 76.32, - 74.32 - ], - "yaxis": "y" - } - ], - "name": "1987" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1992
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 649.3413952000001, - 19035.579169999997, - 837.8101642999999, - 682.3031755, - 1655.784158, - 24757.60301, - 1164.406809, - 2383.140898, - 7235.653187999999, - 3745.6406869999996, - 18051.52254, - 26824.895109999998, - 3431.5936469999997, - 3726.063507, - 12104.27872, - 34932.91959, - 6890.806854, - 7277.912802, - 1785.402016, - 347, - 897.7403604, - 18616.70691, - 1971.8294640000001, - 2279.3240170000004, - 24841.617769999997, - 24769.8912, - 2153.7392219999997, - 3340.542768, - 15215.6579, - 4616.8965450000005, - 989.0231487, - 6017.654756, - 1879.496673 - ], - "xaxis": "x", - "y": [ - 41.674, - 72.601, - 56.018, - 55.803000000000004, - 68.69, - 77.601, - 60.223, - 62.681000000000004, - 65.742, - 59.461000000000006, - 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.37899999999999, - 69.249, - 74.26, - 67.298, - 67.66199999999999, - 69.718, - 55.599 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1992
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 2497.4379010000002, - 27042.01868, - 25575.57069, - 2546.781445, - 6302.6234380000005, - 8447.794873, - 14297.021219999999, - 26406.73985, - 20647.16499, - 24703.79615, - 26505.30317, - 17541.49634, - 10535.62855, - 25144.39201, - 17558.81555, - 22013.64486, - 7003.339037000001, - 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 - ], - "xaxis": "x", - "y": [ - 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.65899999999999, - 71.38, - 73.64, - 77.57, - 78.16, - 78.03, - 66.146, - 76.42 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1992
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 5023.216647, - 2627.8456850000002, - 1191.207681, - 7954.111645, - 931.7527731, - 631.6998778, - 1793.1632780000002, - 747.9055252, - 1058.0643, - 1246.90737, - 457.7191807, - 4016.239529, - 1648.073791, - 2377.1561920000004, - 3794.755195, - 1132.055034, - 582.8585102000001, - 421.3534653, - 13522.157519999999, - 665.6244126, - 925.0601539999999, - 794.3484384, - 745.5398706, - 1341.9217210000002, - 977.4862724999999, - 636.6229191000001, - 9640.138501000001, - 1040.6761900000001, - 563.2000145, - 739.014375, - 1361.369784, - 6058.2538460000005, - 2948.047252, - 410.89682389999996, - 3804.537999, - 581.182725, - 1619.848217, - 6101.2558229999995, - 737.0685949, - 1428.777814, - 1367.899369, - 1068.696278, - 926.9602964, - 7225.0692579999995, - 1492.197043, - 3553.0224, - 825.682454, - 1034.298904, - 4332.720164, - 644.1707968999999, - 1210.884633, - 693.4207856 - ], - "xaxis": "x", - "y": [ - 67.744, - 40.647, - 53.919, - 62.745, - 50.26, - 44.736000000000004, - 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.501000000000005, - 48.576, - 43.266000000000005, - 59.285, - 59.685, - 40.802, - 68.755, - 52.214, - 49.42, - 48.388000000000005, - 58.333, - 69.745, - 65.393, - 44.284, - 61.998999999999995, - 47.391000000000005, - 47.472, - 73.615, - 23.599, - 62.742, - 58.196000000000005, - 38.333, - 39.658, - 61.888000000000005, - 53.556000000000004, - 58.474, - 50.44, - 58.06100000000001, - 70.001, - 48.825, - 46.1, - 60.376999999999995 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1992
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 9308.41871, - 2961.699694, - 6950.283020999999, - 26342.88426, - 7596.125964, - 5444.648617, - 6160.416317, - 5592.843963, - 3044.214214, - 7103.702595000001, - 4444.2317, - 4439.4508399999995, - 1456.309517, - 3081.694603, - 7404.923685, - 9472.384295, - 2170.151724, - 6618.74305, - 4196.411078, - 4446.380924, - 14641.587109999999, - 7370.990932, - 32003.93224, - 8137.004775, - 10733.926309999999 - ], - "xaxis": "x", - "y": [ - 71.868, - 59.957, - 67.057, - 77.95, - 74.126, - 68.421, - 75.71300000000001, - 74.414, - 68.457, - 69.613, - 66.798, - 63.373000000000005, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1992
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 17481977, - 3437674 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 23424.76683, - 18363.324940000002 - ], - "xaxis": "x", - "y": [ - 77.56, - 76.33 - ], - "yaxis": "y" - } - ], - "name": "1992" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=1997
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 635.341351, - 20292.01679, - 972.7700352, - 734.28517, - 2289.234136, - 28377.632189999997, - 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.055809999998, - 2049.3505210000003, - 2536.534925, - 20586.69019, - 33519.4766, - 2664.477257, - 4014.238972, - 20206.82098, - 5852.625497, - 1385.896769, - 7110.667619, - 2117.484526 - ], - "xaxis": "x", - "y": [ - 41.763000000000005, - 73.925, - 59.412, - 56.534, - 70.426, - 80, - 61.765, - 66.041, - 68.042, - 58.81100000000001, - 78.26899999999999, - 80.69, - 69.77199999999999, - 67.727, - 74.64699999999999, - 76.156, - 70.265, - 71.938, - 63.625, - 60.328, - 59.426, - 72.499, - 61.818000000000005, - 68.564, - 70.533, - 77.158, - 70.457, - 71.527, - 75.25, - 67.521, - 70.672, - 71.096, - 58.02 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=1997
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 3193.054604, - 29095.920660000003, - 27561.196630000002, - 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.320304000001, - 12126.23065, - 17161.10735, - 20445.29896, - 25266.59499, - 32135.323010000004, - 6601.429915, - 26074.53136 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=1997
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 4797.295051, - 2277.140884, - 1232.975292, - 8647.142313, - 946.2949617999999, - 463.1151478, - 1694.337469, - 740.5063317, - 1004.9613529999999, - 1173.618235, - 312.188423, - 3484.1643759999997, - 1786.265407, - 1895.016984, - 4173.181797, - 2814.480755, - 913.4707900000001, - 515.8894013, - 14722.841880000002, - 653.7301704, - 1005.2458119999999, - 869.4497667999999, - 796.6644681, - 1360.4850210000002, - 1186.147994, - 609.1739508, - 9467.446056, - 986.2958956, - 692.2758102999999, - 790.2579846, - 1483.1361359999999, - 7425.705295000001, - 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.2107640000002, - 3876.7684600000002, - 789.1862231, - 982.2869242999999, - 4876.798614, - 816.559081, - 1071.353818, - 792.4499602999999 - ], - "xaxis": "x", - "y": [ - 69.152, - 40.963, - 54.777, - 52.556000000000004, - 50.324, - 45.326, - 52.199, - 46.066, - 51.573, - 60.66, - 42.586999999999996, - 52.961999999999996, - 47.99100000000001, - 53.157, - 67.217, - 48.245, - 53.378, - 49.402, - 60.461000000000006, - 55.861000000000004, - 58.556000000000004, - 51.455, - 44.873000000000005, - 54.407, - 55.558, - 42.221000000000004, - 71.555, - 54.978, - 47.495, - 49.903, - 60.43, - 70.736, - 67.66, - 46.343999999999994, - 58.909, - 51.313, - 47.464, - 74.77199999999999, - 36.086999999999996, - 63.306000000000004, - 60.187, - 39.897, - 43.795, - 60.236000000000004, - 55.373000000000005, - 54.288999999999994, - 48.466, - 58.39, - 71.973, - 44.578, - 40.238, - 46.809 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=1997
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 10967.28195, - 3326.143191, - 7957.980823999999, - 28954.92589, - 10118.053179999999, - 6117.3617460000005, - 6677.045314, - 5431.990415, - 3614.101285, - 7429.455876999999, - 5154.825496, - 4684.313807, - 1341.7269310000001, - 3160.454906, - 7121.924704000001, - 9767.29753, - 2253.023004, - 7113.692252, - 4247.400261, - 5838.347657, - 16999.4333, - 8792.573126000001, - 35767.43303, - 9230.240708, - 10165.49518 - ], - "xaxis": "x", - "y": [ - 73.275, - 62.05, - 69.388, - 78.61, - 75.816, - 70.313, - 77.26, - 76.15100000000001, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=1997
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 18565243, - 3676187 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 26997.936569999998, - 21050.41377 - ], - "xaxis": "x", - "y": [ - 78.83, - 77.55 - ], - "yaxis": "y" - } - ], - "name": "1997" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=2002
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 726.7340548, - 23403.559269999998, - 1136.3904300000002, - 896.2260152999999, - 3119.280896, - 30209.015160000003, - 1746.769454, - 2873.91287, - 9240.761975, - 4390.717312, - 21905.59514, - 28604.5919, - 3844.9171939999997, - 1646.758151, - 19233.98818, - 35110.10566, - 9313.93883, - 10206.97794, - 2140.7393230000002, - 611, - 1057.206311, - 19774.83687, - 2092.712441, - 2650.921068, - 19014.54118, - 36023.1054, - 3015.3788329999998, - 4090.9253310000004, - 23235.42329, - 5913.187529, - 1764.456677, - 4515.487575, - 2234.820827 - ], - "xaxis": "x", - "y": [ - 42.129, - 74.795, - 62.013000000000005, - 56.751999999999995, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=2002
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 4604.211737, - 32417.607689999997, - 30485.88375, - 6018.975239, - 7696.777725, - 11628.38895, - 17596.210219999997, - 32166.500060000002, - 28204.59057, - 28926.032339999998, - 30035.80198, - 22514.2548, - 14843.93556, - 31163.201960000002, - 34077.04939, - 27968.098169999997, - 6557.194282, - 33724.75778, - 44683.97525, - 12002.23908, - 19970.90787, - 7885.360081, - 7236.075251, - 13638.778369999998, - 20660.01936, - 24835.47166, - 29341.630930000003, - 34480.95771, - 6508.085718, - 29478.99919 - ], - "xaxis": "x", - "y": [ - 75.65100000000001, - 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.98100000000001, - 78.53, - 79.05, - 74.67, - 77.29, - 71.322, - 73.21300000000001, - 73.8, - 76.66, - 79.78, - 80.04, - 80.62, - 70.845, - 78.471 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=2002
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 5288.040382, - 2773.287312, - 1372.877931, - 11003.60508, - 1037.645221, - 446.4035126, - 1934.0114489999999, - 738.6906068, - 1156.18186, - 1075.811558, - 241.16587650000002, - 3484.06197, - 1648.800823, - 1908.2608670000002, - 4754.604414, - 7703.4959, - 765.3500015, - 530.0535319, - 12521.71392, - 660.5855997, - 1111.9845779999998, - 945.5835837000001, - 575.7047176, - 1287.514732, - 1275.184575, - 531.4823679, - 9534.677467, - 894.6370822, - 665.4231186000001, - 951.4097517999999, - 1579.0195429999999, - 9021.815894, - 3258.495584, - 633.6179466, - 4072.3247509999997, - 601.0745012, - 1615.2863949999999, - 6316.1652, - 785.6537647999999, - 1353.09239, - 1519.635262, - 699.4897129999999, - 882.0818218000001, - 7710.946444, - 1993.398314, - 4128.116943, - 899.0742111, - 886.2205765000001, - 5722.895654999999, - 927.7210018, - 1071.6139380000002, - 672.0386227000001 - ], - "xaxis": "x", - "y": [ - 70.994, - 41.003, - 54.406000000000006, - 46.63399999999999, - 50.65, - 47.36, - 49.856, - 43.308, - 50.525, - 62.974, - 44.966, - 52.97, - 46.832, - 53.373000000000005, - 69.806, - 49.348, - 55.24, - 50.725, - 56.761, - 58.041000000000004, - 58.453, - 53.676, - 45.504, - 50.992, - 44.593, - 43.753, - 72.737, - 57.286, - 45.00899999999999, - 51.818000000000005, - 62.247, - 71.954, - 69.615, - 44.026, - 51.479, - 54.496, - 46.608000000000004, - 75.744, - 43.413000000000004, - 64.337, - 61.6, - 41.012, - 45.93600000000001, - 53.365, - 56.369, - 43.869, - 49.651, - 57.56100000000001, - 73.042, - 47.813, - 39.193000000000005, - 39.989000000000004 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=2002
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 8797.640716, - 3413.26269, - 8131.212843000001, - 33328.96507, - 10778.78385, - 5755.259962, - 7723.447195000001, - 6340.646683, - 4563.808154, - 5773.0445119999995, - 5351.568665999999, - 4858.347495, - 1270.364932, - 3099.72866, - 6994.774861, - 10742.44053, - 2474.548819, - 7356.031934000001, - 3783.674243, - 5909.020073, - 18855.606180000002, - 11460.60023, - 39097.09955, - 7727.002004000001, - 8605.047831 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=2002
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 19546792, - 3908037 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 30687.75473, - 23189.80135 - ], - "xaxis": "x", - "y": [ - 80.37, - 79.11 - ], - "yaxis": "y" - } - ], - "name": "2002" - }, - { - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Asia
year=2007
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Asia", - "showlegend": true, - "type": "scatter", - "x": [ - 974.5803384, - 29796.048339999998, - 1391.253792, - 1713.7786859999999, - 4959.1148539999995, - 39724.97867, - 2452.210407, - 3540.6515640000002, - 11605.71449, - 4471.061906, - 25523.2771, - 31656.06806, - 4519.461171, - 1593.06548, - 23348.139730000003, - 47306.98978, - 10461.05868, - 12451.6558, - 3095.7722710000003, - 944, - 1091.359778, - 22316.19287, - 2605.94758, - 3190.481016, - 21654.83194, - 47143.179639999995, - 3970.0954070000003, - 4184.548089, - 28718.27684, - 7458.3963269999995, - 2441.576404, - 3025.349798, - 2280.769906 - ], - "xaxis": "x", - "y": [ - 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.58800000000001, - 71.993, - 74.241, - 66.803, - 62.068999999999996, - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Europe
year=2007
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Europe", - "showlegend": true, - "type": "scatter", - "x": [ - 5937.029525999999, - 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.789189999996, - 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.419069999996, - 8458.276384, - 33203.26128 - ], - "xaxis": "x", - "y": [ - 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.33800000000001, - 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.70100000000001, - 71.777, - 79.425 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Africa
year=2007
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Africa", - "showlegend": true, - "type": "scatter", - "x": [ - 6223.367465, - 4797.231267, - 1441.284873, - 12569.851770000001, - 1217.032994, - 430.07069160000003, - 2042.0952399999999, - 706.016537, - 1704.0637239999999, - 986.1478792000001, - 277.55185869999997, - 3632.557798, - 1544.750112, - 2082.4815670000003, - 5581.180998, - 12154.08975, - 641.3695236000001, - 690.8055759, - 13206.48452, - 752.7497265, - 1327.60891, - 942.6542111, - 579.2317429999999, - 1463.249282, - 1569.331442, - 414.5073415, - 12057.49928, - 1044.770126, - 759.3499101, - 1042.581557, - 1803.1514960000002, - 10956.99112, - 3820.17523, - 823.6856205, - 4811.060429, - 619.6768923999999, - 2013.9773050000001, - 7670.122558, - 863.0884639000001, - 1598.435089, - 1712.4721359999999, - 862.5407561000001, - 926.1410683, - 9269.657808, - 2602.394995, - 4513.480643, - 1107.482182, - 882.9699437999999, - 7092.923025, - 1056.3801210000001, - 1271.211593, - 469.70929810000007 - ], - "xaxis": "x", - "y": [ - 72.301, - 42.731, - 56.728, - 50.728, - 52.295, - 49.58, - 50.43, - 44.74100000000001, - 50.651, - 65.152, - 46.461999999999996, - 55.321999999999996, - 48.328, - 54.791000000000004, - 71.33800000000001, - 51.57899999999999, - 58.04, - 52.946999999999996, - 56.735, - 59.448, - 60.022, - 56.007, - 46.388000000000005, - 54.11, - 42.592, - 45.678000000000004, - 73.952, - 59.443000000000005, - 48.303000000000004, - 54.467, - 64.164, - 72.801, - 71.164, - 42.082, - 52.906000000000006, - 56.867, - 46.858999999999995, - 76.442, - 46.242, - 65.528, - 63.062, - 42.568000000000005, - 48.159, - 49.339, - 58.556000000000004, - 39.613, - 52.516999999999996, - 58.42, - 73.923, - 51.542, - 42.38399999999999, - 43.486999999999995 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Americas
year=2007
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": "continent=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": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Americas", - "showlegend": true, - "type": "scatter", - "x": [ - 12779.379640000001, - 3822.1370840000004, - 9065.800825, - 36319.235010000004, - 13171.63885, - 7006.580419, - 9645.06142, - 8948.102923, - 6025.374752000001, - 6873.262326000001, - 5728.353514, - 5186.050003, - 1201.637154, - 3548.3308460000003, - 7320.880262000001, - 11977.57496, - 2749.320965, - 9809.185636, - 4172.838464, - 7408.905561, - 19328.70901, - 18008.50924, - 42951.65309, - 10611.46299, - 11415.805690000001 - ], - "xaxis": "x", - "y": [ - 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.916000000000004, - 70.19800000000001, - 72.567, - 76.195, - 72.899, - 75.53699999999999, - 71.752, - 71.421, - 78.74600000000001, - 69.819, - 78.242, - 76.384, - 73.747 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

continent=Oceania
year=2007
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", - "hovertext": [ - "Australia", - "New Zealand" - ], - "ids": [ - "Australia", - "New Zealand" - ], - "legendgroup": "continent=Oceania", - "marker": { - "color": "#19d3f3", - "size": [ - 20434176, - 4115771 - ], - "sizemode": "area", - "sizeref": 366300.86, - "symbol": "circle" - }, - "mode": "markers", - "name": "continent=Oceania", - "showlegend": true, - "type": "scatter", - "x": [ - 34435.367439999995, - 25185.00911 - ], - "xaxis": "x", - "y": [ - 81.235, - 80.204 - ], - "yaxis": "y" - } - ], - "name": "2007" - } - ], - "layout": { - "grid": { - "xaxes": [ - "x" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "itemsizing": "constant", - "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": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "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": { - "range": [ - 1, - 5 - ], - "title": { - "text": "GDP per Capita" - }, - "type": "log" - }, - "yaxis": { - "range": [ - 25, - 90 - ], - "title": { - "text": "Life Expectancy" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.scatter(gapminder, x='gdpPercap', y='lifeExp', \n", - " color='continent', size='pop', \n", - " size_max=60, hover_name='country',\n", - " animation_frame='year', animation_group='country',\n", - " log_x=True, range_x=[10,100000],\n", - " range_y=[25,90], labels=dict(pop='Population', gdpPercap='GDP per Capita', lifeExp='Life Expectancy'))" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## maps" - ] - }, - { - "cell_type": "code", - "execution_count": 36, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1952
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "uid": "e72b955f-e1f8-4c0e-83ae-a9526ca291fd", - "z": [ - 28.801, - 55.23, - 43.077, - 30.015, - 62.485, - 69.12, - 66.8, - 50.93899999999999, - 37.484, - 68, - 38.223, - 40.414, - 53.82, - 47.622, - 50.917, - 59.6, - 31.975, - 39.031, - 39.417, - 38.523, - 68.75, - 35.463, - 38.092, - 54.745, - 44, - 50.643, - 40.715, - 39.143, - 42.111000000000004, - 57.206, - 40.477, - 61.21, - 59.42100000000001, - 66.87, - 70.78, - 34.812, - 45.928000000000004, - 48.357, - 41.893, - 45.262, - 34.482, - 35.928000000000004, - 34.078, - 66.55, - 67.41, - 37.003, - 30, - 67.5, - 43.148999999999994, - 65.86, - 42.023, - 33.609, - 32.5, - 37.579, - 41.912, - 60.96, - 64.03, - 72.49, - 37.373000000000005, - 37.468, - 44.869, - 45.32, - 66.91, - 65.39, - 65.94, - 58.53, - 63.03, - 43.158, - 42.27, - 50.056000000000004, - 47.453, - 55.565, - 55.928000000000004, - 42.138000000000005, - 38.48, - 42.723, - 36.681, - 36.256, - 48.463, - 33.685, - 40.543, - 50.986000000000004, - 50.788999999999994, - 42.244, - 59.163999999999994, - 42.873000000000005, - 31.285999999999998, - 36.319, - 41.725, - 36.157, - 72.13, - 69.39, - 42.31399999999999, - 37.444, - 36.324, - 72.67, - 37.578, - 43.43600000000001, - 55.191, - 62.648999999999994, - 43.902, - 47.751999999999995, - 61.31, - 59.82, - 64.28, - 52.724, - 61.05, - 40, - 46.471000000000004, - 39.875, - 37.278, - 57.996, - 30.331, - 60.396, - 64.36, - 65.57, - 32.978, - 45.00899999999999, - 64.94, - 57.593, - 38.635, - 41.407, - 71.86, - 69.62, - 45.883, - 58.5, - 41.215, - 50.848, - 38.596, - 59.1, - 44.6, - 43.585, - 39.978, - 69.18, - 68.44, - 66.071, - 55.088, - 40.412, - 43.16, - 32.548, - 42.038000000000004, - 48.451 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "frames": [ - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1952
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 28.801, - 55.23, - 43.077, - 30.015, - 62.485, - 69.12, - 66.8, - 50.93899999999999, - 37.484, - 68, - 38.223, - 40.414, - 53.82, - 47.622, - 50.917, - 59.6, - 31.975, - 39.031, - 39.417, - 38.523, - 68.75, - 35.463, - 38.092, - 54.745, - 44, - 50.643, - 40.715, - 39.143, - 42.111000000000004, - 57.206, - 40.477, - 61.21, - 59.42100000000001, - 66.87, - 70.78, - 34.812, - 45.928000000000004, - 48.357, - 41.893, - 45.262, - 34.482, - 35.928000000000004, - 34.078, - 66.55, - 67.41, - 37.003, - 30, - 67.5, - 43.148999999999994, - 65.86, - 42.023, - 33.609, - 32.5, - 37.579, - 41.912, - 60.96, - 64.03, - 72.49, - 37.373000000000005, - 37.468, - 44.869, - 45.32, - 66.91, - 65.39, - 65.94, - 58.53, - 63.03, - 43.158, - 42.27, - 50.056000000000004, - 47.453, - 55.565, - 55.928000000000004, - 42.138000000000005, - 38.48, - 42.723, - 36.681, - 36.256, - 48.463, - 33.685, - 40.543, - 50.986000000000004, - 50.788999999999994, - 42.244, - 59.163999999999994, - 42.873000000000005, - 31.285999999999998, - 36.319, - 41.725, - 36.157, - 72.13, - 69.39, - 42.31399999999999, - 37.444, - 36.324, - 72.67, - 37.578, - 43.43600000000001, - 55.191, - 62.648999999999994, - 43.902, - 47.751999999999995, - 61.31, - 59.82, - 64.28, - 52.724, - 61.05, - 40, - 46.471000000000004, - 39.875, - 37.278, - 57.996, - 30.331, - 60.396, - 64.36, - 65.57, - 32.978, - 45.00899999999999, - 64.94, - 57.593, - 38.635, - 41.407, - 71.86, - 69.62, - 45.883, - 58.5, - 41.215, - 50.848, - 38.596, - 59.1, - 44.6, - 43.585, - 39.978, - 69.18, - 68.44, - 66.071, - 55.088, - 40.412, - 43.16, - 32.548, - 42.038000000000004, - 48.451 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "1952" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1957
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 30.331999999999997, - 59.28, - 45.685, - 31.999000000000002, - 64.399, - 70.33, - 67.48, - 53.832, - 39.348, - 69.24, - 40.358000000000004, - 41.89, - 58.45, - 49.618, - 53.285, - 66.61, - 34.906, - 40.533, - 41.36600000000001, - 40.428000000000004, - 69.96, - 37.464, - 39.881, - 56.074, - 50.54896, - 55.118, - 42.46, - 40.652, - 45.053000000000004, - 60.026, - 42.468999999999994, - 64.77, - 62.325, - 69.03, - 71.81, - 37.328, - 49.828, - 51.356, - 44.443999999999996, - 48.57, - 35.983000000000004, - 38.047, - 36.667, - 67.49, - 68.93, - 38.999, - 32.065, - 69.1, - 44.778999999999996, - 67.86, - 44.141999999999996, - 34.558, - 33.489000000000004, - 40.696, - 44.665, - 64.75, - 66.41, - 73.47, - 40.249, - 39.918, - 47.181000000000004, - 48.437, - 68.9, - 67.84, - 67.81, - 62.61, - 65.5, - 45.669, - 44.68600000000001, - 54.081, - 52.681000000000004, - 58.033, - 59.489, - 45.047, - 39.486, - 45.288999999999994, - 38.865, - 37.207, - 52.102, - 35.306999999999995, - 42.338, - 58.089, - 55.19, - 45.248000000000005, - 61.448, - 45.423, - 33.779, - 41.905, - 45.226000000000006, - 37.686, - 72.99, - 70.26, - 45.431999999999995, - 38.598, - 37.802, - 73.44, - 40.08, - 45.556999999999995, - 59.201, - 63.196000000000005, - 46.263000000000005, - 51.333999999999996, - 65.77, - 61.51, - 68.54, - 55.09, - 64.1, - 41.5, - 48.945, - 42.868, - 39.329, - 61.685, - 31.57, - 63.178999999999995, - 67.45, - 67.85, - 34.977, - 47.985, - 66.66, - 61.456, - 39.624, - 43.424, - 72.49, - 70.56, - 48.284, - 62.4, - 42.974, - 53.63, - 41.208, - 61.8, - 47.1, - 48.07899999999999, - 42.571000000000005, - 70.42, - 69.49, - 67.044, - 57.907, - 42.887, - 45.67100000000001, - 33.97, - 44.077, - 50.468999999999994 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "1957" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1962
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 31.997, - 64.82, - 48.303000000000004, - 34, - 65.142, - 70.93, - 69.54, - 56.923, - 41.216, - 70.25, - 42.618, - 43.428000000000004, - 61.93, - 51.52, - 55.665, - 69.51, - 37.814, - 42.045, - 43.415, - 42.643, - 71.3, - 39.475, - 41.716, - 57.924, - 44.50136, - 57.863, - 44.467, - 42.122, - 48.435, - 62.842, - 44.93, - 67.13, - 65.24600000000001, - 69.9, - 72.35, - 39.693000000000005, - 53.458999999999996, - 54.64, - 46.992, - 52.306999999999995, - 37.485, - 40.158, - 40.059, - 68.75, - 70.51, - 40.489000000000004, - 33.896, - 70.3, - 46.452, - 69.51, - 46.95399999999999, - 35.753, - 34.488, - 43.59, - 48.041000000000004, - 67.65, - 67.96, - 73.68, - 43.605, - 42.518, - 49.325, - 51.457, - 70.29, - 69.39, - 69.24, - 65.61, - 68.73, - 48.126000000000005, - 47.949, - 56.656000000000006, - 55.292, - 60.47, - 62.093999999999994, - 47.747, - 40.501999999999995, - 47.808, - 40.848, - 38.41, - 55.736999999999995, - 36.936, - 44.248000000000005, - 60.246, - 58.299, - 48.251000000000005, - 63.728, - 47.924, - 36.161, - 45.108000000000004, - 48.386, - 39.393, - 73.23, - 71.24, - 48.632, - 39.486999999999995, - 39.36, - 73.47, - 43.165, - 47.67, - 61.817, - 64.361, - 49.096000000000004, - 54.757, - 67.64, - 64.39, - 69.62, - 57.666000000000004, - 66.8, - 43, - 51.893, - 45.913999999999994, - 41.45399999999999, - 64.531, - 32.766999999999996, - 65.798, - 70.33, - 69.15, - 36.981, - 49.951, - 69.69, - 62.192, - 40.87, - 44.992, - 73.37, - 71.32, - 50.305, - 65.2, - 44.246, - 56.06100000000001, - 43.922, - 64.9, - 49.57899999999999, - 52.098, - 45.343999999999994, - 70.76, - 70.21, - 68.253, - 60.77, - 45.363, - 48.126999999999995, - 35.18, - 46.023, - 52.358000000000004 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "1962" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1967
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 34.02, - 66.22, - 51.407, - 35.985, - 65.634, - 71.1, - 70.14, - 59.923, - 43.453, - 70.94, - 44.885, - 45.032, - 64.79, - 53.298, - 57.632, - 70.42, - 40.696999999999996, - 43.548, - 45.415, - 44.799, - 72.13, - 41.478, - 43.601000000000006, - 60.523, - 58.381119999999996, - 59.963, - 46.472, - 44.056000000000004, - 52.04, - 65.42399999999999, - 47.35, - 68.5, - 68.29, - 70.38, - 72.96, - 42.074, - 56.751000000000005, - 56.678000000000004, - 49.293, - 55.855, - 38.986999999999995, - 42.18899999999999, - 42.115, - 69.83, - 71.55, - 44.598, - 35.857, - 70.8, - 48.071999999999996, - 71, - 50.016000000000005, - 37.196999999999996, - 35.492, - 46.243, - 50.924, - 70, - 69.5, - 73.73, - 47.193000000000005, - 45.964, - 52.468999999999994, - 54.458999999999996, - 71.08, - 70.75, - 71.06, - 67.51, - 71.43, - 51.629, - 50.653999999999996, - 59.942, - 57.716, - 64.624, - 63.87, - 48.492, - 41.536, - 50.227, - 42.881, - 39.486999999999995, - 59.371, - 38.486999999999995, - 46.288999999999994, - 61.556999999999995, - 60.11, - 51.253, - 67.178, - 50.335, - 38.113, - 49.379, - 51.159, - 41.472, - 73.82, - 71.52, - 51.88399999999999, - 40.118, - 41.04, - 74.08, - 46.988, - 49.8, - 64.071, - 64.95100000000001, - 51.445, - 56.393, - 69.61, - 66.6, - 71.1, - 60.542, - 66.8, - 44.1, - 54.425, - 49.901, - 43.563, - 66.914, - 34.113, - 67.946, - 70.98, - 69.18, - 38.977, - 51.927, - 71.44, - 64.266, - 42.858000000000004, - 46.633, - 74.16, - 72.77, - 53.655, - 67.5, - 45.757, - 58.285, - 46.769, - 65.4, - 52.053000000000004, - 54.336000000000006, - 48.051, - 71.36, - 70.76, - 68.468, - 63.479, - 47.838, - 51.631, - 36.984, - 47.768, - 53.995 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "1967" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1972
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 36.088, - 67.69, - 54.518, - 37.928000000000004, - 67.065, - 71.93, - 70.63, - 63.3, - 45.251999999999995, - 71.44, - 47.013999999999996, - 46.714, - 67.45, - 56.023999999999994, - 59.504, - 70.9, - 43.591, - 44.056999999999995, - 40.317, - 47.049, - 72.88, - 43.457, - 45.568999999999996, - 63.441, - 63.118880000000004, - 61.623000000000005, - 48.943999999999996, - 45.989, - 54.907, - 67.84899999999999, - 49.801, - 69.61, - 70.723, - 70.29, - 73.47, - 44.36600000000001, - 59.631, - 58.79600000000001, - 51.137, - 58.207, - 40.516, - 44.141999999999996, - 43.515, - 70.87, - 72.38, - 48.69, - 38.308, - 71, - 49.875, - 72.34, - 53.738, - 38.842, - 36.486, - 48.042, - 53.88399999999999, - 72, - 69.76, - 74.46, - 50.651, - 49.203, - 55.233999999999995, - 56.95, - 71.28, - 71.63, - 72.19, - 69, - 73.42, - 56.528, - 53.559, - 63.983000000000004, - 62.611999999999995, - 67.712, - 65.421, - 49.766999999999996, - 42.614, - 52.773, - 44.851000000000006, - 41.766000000000005, - 63.01, - 39.977, - 48.437, - 62.943999999999996, - 62.361000000000004, - 53.754, - 70.63600000000001, - 52.861999999999995, - 40.328, - 53.07, - 53.867, - 43.971000000000004, - 73.75, - 71.89, - 55.151, - 40.546, - 42.821000000000005, - 74.34, - 52.143, - 51.928999999999995, - 66.21600000000001, - 65.815, - 55.448, - 58.065, - 70.85, - 69.26, - 72.16, - 64.274, - 69.21, - 44.6, - 56.48, - 53.886, - 45.815, - 68.7, - 35.4, - 69.521, - 70.35, - 69.82, - 40.973, - 53.696000000000005, - 73.06, - 65.042, - 45.083, - 49.552, - 74.72, - 73.78, - 57.29600000000001, - 69.39, - 47.62, - 60.405, - 49.75899999999999, - 65.9, - 55.602, - 57.005, - 51.016000000000005, - 72.01, - 71.34, - 68.673, - 65.712, - 50.254, - 56.532, - 39.848, - 50.107, - 55.635 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "1972" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1977
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 38.438, - 68.93, - 58.013999999999996, - 39.483000000000004, - 68.48100000000001, - 73.49, - 72.17, - 65.593, - 46.923, - 72.8, - 49.19, - 50.023, - 69.86, - 59.318999999999996, - 61.489, - 70.81, - 46.137, - 45.91, - 31.22, - 49.355, - 74.21, - 46.775, - 47.383, - 67.05199999999999, - 63.96736, - 63.836999999999996, - 50.93899999999999, - 47.803999999999995, - 55.625, - 70.75, - 52.373999999999995, - 70.64, - 72.649, - 70.71, - 74.69, - 46.519, - 61.788000000000004, - 61.31, - 53.318999999999996, - 56.696000000000005, - 42.023999999999994, - 44.535, - 44.51, - 72.52, - 73.83, - 52.79, - 41.842, - 72.5, - 51.756, - 73.68, - 56.028999999999996, - 40.762, - 37.465, - 49.923, - 57.402, - 73.6, - 69.95, - 76.11, - 54.208, - 52.702, - 57.702, - 60.413000000000004, - 72.03, - 73.06, - 73.48, - 70.11, - 75.38, - 61.13399999999999, - 56.155, - 67.15899999999999, - 64.766, - 69.343, - 66.09899999999999, - 52.208, - 43.763999999999996, - 57.442, - 46.881, - 43.766999999999996, - 65.256, - 41.714, - 50.852, - 64.93, - 65.032, - 55.49100000000001, - 73.066, - 55.73, - 42.495, - 56.059, - 56.437, - 46.748000000000005, - 75.24, - 72.22, - 57.47, - 41.291000000000004, - 44.513999999999996, - 75.37, - 57.367, - 54.043, - 68.681, - 66.35300000000001, - 58.446999999999996, - 60.06, - 70.67, - 70.41, - 73.44, - 67.064, - 69.46, - 45, - 58.55, - 58.69, - 48.879, - 70.3, - 36.788000000000004, - 70.795, - 70.45, - 70.97, - 41.974, - 55.527, - 74.39, - 65.949, - 47.8, - 52.537, - 75.44, - 75.39, - 61.195, - 70.59, - 49.919, - 62.494, - 52.887, - 68.3, - 59.836999999999996, - 59.507, - 50.35, - 72.76, - 73.38, - 69.48100000000001, - 67.456, - 55.763999999999996, - 60.765, - 44.175, - 51.386, - 57.674 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "1977" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1982
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 39.854, - 70.42, - 61.368, - 39.942, - 69.942, - 74.74, - 73.18, - 69.05199999999999, - 50.00899999999999, - 73.93, - 50.903999999999996, - 53.858999999999995, - 70.69, - 61.483999999999995, - 63.336000000000006, - 71.08, - 48.122, - 47.471000000000004, - 50.957, - 52.961000000000006, - 75.76, - 48.295, - 49.516999999999996, - 70.565, - 65.525, - 66.653, - 52.933, - 47.784, - 56.695, - 73.45, - 53.983000000000004, - 70.46, - 73.717, - 70.96, - 74.63, - 48.812, - 63.727, - 64.342, - 56.006, - 56.604, - 43.662, - 43.89, - 44.916000000000004, - 74.55, - 74.89, - 56.56399999999999, - 45.58, - 73.8, - 53.744, - 75.24, - 58.137, - 42.891000000000005, - 39.327, - 51.461000000000006, - 60.909, - 75.45, - 69.39, - 76.99, - 56.596000000000004, - 56.159, - 59.62, - 62.038000000000004, - 73.1, - 74.45, - 74.98, - 71.21, - 77.11, - 63.739, - 58.766000000000005, - 69.1, - 67.123, - 71.309, - 66.983, - 55.078, - 44.852, - 62.155, - 48.968999999999994, - 45.641999999999996, - 68, - 43.916000000000004, - 53.599, - 66.711, - 67.405, - 57.489, - 74.101, - 59.65, - 42.795, - 58.056000000000004, - 58.968, - 49.593999999999994, - 76.05, - 73.84, - 59.298, - 42.598, - 45.826, - 75.97, - 62.728, - 56.158, - 70.472, - 66.874, - 61.406000000000006, - 62.082, - 71.32, - 72.77, - 73.75, - 69.885, - 69.66, - 46.218, - 60.351000000000006, - 63.012, - 52.379, - 70.16199999999999, - 38.445, - 71.76, - 70.8, - 71.063, - 42.955, - 58.161, - 76.3, - 68.757, - 50.338, - 55.56100000000001, - 76.42, - 76.21, - 64.59, - 72.16, - 50.608000000000004, - 64.597, - 55.471000000000004, - 68.832, - 64.048, - 61.036, - 49.849, - 74.04, - 74.65, - 70.805, - 68.557, - 58.816, - 64.406, - 49.113, - 51.821000000000005, - 60.363 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "1982" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1987
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 40.821999999999996, - 72, - 65.79899999999999, - 39.906, - 70.774, - 76.32, - 74.94, - 70.75, - 52.818999999999996, - 75.35, - 52.336999999999996, - 57.251000000000005, - 71.14, - 63.622, - 65.205, - 71.34, - 49.556999999999995, - 48.211000000000006, - 53.913999999999994, - 54.985, - 76.86, - 50.485, - 51.051, - 72.492, - 67.274, - 67.768, - 54.926, - 47.412, - 57.47, - 74.752, - 54.655, - 71.52, - 74.17399999999999, - 71.58, - 74.8, - 50.04, - 66.046, - 67.23100000000001, - 59.797, - 63.153999999999996, - 45.663999999999994, - 46.453, - 46.684, - 74.83, - 76.34, - 60.19, - 49.265, - 74.847, - 55.729, - 76.67, - 60.782, - 45.552, - 41.245, - 53.636, - 64.492, - 76.2, - 69.58, - 77.23, - 58.553000000000004, - 60.137, - 63.04, - 65.044, - 74.36, - 75.6, - 76.42, - 71.77, - 78.67, - 65.869, - 59.339, - 70.64699999999999, - 69.81, - 74.17399999999999, - 67.926, - 57.18, - 46.027, - 66.234, - 49.35, - 47.457, - 69.5, - 46.364, - 56.145, - 68.74, - 69.498, - 60.222, - 74.865, - 62.677, - 42.861000000000004, - 58.339, - 60.835, - 52.537, - 76.83, - 74.32, - 62.008, - 44.555, - 46.886, - 75.89, - 67.734, - 58.245, - 71.523, - 67.378, - 64.134, - 64.15100000000001, - 70.98, - 74.06, - 74.63, - 71.913, - 69.53, - 44.02, - 61.728, - 66.295, - 55.769, - 71.218, - 40.006, - 73.56, - 71.08, - 72.25, - 44.501000000000005, - 60.833999999999996, - 76.9, - 69.01100000000001, - 51.744, - 57.678000000000004, - 77.19, - 77.41, - 66.97399999999999, - 73.4, - 51.535, - 66.084, - 56.941, - 69.582, - 66.89399999999999, - 63.108000000000004, - 51.50899999999999, - 75.007, - 75.02, - 71.918, - 70.19, - 62.82, - 67.046, - 52.922, - 50.821000000000005, - 62.351000000000006 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "1987" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1992
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 41.674, - 71.581, - 67.744, - 40.647, - 71.868, - 77.56, - 76.04, - 72.601, - 56.018, - 76.46, - 53.919, - 59.957, - 72.178, - 62.745, - 67.057, - 71.19, - 50.26, - 44.736000000000004, - 55.803000000000004, - 54.31399999999999, - 77.95, - 49.396, - 51.724, - 74.126, - 68.69, - 68.421, - 57.93899999999999, - 45.548, - 56.433, - 75.71300000000001, - 52.044, - 72.527, - 74.414, - 72.4, - 75.33, - 51.604, - 68.457, - 69.613, - 63.674, - 66.798, - 47.545, - 49.99100000000001, - 48.091, - 75.7, - 77.46, - 61.36600000000001, - 52.644, - 76.07, - 57.501000000000005, - 77.03, - 63.373000000000005, - 48.576, - 43.266000000000005, - 55.089, - 66.399, - 77.601, - 69.17, - 78.77, - 60.223, - 62.681000000000004, - 65.742, - 59.461000000000006, - 75.467, - 76.93, - 77.44, - 71.766, - 79.36, - 68.015, - 59.285, - 69.97800000000001, - 72.244, - 75.19, - 69.292, - 59.685, - 40.802, - 68.755, - 52.214, - 49.42, - 70.693, - 48.388000000000005, - 58.333, - 69.745, - 71.455, - 61.271, - 75.435, - 65.393, - 44.284, - 59.32, - 61.998999999999995, - 55.727, - 77.42, - 76.33, - 65.843, - 47.391000000000005, - 47.472, - 77.32, - 71.197, - 60.838, - 72.462, - 68.225, - 66.458, - 66.458, - 70.99, - 74.86, - 73.911, - 73.615, - 69.36, - 23.599, - 62.742, - 68.768, - 58.196000000000005, - 71.65899999999999, - 38.333, - 75.788, - 71.38, - 73.64, - 39.658, - 61.888000000000005, - 77.57, - 70.37899999999999, - 53.556000000000004, - 58.474, - 78.16, - 78.03, - 69.249, - 74.26, - 50.44, - 67.298, - 58.06100000000001, - 69.862, - 70.001, - 66.146, - 48.825, - 76.42, - 76.09, - 72.752, - 71.15, - 67.66199999999999, - 69.718, - 55.599, - 46.1, - 60.376999999999995 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "1992" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=1997
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 41.763000000000005, - 72.95, - 69.152, - 40.963, - 73.275, - 78.83, - 77.51, - 73.925, - 59.412, - 77.53, - 54.777, - 62.05, - 73.244, - 52.556000000000004, - 69.388, - 70.32, - 50.324, - 45.326, - 56.534, - 52.199, - 78.61, - 46.066, - 51.573, - 75.816, - 70.426, - 70.313, - 60.66, - 42.586999999999996, - 52.961999999999996, - 77.26, - 47.99100000000001, - 73.68, - 76.15100000000001, - 74.01, - 76.11, - 53.157, - 69.957, - 72.312, - 67.217, - 69.535, - 48.245, - 53.378, - 49.402, - 77.13, - 78.64, - 60.461000000000006, - 55.861000000000004, - 77.34, - 58.556000000000004, - 77.869, - 66.322, - 51.455, - 44.873000000000005, - 56.67100000000001, - 67.65899999999999, - 80, - 71.04, - 78.95, - 61.765, - 66.041, - 68.042, - 58.81100000000001, - 76.122, - 78.26899999999999, - 78.82, - 72.262, - 80.69, - 69.77199999999999, - 54.407, - 67.727, - 74.64699999999999, - 76.156, - 70.265, - 55.558, - 42.221000000000004, - 71.555, - 54.978, - 47.495, - 71.938, - 49.903, - 60.43, - 70.736, - 73.67, - 63.625, - 75.445, - 67.66, - 46.343999999999994, - 60.328, - 58.909, - 59.426, - 78.03, - 77.55, - 68.426, - 51.313, - 47.464, - 78.32, - 72.499, - 61.818000000000005, - 73.738, - 69.4, - 68.38600000000001, - 68.564, - 72.75, - 75.97, - 74.917, - 74.77199999999999, - 69.72, - 36.086999999999996, - 63.306000000000004, - 70.533, - 60.187, - 72.232, - 39.897, - 77.158, - 72.71, - 75.13, - 43.795, - 60.236000000000004, - 78.77, - 70.457, - 55.373000000000005, - 54.288999999999994, - 79.39, - 79.37, - 71.527, - 75.25, - 48.466, - 67.521, - 58.39, - 69.465, - 71.973, - 68.835, - 44.578, - 77.218, - 76.81, - 74.223, - 72.146, - 70.672, - 71.096, - 58.02, - 40.238, - 46.809 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "1997" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=2002
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 42.129, - 75.65100000000001, - 70.994, - 41.003, - 74.34, - 80.37, - 78.98, - 74.795, - 62.013000000000005, - 78.32, - 54.406000000000006, - 63.883, - 74.09, - 46.63399999999999, - 71.006, - 72.14, - 50.65, - 47.36, - 56.751999999999995, - 49.856, - 79.77, - 43.308, - 50.525, - 77.86, - 72.028, - 71.682, - 62.974, - 44.966, - 52.97, - 78.123, - 46.832, - 74.876, - 77.158, - 75.51, - 77.18, - 53.373000000000005, - 70.847, - 74.173, - 69.806, - 70.734, - 49.348, - 55.24, - 50.725, - 78.37, - 79.59, - 56.761, - 58.041000000000004, - 78.67, - 58.453, - 78.256, - 68.97800000000001, - 53.676, - 45.504, - 58.137, - 68.565, - 81.495, - 72.59, - 80.5, - 62.879, - 68.58800000000001, - 69.45100000000001, - 57.04600000000001, - 77.783, - 79.696, - 80.24, - 72.047, - 82, - 71.263, - 50.992, - 66.66199999999999, - 77.045, - 76.904, - 71.028, - 44.593, - 43.753, - 72.737, - 57.286, - 45.00899999999999, - 73.044, - 51.818000000000005, - 62.247, - 71.954, - 74.902, - 65.033, - 73.98100000000001, - 69.615, - 44.026, - 59.908, - 51.479, - 61.34, - 78.53, - 79.11, - 70.836, - 54.496, - 46.608000000000004, - 79.05, - 74.193, - 63.61, - 74.712, - 70.755, - 69.906, - 70.303, - 74.67, - 77.29, - 77.778, - 75.744, - 71.322, - 43.413000000000004, - 64.337, - 71.626, - 61.6, - 73.21300000000001, - 41.012, - 78.77, - 73.8, - 76.66, - 45.93600000000001, - 53.365, - 79.78, - 70.815, - 56.369, - 43.869, - 80.04, - 80.62, - 73.053, - 76.99, - 49.651, - 68.564, - 57.56100000000001, - 68.976, - 73.042, - 70.845, - 47.813, - 78.471, - 77.31, - 75.307, - 72.766, - 73.017, - 72.37, - 60.308, - 39.193000000000005, - 39.989000000000004 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "2002" - }, - { - "data": [ - { - "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" - ] - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

year=2007
iso_alpha=%{location}
lifeExp=%{z}", - "hovertext": [ - "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" - ], - "locations": [ - "AFG", - "ALB", - "DZA", - "AGO", - "ARG", - "AUS", - "AUT", - "BHR", - "BGD", - "BEL", - "BEN", - "BOL", - "BIH", - "BWA", - "BRA", - "BGR", - "BFA", - "BDI", - "KHM", - "CMR", - "CAN", - "CAF", - "TCD", - "CHL", - "CHN", - "COL", - "COM", - "COD", - "COG", - "CRI", - "CIV", - "HRV", - "CUB", - "CZE", - "DNK", - "DJI", - "DOM", - "ECU", - "EGY", - "SLV", - "GNQ", - "ERI", - "ETH", - "FIN", - "FRA", - "GAB", - "GMB", - "DEU", - "GHA", - "GRC", - "GTM", - "GIN", - "GNB", - "HTI", - "HND", - "HKG", - "HUN", - "ISL", - "IND", - "IDN", - "IRN", - "IRQ", - "IRL", - "ISR", - "ITA", - "JAM", - "JPN", - "JOR", - "KEN", - "KOR", - "KOR", - "KWT", - "LBN", - "LSO", - "LBR", - "LBY", - "MDG", - "MWI", - "MYS", - "MLI", - "MRT", - "MUS", - "MEX", - "MNG", - "MNE", - "MAR", - "MOZ", - "MMR", - "NAM", - "NPL", - "NLD", - "NZL", - "NIC", - "NER", - "NGA", - "NOR", - "OMN", - "PAK", - "PAN", - "PRY", - "PER", - "PHL", - "POL", - "PRT", - "PRI", - "REU", - "ROU", - "RWA", - "STP", - "SAU", - "SEN", - "SRB", - "SLE", - "SGP", - "SVK", - "SVN", - "SOM", - "ZAF", - "ESP", - "LKA", - "SDN", - "SWZ", - "SWE", - "CHE", - "SYR", - "TWN", - "TZA", - "THA", - "TGO", - "TTO", - "TUN", - "TUR", - "UGA", - "GBR", - "USA", - "URY", - "VEN", - "VNM", - "PSE", - "YEM", - "ZMB", - "ZWE" - ], - "name": "", - "showscale": true, - "type": "choropleth", - "z": [ - 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.461999999999996, - 55.321999999999996, - 78.782, - 48.328, - 75.748, - 78.273, - 76.486, - 78.332, - 54.791000000000004, - 72.235, - 74.994, - 71.33800000000001, - 71.878, - 51.57899999999999, - 58.04, - 52.946999999999996, - 79.313, - 80.657, - 56.735, - 59.448, - 79.406, - 60.022, - 79.483, - 70.259, - 56.007, - 46.388000000000005, - 60.916000000000004, - 70.19800000000001, - 82.208, - 73.33800000000001, - 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.58800000000001, - 71.993, - 42.592, - 45.678000000000004, - 73.952, - 59.443000000000005, - 48.303000000000004, - 74.241, - 54.467, - 64.164, - 72.801, - 76.195, - 66.803, - 74.543, - 71.164, - 42.082, - 62.068999999999996, - 52.906000000000006, - 63.785, - 79.762, - 80.204, - 72.899, - 56.867, - 46.858999999999995, - 80.196, - 75.64, - 65.483, - 75.53699999999999, - 71.752, - 71.421, - 71.688, - 75.563, - 78.098, - 78.74600000000001, - 76.442, - 72.476, - 46.242, - 65.528, - 72.777, - 63.062, - 74.002, - 42.568000000000005, - 79.972, - 74.663, - 77.926, - 48.159, - 49.339, - 80.941, - 72.396, - 58.556000000000004, - 39.613, - 80.884, - 81.70100000000001, - 74.143, - 78.4, - 52.516999999999996, - 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.486999999999995 - ], - "zmax": 82.603, - "zmin": 23.599 - } - ], - "name": "2007" - } - ], - "layout": { - "geo": { - "projection": { - "type": "natural earth" - } - }, - "height": 600, - "legend": { - "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": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "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" - } - ] - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.choropleth(gapminder, locations='iso_alpha', color='lifeExp',\n", - " hover_name='country', animation_frame='year',\n", - " color_continuous_scale=px.colors.sequential.Plasma,\n", - " projection='natural earth')" - ] - }, - { - "cell_type": "code", - "execution_count": 37, - "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n", - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n", - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n" - ] - }, - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=setosa
sepal_width=%{x}
sepal_length=%{y}", - "legendgroup": "species=setosa", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "markers", - "name": "species=setosa", - "showlegend": true, - "type": "scatter", - "uid": "2a9e9df1-d951-431c-a245-f1e773ad0510", - "x": [ - 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 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=setosa
sepal_width=%{x}", - "legendgroup": "species=setosa", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "name": "species=setosa", - "notched": true, - "offsetgroup": "species=setosa", - "showlegend": false, - "type": "box", - "uid": "6b78774a-a0b4-4594-861e-dcf95735af2a", - "x": [ - 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 - ], - "xaxis": "x", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=setosa
sepal_length=%{y}", - "legendgroup": "species=setosa", - "marker": { - "color": "#636efa" - }, - "name": "species=setosa", - "offsetgroup": "species=setosa", - "opacity": 0.5, - "showlegend": false, - "type": "histogram", - "uid": "3d2f1199-42a5-4843-b2da-d23adea88a11", - "xaxis": "x2", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
sepal_length = 0.690854 * sepal_width + 2.644660
R2=0.557681

species=setosa
sepal_width=%{x}
sepal_length=%{y} (trend)", - "legendgroup": "species=setosa", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "lines", - "name": "species=setosa", - "showlegend": false, - "type": "scatter", - "uid": "5a0ac692-de5e-4442-8b72-a6ee7d6c97f5", - "x": [ - 2.3, - 2.9, - 3, - 3, - 3, - 3, - 3, - 3, - 3.1, - 3.1, - 3.1, - 3.1, - 3.1, - 3.2, - 3.2, - 3.2, - 3.2, - 3.2, - 3.3, - 3.3, - 3.4, - 3.4, - 3.4, - 3.4, - 3.4, - 3.4, - 3.4, - 3.4, - 3.4, - 3.5, - 3.5, - 3.5, - 3.5, - 3.5, - 3.5, - 3.6, - 3.6, - 3.7, - 3.7, - 3.7, - 3.8, - 3.8, - 3.8, - 3.8, - 3.9, - 3.9, - 4, - 4.1, - 4.2, - 4.4 - ], - "xaxis": "x", - "y": [ - 4.233624785627934, - 4.648137423036915, - 4.7172228626050785, - 4.7172228626050785, - 4.7172228626050785, - 4.7172228626050785, - 4.7172228626050785, - 4.7172228626050785, - 4.786308302173242, - 4.786308302173242, - 4.786308302173242, - 4.786308302173242, - 4.786308302173242, - 4.8553937417414055, - 4.8553937417414055, - 4.8553937417414055, - 4.8553937417414055, - 4.8553937417414055, - 4.924479181309569, - 4.924479181309569, - 4.9935646208777325, - 4.9935646208777325, - 4.9935646208777325, - 4.9935646208777325, - 4.9935646208777325, - 4.9935646208777325, - 4.9935646208777325, - 4.9935646208777325, - 4.9935646208777325, - 5.062650060445896, - 5.062650060445896, - 5.062650060445896, - 5.062650060445896, - 5.062650060445896, - 5.062650060445896, - 5.131735500014059, - 5.131735500014059, - 5.200820939582224, - 5.200820939582224, - 5.200820939582224, - 5.269906379150386, - 5.269906379150386, - 5.269906379150386, - 5.269906379150386, - 5.33899181871855, - 5.33899181871855, - 5.408077258286713, - 5.477162697854877, - 5.546248137423041, - 5.684419016559368 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=versicolor
sepal_width=%{x}
sepal_length=%{y}", - "legendgroup": "species=versicolor", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "markers", - "name": "species=versicolor", - "showlegend": true, - "type": "scatter", - "uid": "d651e147-9a64-4dbd-9e79-4c2a22b95a5b", - "x": [ - 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 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=versicolor
sepal_width=%{x}", - "legendgroup": "species=versicolor", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "name": "species=versicolor", - "notched": true, - "offsetgroup": "species=versicolor", - "showlegend": false, - "type": "box", - "uid": "a964c64c-23e8-450e-a02d-f84782f28efd", - "x": [ - 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 - ], - "xaxis": "x", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=versicolor
sepal_length=%{y}", - "legendgroup": "species=versicolor", - "marker": { - "color": "#EF553B" - }, - "name": "species=versicolor", - "offsetgroup": "species=versicolor", - "opacity": 0.5, - "showlegend": false, - "type": "histogram", - "uid": "07c2a26a-26bd-46b9-abb7-89cc41e26ac7", - "xaxis": "x2", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
sepal_length = 0.865078 * sepal_width + 3.539735
R2=0.276582

species=versicolor
sepal_width=%{x}
sepal_length=%{y} (trend)", - "legendgroup": "species=versicolor", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "lines", - "name": "species=versicolor", - "showlegend": false, - "type": "scatter", - "uid": "9f70cf72-2106-420b-9e05-631f6e31a851", - "x": [ - 2, - 2.2, - 2.2, - 2.3, - 2.3, - 2.3, - 2.4, - 2.4, - 2.4, - 2.5, - 2.5, - 2.5, - 2.5, - 2.6, - 2.6, - 2.6, - 2.7, - 2.7, - 2.7, - 2.7, - 2.7, - 2.8, - 2.8, - 2.8, - 2.8, - 2.8, - 2.8, - 2.9, - 2.9, - 2.9, - 2.9, - 2.9, - 2.9, - 2.9, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3.1, - 3.1, - 3.1, - 3.2, - 3.2, - 3.2, - 3.3, - 3.4 - ], - "xaxis": "x", - "y": [ - 5.269890155440412, - 5.442905699481863, - 5.442905699481863, - 5.529413471502588, - 5.529413471502588, - 5.529413471502588, - 5.615921243523314, - 5.615921243523314, - 5.615921243523314, - 5.702429015544039, - 5.702429015544039, - 5.702429015544039, - 5.702429015544039, - 5.788936787564765, - 5.788936787564765, - 5.788936787564765, - 5.875444559585491, - 5.875444559585491, - 5.875444559585491, - 5.875444559585491, - 5.875444559585491, - 5.9619523316062155, - 5.9619523316062155, - 5.9619523316062155, - 5.9619523316062155, - 5.9619523316062155, - 5.9619523316062155, - 6.048460103626941, - 6.048460103626941, - 6.048460103626941, - 6.048460103626941, - 6.048460103626941, - 6.048460103626941, - 6.048460103626941, - 6.134967875647667, - 6.134967875647667, - 6.134967875647667, - 6.134967875647667, - 6.134967875647667, - 6.134967875647667, - 6.134967875647667, - 6.134967875647667, - 6.221475647668393, - 6.221475647668393, - 6.221475647668393, - 6.307983419689117, - 6.307983419689117, - 6.307983419689117, - 6.394491191709843, - 6.480998963730569 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=virginica
sepal_width=%{x}
sepal_length=%{y}", - "legendgroup": "species=virginica", - "marker": { - "color": "#00cc96", - "symbol": "circle" - }, - "mode": "markers", - "name": "species=virginica", - "showlegend": true, - "type": "scatter", - "uid": "92e6bd2a-d2f1-4321-808e-48f012b3c830", - "x": [ - 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 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=virginica
sepal_width=%{x}", - "legendgroup": "species=virginica", - "marker": { - "color": "#00cc96", - "symbol": "circle" - }, - "name": "species=virginica", - "notched": true, - "offsetgroup": "species=virginica", - "showlegend": false, - "type": "box", - "uid": "13b5f05a-f8a3-47d4-8d66-7df4d706788e", - "x": [ - 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 - ], - "xaxis": "x", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=virginica
sepal_length=%{y}", - "legendgroup": "species=virginica", - "marker": { - "color": "#00cc96" - }, - "name": "species=virginica", - "offsetgroup": "species=virginica", - "opacity": 0.5, - "showlegend": false, - "type": "histogram", - "uid": "bf96dbcd-1378-40de-943c-a840b603b11d", - "xaxis": "x2", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
sepal_length = 0.901534 * sepal_width + 3.906836
R2=0.209057

species=virginica
sepal_width=%{x}
sepal_length=%{y} (trend)", - "legendgroup": "species=virginica", - "marker": { - "color": "#00cc96", - "symbol": "circle" - }, - "mode": "lines", - "name": "species=virginica", - "showlegend": false, - "type": "scatter", - "uid": "9dd3fe37-1894-4cbe-95b5-ad09852ddecf", - "x": [ - 2.2, - 2.5, - 2.5, - 2.5, - 2.5, - 2.6, - 2.6, - 2.7, - 2.7, - 2.7, - 2.7, - 2.8, - 2.8, - 2.8, - 2.8, - 2.8, - 2.8, - 2.8, - 2.8, - 2.9, - 2.9, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3.1, - 3.1, - 3.1, - 3.1, - 3.2, - 3.2, - 3.2, - 3.2, - 3.2, - 3.3, - 3.3, - 3.3, - 3.4, - 3.4, - 3.6, - 3.8, - 3.8 - ], - "xaxis": "x", - "y": [ - 5.890212315058276, - 6.160672658058944, - 6.160672658058944, - 6.160672658058944, - 6.160672658058944, - 6.250826105725833, - 6.250826105725833, - 6.340979553392723, - 6.340979553392723, - 6.340979553392723, - 6.340979553392723, - 6.431133001059612, - 6.431133001059612, - 6.431133001059612, - 6.431133001059612, - 6.431133001059612, - 6.431133001059612, - 6.431133001059612, - 6.431133001059612, - 6.521286448726501, - 6.521286448726501, - 6.6114398963933905, - 6.6114398963933905, - 6.6114398963933905, - 6.6114398963933905, - 6.6114398963933905, - 6.6114398963933905, - 6.6114398963933905, - 6.6114398963933905, - 6.6114398963933905, - 6.6114398963933905, - 6.6114398963933905, - 6.6114398963933905, - 6.701593344060281, - 6.701593344060281, - 6.701593344060281, - 6.701593344060281, - 6.79174679172717, - 6.79174679172717, - 6.79174679172717, - 6.79174679172717, - 6.79174679172717, - 6.881900239394058, - 6.881900239394058, - 6.881900239394058, - 6.972053687060948, - 6.972053687060948, - 7.152360582394727, - 7.3326674777285055, - 7.3326674777285055 - ], - "yaxis": "y" - } - ], - "layout": { - "barmode": "overlay", - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "domain": [ - 0, - 0.74 - ], - "showgrid": true, - "title": { - "text": "sepal_width" - } - }, - "xaxis2": { - "domain": [ - 0.745, - 1 - ], - "showticklabels": false - }, - "yaxis": { - "domain": [ - 0, - 0.74 - ], - "showgrid": true, - "title": { - "text": "sepal_length" - } - }, - "yaxis2": { - "domain": [ - 0.745, - 1 - ], - "showticklabels": false - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "iris = px.data.iris()\n", - "\n", - "px.scatter(iris, x='sepal_width', y='sepal_length', \n", - " color='species', marginal_y='histogram',\n", - " marginal_x='box', trendline='ols')" - ] - }, - { - "cell_type": "code", - "execution_count": 38, - "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n", - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n", - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n", - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n", - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n", - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n", - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n", - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n", - "/Users/lemon/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2389: FutureWarning:\n", - "\n", - "Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.\n", - "\n" - ] - }, - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Lunch
day=Thur
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=No", - "showlegend": true, - "type": "scatter", - "uid": "9f056f37-845d-4d75-8865-4a28ef7c3c5a", - "x": [ - 27.2, - 22.76, - 17.29, - 16.66, - 10.07, - 15.98, - 34.83, - 13.03, - 18.28, - 24.71, - 21.16, - 10.65, - 12.43, - 24.08, - 11.69, - 13.42, - 14.26, - 15.95, - 12.48, - 29.8, - 8.52, - 14.52, - 11.38, - 22.82, - 19.08, - 20.27, - 11.17, - 12.26, - 18.26, - 8.51, - 10.33, - 14.15, - 13.16, - 17.47, - 34.3, - 41.19, - 27.05, - 16.43, - 8.35, - 18.64, - 11.87, - 9.78, - 7.51, - 7.56 - ], - "xaxis": "x", - "y": [ - 4, - 3, - 2.71, - 3.4, - 1.83, - 2.03, - 5.17, - 2, - 4, - 5.85, - 3, - 1.5, - 1.8, - 2.92, - 2.31, - 1.68, - 2.5, - 2, - 2.52, - 4.2, - 1.48, - 2, - 2, - 2.18, - 1.5, - 2.83, - 1.5, - 2, - 3.25, - 1.25, - 2, - 2, - 2.75, - 3.5, - 6.7, - 5, - 5, - 2.3, - 1.5, - 1.36, - 1.63, - 1.73, - 2, - 1.44 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
tip = 0.139041 * total_bill + 0.292202
R2=0.700600

smoker=No
time=Lunch
day=Thur
total_bill=%{x}
tip=%{y} (trend)", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "6d45dbdb-8a73-4643-9f24-8bbb858a989d", - "x": [ - 7.51, - 7.56, - 8.35, - 8.51, - 8.52, - 9.78, - 10.07, - 10.33, - 10.65, - 11.17, - 11.38, - 11.69, - 11.87, - 12.26, - 12.43, - 12.48, - 13.03, - 13.16, - 13.42, - 14.15, - 14.26, - 14.52, - 15.95, - 15.98, - 16.43, - 16.66, - 17.29, - 17.47, - 18.26, - 18.28, - 18.64, - 19.08, - 20.27, - 21.16, - 22.76, - 22.82, - 24.08, - 24.71, - 27.05, - 27.2, - 29.8, - 34.3, - 34.83, - 41.19 - ], - "xaxis": "x", - "y": [ - 1.3364023693233607, - 1.343354432401006, - 1.453197029027803, - 1.4754436308762682, - 1.476834043491797, - 1.6520260330484604, - 1.6923479988988037, - 1.7284987269025596, - 1.7729919305994901, - 1.8452933866070018, - 1.8744920515331125, - 1.9175948426145135, - 1.942622269694037, - 1.9968483616996708, - 2.020485376163665, - 2.027437439241311, - 2.1039101330954098, - 2.121985497097288, - 2.1581362251010434, - 2.259636346034666, - 2.2749308848054857, - 2.3110816128092417, - 2.5099106168298992, - 2.5140818546764865, - 2.5766504223752946, - 2.6086299125324635, - 2.696225907310795, - 2.7212533343903185, - 2.8310959310171158, - 2.833876756248174, - 2.8839316104072203, - 2.9451097654904994, - 3.1105688667384594, - 3.234315589520547, - 3.456781608005199, - 3.4651240836983734, - 3.640316073255036, - 3.727912068033368, - 4.053268620067172, - 4.074124809300107, - 4.435632089337667, - 5.06131776632575, - 5.135009634948791, - 6.019312058425282 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Lunch
day=Fri
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "9dde1ed1-dc23-4467-8ed0-3af0e7d2ee53", - "x": [ - 15.98 - ], - "xaxis": "x2", - "y": [ - 3 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Lunch
day=Fri", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "d6bac3b2-d5c0-4e35-b4ae-f90735ee560a", - "xaxis": "x2", - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Thur
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "f1b3ecba-f8eb-4238-a0c4-2ddfe93e4eca", - "x": [ - 18.78 - ], - "xaxis": "x", - "y": [ - 3 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Thur", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "849ee4f7-79d0-470f-8792-7173386ec3a0", - "xaxis": "x", - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Fri
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "301e661e-7505-4e48-bf03-3c1cb6cdec51", - "x": [ - 22.49, - 22.75, - 12.46 - ], - "xaxis": "x2", - "y": [ - 3.5, - 3.25, - 1.5 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
tip = 0.183985 * total_bill + -0.788637
R2=0.981316

smoker=No
time=Dinner
day=Fri
total_bill=%{x}
tip=%{y} (trend)", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "b7de2013-d7fc-4bf2-801c-d13ada76e3d4", - "x": [ - 12.46, - 22.49, - 22.75 - ], - "xaxis": "x2", - "y": [ - 1.5038108936900343, - 3.349176553575217, - 3.397012552734753 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Sat
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "d86cb59d-aa6a-4da0-b88a-e1531dd6ad9b", - "x": [ - 20.65, - 17.92, - 20.29, - 15.77, - 39.42, - 19.82, - 17.81, - 13.37, - 12.69, - 21.7, - 19.65, - 9.55, - 18.35, - 15.06, - 20.69, - 17.78, - 24.06, - 16.31, - 16.93, - 18.69, - 31.27, - 16.04, - 26.41, - 48.27, - 17.59, - 20.08, - 16.45, - 20.23, - 12.02, - 17.07, - 14.73, - 10.51, - 20.92, - 18.24, - 14, - 7.25, - 48.33, - 20.45, - 13.28, - 11.61, - 10.77, - 10.07, - 35.83, - 29.03, - 17.82 - ], - "xaxis": "x3", - "y": [ - 3.35, - 4.08, - 2.75, - 2.23, - 7.58, - 3.18, - 2.34, - 2, - 2, - 4.3, - 3, - 1.45, - 2.5, - 3, - 2.45, - 3.27, - 3.6, - 2, - 3.07, - 2.31, - 5, - 2.24, - 1.5, - 6.73, - 2.64, - 3.15, - 2.47, - 2.01, - 1.97, - 3, - 2.2, - 1.25, - 4.08, - 3.76, - 3, - 1, - 9, - 3, - 2.72, - 3.39, - 1.47, - 1.25, - 4.67, - 5.92, - 1.75 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
tip = 0.160930 * total_bill + -0.061278
R2=0.767496

smoker=No
time=Dinner
day=Sat
total_bill=%{x}
tip=%{y} (trend)", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "981a552e-4178-44d2-89db-f9833519b58b", - "x": [ - 7.25, - 9.55, - 10.07, - 10.51, - 10.77, - 11.61, - 12.02, - 12.69, - 13.28, - 13.37, - 14, - 14.73, - 15.06, - 15.77, - 16.04, - 16.31, - 16.45, - 16.93, - 17.07, - 17.59, - 17.78, - 17.81, - 17.82, - 17.92, - 18.24, - 18.35, - 18.69, - 19.65, - 19.82, - 20.08, - 20.23, - 20.29, - 20.45, - 20.65, - 20.69, - 20.92, - 21.7, - 24.06, - 26.41, - 29.03, - 31.27, - 35.83, - 39.42, - 48.27, - 48.33 - ], - "xaxis": "x3", - "y": [ - 1.1054633239385228, - 1.4756019843011943, - 1.5592855075136243, - 1.6300946425395264, - 1.6719364041457414, - 1.8071174801042822, - 1.8730987195602367, - 1.9809217206224061, - 2.075870333498048, - 2.0903540202078914, - 2.1917398271767974, - 2.309218619378863, - 2.3623254706482895, - 2.4765856658037224, - 2.5200367259332537, - 2.5634877860627845, - 2.586017965389208, - 2.6632642945083744, - 2.6857944738347976, - 2.7694779970472276, - 2.8000546689902315, - 2.8048825645601787, - 2.806491863083495, - 2.8225848483166547, - 2.8740824010627652, - 2.8917846848192412, - 2.946500834611984, - 3.100993492850316, - 3.1283515677466873, - 3.170193329352902, - 3.194332807202642, - 3.2039885983425376, - 3.229737374715593, - 3.261923345181912, - 3.2683605392751764, - 3.3053744053114436, - 3.4308996901300883, - 3.810694141632655, - 4.1888792946119064, - 4.610515507720689, - 4.970998376943464, - 5.704838503575543, - 6.282576673445974, - 7.706805866580601, - 7.716461657720496 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Sun
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "ea5632c6-97c9-4a01-90c6-cf51a34197b0", - "x": [ - 16.99, - 10.34, - 21.01, - 23.68, - 24.59, - 25.29, - 8.77, - 26.88, - 15.04, - 14.78, - 10.27, - 35.26, - 15.42, - 18.43, - 14.83, - 21.58, - 10.33, - 16.29, - 16.97, - 17.46, - 13.94, - 9.68, - 30.4, - 18.29, - 22.23, - 32.4, - 28.55, - 18.04, - 12.54, - 10.29, - 34.81, - 9.94, - 25.56, - 19.49, - 38.07, - 23.95, - 25.71, - 17.31, - 29.93, - 14.07, - 13.13, - 17.26, - 24.55, - 19.77, - 29.85, - 48.17, - 25, - 13.39, - 16.49, - 21.5, - 12.66, - 16.21, - 13.81, - 24.52, - 20.76, - 31.71, - 20.69 - ], - "xaxis": "x4", - "y": [ - 1.01, - 1.66, - 3.5, - 3.31, - 3.61, - 4.71, - 2, - 3.12, - 1.96, - 3.23, - 1.71, - 5, - 1.57, - 3, - 3.02, - 3.92, - 1.67, - 3.71, - 3.5, - 2.54, - 3.06, - 1.32, - 5.6, - 3, - 5, - 6, - 2.05, - 3, - 2.5, - 2.6, - 5.2, - 1.56, - 4.34, - 3.51, - 4, - 2.55, - 4, - 3.5, - 5.07, - 2.5, - 2, - 2.74, - 2, - 2, - 5.14, - 5, - 3.75, - 2.61, - 2, - 3.5, - 2.5, - 2, - 2, - 3.48, - 2.24, - 4.5, - 5 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
tip = 0.111709 * total_bill + 0.877124
R2=0.549863

smoker=No
time=Dinner
day=Sun
total_bill=%{x}
tip=%{y} (trend)", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=No", - "showlegend": false, - "type": "scatter", - "uid": "fbab843e-1078-4e6a-bfef-c8339be6dda7", - "x": [ - 8.77, - 9.68, - 9.94, - 10.27, - 10.29, - 10.33, - 10.34, - 12.54, - 12.66, - 13.13, - 13.39, - 13.81, - 13.94, - 14.07, - 14.78, - 14.83, - 15.04, - 15.42, - 16.21, - 16.29, - 16.49, - 16.97, - 16.99, - 17.26, - 17.31, - 17.46, - 18.04, - 18.29, - 18.43, - 19.49, - 19.77, - 20.69, - 20.76, - 21.01, - 21.5, - 21.58, - 22.23, - 23.68, - 23.95, - 24.52, - 24.55, - 24.59, - 25, - 25.29, - 25.56, - 25.71, - 26.88, - 28.55, - 29.85, - 29.93, - 30.4, - 31.71, - 32.4, - 34.81, - 35.26, - 38.07, - 48.17 - ], - "xaxis": "x4", - "y": [ - 1.8568085380187975, - 1.958463332758577, - 1.9875075598270853, - 2.0243713864909614, - 2.0266055578039235, - 2.0310739004298477, - 2.032190986086329, - 2.2779498305121693, - 2.2913548583899424, - 2.343857884244554, - 2.372902111313062, - 2.4198197088852678, - 2.434341822419522, - 2.4488639359537765, - 2.5281770175639338, - 2.5337624458463393, - 2.557221244632442, - 2.599670499578724, - 2.68792026644073, - 2.6968569516925784, - 2.7191986648222004, - 2.7728187763332928, - 2.775052947646255, - 2.805214260371245, - 2.81079968865365, - 2.8275559735008664, - 2.8923469415767697, - 2.9202740829887968, - 2.9359132821795324, - 3.0543243617665277, - 3.0856027601479985, - 3.188374640544259, - 3.196194240139627, - 3.224121381551654, - 3.2788585787192277, - 3.287795263971076, - 3.360405831642347, - 3.5223832518321054, - 3.552544564557095, - 3.616218446976517, - 3.6195697039459604, - 3.624038046571885, - 3.66983855848761, - 3.702234042525561, - 3.7323953552505507, - 3.749151640097767, - 3.8798506619060547, - 4.066403966538397, - 4.211625101880939, - 4.220561787132788, - 4.273064812987399, - 4.4194030339864225, - 4.496481944283618, - 4.765699587495561, - 4.815968442037209, - 5.129869511508397, - 6.2581260245543 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Lunch
day=Thur
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=Yes", - "showlegend": true, - "type": "scatter", - "uid": "5b4ea011-5c58-4ab5-bade-d1c38338b775", - "x": [ - 19.44, - 32.68, - 16, - 19.81, - 28.44, - 15.48, - 16.58, - 10.34, - 43.11, - 13, - 13.51, - 18.71, - 12.74, - 13, - 16.4, - 20.53, - 16.47 - ], - "xaxis": "x", - "y": [ - 3, - 5, - 2, - 4.19, - 2.56, - 2.02, - 4, - 2, - 5, - 2, - 2, - 4, - 2.01, - 2, - 2.5, - 4, - 3.23 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
tip = 0.099046 * total_bill + 1.129247
R2=0.552344

smoker=Yes
time=Lunch
day=Thur
total_bill=%{x}
tip=%{y} (trend)", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=Yes", - "showlegend": false, - "type": "scatter", - "uid": "0edfbf29-4ed1-4c7d-8f03-7e1d644d79c4", - "x": [ - 10.34, - 12.74, - 13, - 13, - 13.51, - 15.48, - 16, - 16.4, - 16.47, - 16.58, - 18.71, - 19.44, - 19.81, - 20.53, - 28.44, - 32.68, - 43.11 - ], - "xaxis": "x", - "y": [ - 2.1533836248599583, - 2.3910942994958333, - 2.416846289248053, - 2.416846289248053, - 2.4673598076081764, - 2.6624806530384575, - 2.713984632542897, - 2.7536030783155425, - 2.7605363063257555, - 2.771431378913233, - 2.9823996026525728, - 3.0547032661876514, - 3.0913503285273483, - 3.162663530918111, - 3.9461182960721826, - 4.366073821262229, - 5.399124794783969 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Lunch
day=Fri
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=Yes", - "showlegend": false, - "type": "scatter", - "uid": "756b2e0d-917e-4576-8e9c-ac56247a66a8", - "x": [ - 12.16, - 13.42, - 8.58, - 13.42, - 16.27, - 10.09 - ], - "xaxis": "x2", - "y": [ - 2.2, - 3.48, - 1.92, - 1.58, - 2.5, - 2 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
tip = 0.091941 * total_bill + 1.146981
R2=0.142666

smoker=Yes
time=Lunch
day=Fri
total_bill=%{x}
tip=%{y} (trend)", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=Yes", - "showlegend": false, - "type": "scatter", - "uid": "fff2247b-60d1-4009-8e40-10df20df189b", - "x": [ - 8.58, - 10.09, - 12.16, - 13.42, - 13.42, - 16.27 - ], - "xaxis": "x2", - "y": [ - 1.93583434811431, - 2.0746651943335603, - 2.2649829768990224, - 2.3808285836779994, - 2.3808285836779994, - 2.642860313297114 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Dinner
day=Fri
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=Yes", - "showlegend": false, - "type": "scatter", - "uid": "fae65231-d430-4ae2-aa5e-11c8e64a3460", - "x": [ - 28.97, - 5.75, - 16.32, - 40.17, - 27.28, - 12.03, - 21.01, - 11.35, - 15.38 - ], - "xaxis": "x2", - "y": [ - 3, - 1, - 4.3, - 4.73, - 4, - 1.5, - 3, - 2.5, - 3 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
tip = 0.089588 * total_bill + 1.228894
R2=0.604292

smoker=Yes
time=Dinner
day=Fri
total_bill=%{x}
tip=%{y} (trend)", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=Yes", - "showlegend": false, - "type": "scatter", - "uid": "0135b2f9-95cc-42a8-b516-a50803ca664f", - "x": [ - 5.75, - 11.35, - 12.03, - 15.38, - 16.32, - 21.01, - 27.28, - 28.97, - 40.17 - ], - "xaxis": "x2", - "y": [ - 1.7440246950916156, - 2.2457174890793046, - 2.306637328349238, - 2.606757124752588, - 2.690969843743378, - 3.1111375587080676, - 3.6728543119764265, - 3.8242580301619964, - 4.827643618137374 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Dinner
day=Sat
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=Yes", - "showlegend": false, - "type": "scatter", - "uid": "1750068b-6c56-40f8-8008-1fb76c73302a", - "x": [ - 38.01, - 11.24, - 20.29, - 13.81, - 11.02, - 18.29, - 3.07, - 15.01, - 26.86, - 25.28, - 17.92, - 44.3, - 22.42, - 15.36, - 20.49, - 25.21, - 14.31, - 10.59, - 10.63, - 50.81, - 15.81, - 26.59, - 38.73, - 24.27, - 12.76, - 30.06, - 25.89, - 13.27, - 28.17, - 12.9, - 28.15, - 11.59, - 7.74, - 30.14, - 22.12, - 24.01, - 15.69, - 15.53, - 12.6, - 32.83, - 27.18, - 22.67 - ], - "xaxis": "x3", - "y": [ - 3, - 1.76, - 3.21, - 2, - 1.98, - 3.76, - 1, - 2.09, - 3.14, - 5, - 3.08, - 2.5, - 3.48, - 1.64, - 4.06, - 4.29, - 4, - 1.61, - 2, - 10, - 3.16, - 3.41, - 3, - 2.03, - 2.23, - 2, - 5.16, - 2.5, - 6.5, - 1.1, - 3, - 1.5, - 1.44, - 3.09, - 2.88, - 2, - 3, - 3, - 1, - 1.17, - 2, - 2 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
tip = 0.090893 * total_bill + 0.941566
R2=0.315040

smoker=Yes
time=Dinner
day=Sat
total_bill=%{x}
tip=%{y} (trend)", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=Yes", - "showlegend": false, - "type": "scatter", - "uid": "93ab32a8-79bc-4f2a-a143-19379fe9f496", - "x": [ - 3.07, - 7.74, - 10.59, - 10.63, - 11.02, - 11.24, - 11.59, - 12.6, - 12.76, - 12.9, - 13.27, - 13.81, - 14.31, - 15.01, - 15.36, - 15.53, - 15.69, - 15.81, - 17.92, - 18.29, - 20.29, - 20.49, - 22.12, - 22.42, - 22.67, - 24.01, - 24.27, - 25.21, - 25.28, - 25.89, - 26.59, - 26.86, - 27.18, - 28.15, - 28.17, - 30.06, - 30.14, - 32.83, - 38.01, - 38.73, - 44.3, - 50.81 - ], - "xaxis": "x3", - "y": [ - 1.2206090488624528, - 1.6450815617516594, - 1.9041279561272995, - 1.9077636949957295, - 1.9432121489629222, - 1.9632087127392874, - 1.9950214278380503, - 2.0868238342659087, - 2.101366789739629, - 2.114091875779134, - 2.147722460312112, - 2.1968049350359173, - 2.2422516708912927, - 2.3058771010888184, - 2.337689816187581, - 2.3531417063784086, - 2.367684661852129, - 2.378591878457419, - 2.5703771037671035, - 2.604007688300081, - 2.7857946317215827, - 2.803973326063733, - 2.952129684952257, - 2.9793977264654825, - 3.00212109439317, - 3.1239183464855764, - 3.1475506491303715, - 3.2329905125384775, - 3.23935305555823, - 3.294798073301788, - 3.3584235034993135, - 3.3829647408612162, - 3.4120506518086566, - 3.5002173193680846, - 3.5020351888023, - 3.673823850335619, - 3.681095328072479, - 3.9255987669743986, - 4.396426950436088, - 4.461870250067829, - 4.968146887496712, - 5.5598633883337 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Dinner
day=Sun
total_bill=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "markers", - "name": "smoker=Yes", - "showlegend": false, - "type": "scatter", - "uid": "147c50f1-addb-473b-9387-950df3ee3baf", - "x": [ - 17.51, - 7.25, - 31.85, - 16.82, - 32.9, - 17.89, - 14.48, - 9.6, - 34.63, - 34.65, - 23.33, - 45.35, - 23.17, - 40.55, - 20.9, - 30.46, - 18.15, - 23.1, - 15.69 - ], - "xaxis": "x4", - "y": [ - 3, - 5.15, - 3.18, - 4, - 3.11, - 2, - 2, - 4, - 3.55, - 3.68, - 5.65, - 3.5, - 6.5, - 3, - 3.5, - 2, - 3.5, - 4, - 1.5 - ], - "yaxis": "y2" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "OLS trendline
tip = -0.010717 * total_bill + 3.775339
R2=0.007875

smoker=Yes
time=Dinner
day=Sun
total_bill=%{x}
tip=%{y} (trend)", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "lines", - "name": "smoker=Yes", - "showlegend": false, - "type": "scatter", - "uid": "53d7cef3-dab7-4fc2-8a4c-b480f9360ae4", - "x": [ - 7.25, - 9.6, - 14.48, - 15.69, - 16.82, - 17.51, - 17.89, - 18.15, - 20.9, - 23.1, - 23.17, - 23.33, - 30.46, - 31.85, - 32.9, - 34.63, - 34.65, - 40.55, - 45.35 - ], - "xaxis": "x4", - "y": [ - 3.6976401621288413, - 3.6724548963532424, - 3.620155280614977, - 3.6071875480241364, - 3.595077186183104, - 3.5876823634660133, - 3.583609852404427, - 3.5808233974675523, - 3.551351277942915, - 3.527773582323205, - 3.5270233829171236, - 3.5253086414175083, - 3.4488954733409036, - 3.433998656562996, - 3.422745665471771, - 3.404205023007181, - 3.4039906803197293, - 3.3407595875214167, - 3.289317342532959 - ], - "yaxis": "y2" - } - ], - "layout": { - "annotations": [ - { - "showarrow": false, - "text": "day=Thur", - "textangle": 0, - "x": 0.1153846153846154, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Fri", - "textangle": 0, - "x": 0.3717948717948718, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Sat", - "textangle": 0, - "x": 0.6282051282051283, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Sun", - "textangle": 0, - "x": 0.8846153846153848, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "time=Lunch", - "textangle": 90, - "x": 1.01, - "xanchor": "center", - "xref": "paper", - "y": 0.763157894736842, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "time=Dinner", - "textangle": 90, - "x": 1.01, - "xanchor": "center", - "xref": "paper", - "y": 0.23684210526315788, - "yanchor": "middle", - "yref": "paper" - } - ], - "grid": { - "xaxes": [ - "x", - "x2", - "x3", - "x4" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y", - "y2" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "total_bill" - } - }, - "xaxis2": { - "matches": "x", - "title": { - "text": "total_bill" - } - }, - "xaxis3": { - "matches": "x", - "title": { - "text": "total_bill" - } - }, - "xaxis4": { - "matches": "x", - "title": { - "text": "total_bill" - } - }, - "yaxis": { - "title": { - "text": "tip" - } - }, - "yaxis2": { - "matches": "y", - "title": { - "text": "tip" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "tips = px.data.tips()\n", - "\n", - "px.scatter(tips, x='total_bill', y='tip',facet_row='time',\n", - " facet_col='day',color='smoker',trendline='ols',\n", - " category_orders={'day':['Thur', 'Fri', 'Sat', 'Sun'], 'time':['Lunch', 'Dinner']})" - ] - }, - { - "cell_type": "code", - "execution_count": 39, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "dimensions": [ - { - "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, - 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, - 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 - ] - }, - { - "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, - 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, - 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 - ] - }, - { - "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, - 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, - 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 - ] - }, - { - "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, - 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, - 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 - ] - }, - { - "label": "species_id", - "values": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3 - ] - } - ], - "line": { - "cmax": 3, - "cmin": 1, - "color": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3 - ], - "colorbar": { - "title": { - "text": "species_id" - } - }, - "colorscale": [ - [ - 0, - "rgb(0, 147, 146)" - ], - [ - 0.16666666666666666, - "rgb(114, 170, 161)" - ], - [ - 0.3333333333333333, - "rgb(177, 199, 179)" - ], - [ - 0.5, - "rgb(241, 234, 200)" - ], - [ - 0.6666666666666666, - "rgb(229, 185, 173)" - ], - [ - 0.8333333333333334, - "rgb(217, 137, 148)" - ], - [ - 1, - "rgb(208, 88, 126)" - ] - ], - "showscale": true - }, - "name": "", - "type": "parcoords", - "uid": "83914771-ce36-4dd3-88d0-6caaf3970cfc" - } - ], - "layout": { - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.parallel_coordinates(iris, color='species_id',\n", - " color_continuous_scale=px.colors.diverging.Tealrose,\n", - " color_continuous_midpoint=2)" - ] - }, - { - "cell_type": "code", - "execution_count": 40, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "dimensions": [ - { - "label": "sex", - "values": [ - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Male", - "Female", - "Female", - "Female", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Male", - "Female", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Female", - "Female", - "Female", - "Female", - "Male", - "Female", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Female", - "Male", - "Female", - "Female", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male", - "Female" - ] - }, - { - "label": "smoker", - "values": [ - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "Yes", - "No", - "Yes", - "No", - "Yes", - "Yes", - "Yes", - "Yes", - "No", - "No", - "No", - "Yes", - "No", - "Yes", - "No", - "No", - "Yes", - "Yes", - "No", - "No", - "Yes", - "No", - "No", - "No", - "Yes", - "No", - "No", - "Yes", - "No", - "No", - "No", - "No", - "No", - "No", - "Yes", - "No", - "Yes", - "Yes", - "No", - "Yes", - "Yes", - "Yes", - "Yes", - "No", - "Yes", - "Yes", - "Yes", - "Yes", - "No", - "Yes", - "Yes", - "Yes", - "No", - "Yes", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "Yes", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "No", - "Yes", - "No", - "No", - "No", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "No", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "No", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "No", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "Yes", - "No", - "Yes", - "Yes", - "Yes", - "No", - "No", - "Yes", - "Yes", - "Yes", - "No", - "No", - "Yes", - "No", - "Yes", - "Yes", - "No", - "No", - "Yes", - "Yes", - "No", - "No" - ] - }, - { - "label": "day", - "values": [ - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sat", - "Sat", - "Sat", - "Sat", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Sun", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Thur", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Fri", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Sat", - "Thur" - ] - }, - { - "label": "time", - "values": [ - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Lunch", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner", - "Dinner" - ] - }, - { - "label": "size", - "values": [ - 2, - 3, - 3, - 2, - 4, - 4, - 2, - 4, - 2, - 2, - 2, - 4, - 2, - 4, - 2, - 2, - 3, - 3, - 3, - 3, - 2, - 2, - 2, - 4, - 2, - 4, - 2, - 2, - 2, - 2, - 2, - 4, - 2, - 4, - 2, - 3, - 3, - 3, - 3, - 3, - 3, - 2, - 2, - 2, - 4, - 2, - 2, - 4, - 3, - 2, - 2, - 2, - 4, - 2, - 4, - 2, - 4, - 2, - 2, - 4, - 2, - 2, - 2, - 4, - 3, - 3, - 2, - 1, - 2, - 2, - 2, - 3, - 2, - 2, - 2, - 2, - 2, - 4, - 2, - 2, - 2, - 2, - 1, - 2, - 2, - 4, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 4, - 2, - 2, - 2, - 2, - 2, - 2, - 3, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 1, - 3, - 2, - 3, - 2, - 4, - 2, - 2, - 4, - 2, - 2, - 2, - 2, - 2, - 6, - 2, - 2, - 2, - 3, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 6, - 5, - 6, - 2, - 2, - 3, - 2, - 2, - 2, - 2, - 2, - 3, - 4, - 4, - 5, - 6, - 4, - 2, - 4, - 4, - 2, - 3, - 2, - 2, - 3, - 2, - 4, - 2, - 2, - 3, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 4, - 2, - 3, - 4, - 2, - 5, - 3, - 5, - 3, - 3, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 4, - 2, - 2, - 3, - 2, - 2, - 2, - 4, - 3, - 3, - 4, - 2, - 2, - 3, - 4, - 4, - 2, - 3, - 2, - 5, - 2, - 2, - 4, - 2, - 2, - 1, - 3, - 2, - 2, - 2, - 4, - 2, - 2, - 4, - 3, - 2, - 2, - 2, - 2, - 2, - 2, - 3, - 3, - 2, - 2, - 2, - 2 - ] - } - ], - "line": { - "cmax": 6, - "cmin": 1, - "color": [ - 2, - 3, - 3, - 2, - 4, - 4, - 2, - 4, - 2, - 2, - 2, - 4, - 2, - 4, - 2, - 2, - 3, - 3, - 3, - 3, - 2, - 2, - 2, - 4, - 2, - 4, - 2, - 2, - 2, - 2, - 2, - 4, - 2, - 4, - 2, - 3, - 3, - 3, - 3, - 3, - 3, - 2, - 2, - 2, - 4, - 2, - 2, - 4, - 3, - 2, - 2, - 2, - 4, - 2, - 4, - 2, - 4, - 2, - 2, - 4, - 2, - 2, - 2, - 4, - 3, - 3, - 2, - 1, - 2, - 2, - 2, - 3, - 2, - 2, - 2, - 2, - 2, - 4, - 2, - 2, - 2, - 2, - 1, - 2, - 2, - 4, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 4, - 2, - 2, - 2, - 2, - 2, - 2, - 3, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 1, - 3, - 2, - 3, - 2, - 4, - 2, - 2, - 4, - 2, - 2, - 2, - 2, - 2, - 6, - 2, - 2, - 2, - 3, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 6, - 5, - 6, - 2, - 2, - 3, - 2, - 2, - 2, - 2, - 2, - 3, - 4, - 4, - 5, - 6, - 4, - 2, - 4, - 4, - 2, - 3, - 2, - 2, - 3, - 2, - 4, - 2, - 2, - 3, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 4, - 2, - 3, - 4, - 2, - 5, - 3, - 5, - 3, - 3, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 4, - 2, - 2, - 3, - 2, - 2, - 2, - 4, - 3, - 3, - 4, - 2, - 2, - 3, - 4, - 4, - 2, - 3, - 2, - 5, - 2, - 2, - 4, - 2, - 2, - 1, - 3, - 2, - 2, - 2, - 4, - 2, - 2, - 4, - 3, - 2, - 2, - 2, - 2, - 2, - 2, - 3, - 3, - 2, - 2, - 2, - 2 - ], - "colorbar": { - "title": { - "text": "size" - } - }, - "colorscale": [ - [ - 0, - "#000004" - ], - [ - 0.1111111111111111, - "#1b0c41" - ], - [ - 0.2222222222222222, - "#4a0c6b" - ], - [ - 0.3333333333333333, - "#781c6d" - ], - [ - 0.4444444444444444, - "#a52c60" - ], - [ - 0.5555555555555556, - "#cf4446" - ], - [ - 0.6666666666666666, - "#ed6925" - ], - [ - 0.7777777777777778, - "#fb9b06" - ], - [ - 0.8888888888888888, - "#f7d13d" - ], - [ - 1, - "#fcffa4" - ] - ], - "showscale": true - }, - "name": "", - "type": "parcats", - "uid": "ec22efd2-b68d-4704-8300-56246bb9a6ce" - } - ], - "layout": { - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.parallel_categories(tips, color=\"size\", color_continuous_scale=px.colors.sequential.Inferno)" - ] - }, - { - "cell_type": "code", - "execution_count": 41, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "contours": { - "coloring": "none" - }, - "legendgroup": "", - "line": { - "color": "#636efa" - }, - "name": "", - "showlegend": false, - "type": "histogram2dcontour", - "uid": "6a78dbed-c30f-43bb-ae6c-6b631f11bbc0", - "x": [ - 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, - 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, - 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 - ], - "xaxis": "x", - "y": [ - 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, - 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, - 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 - ], - "yaxis": "y" - } - ], - "layout": { - "grid": { - "xaxes": [ - "x" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "sepal_width" - } - }, - "yaxis": { - "title": { - "text": "sepal_length" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.density_contour(iris, x=\"sepal_width\", y=\"sepal_length\")" - ] - }, - { - "cell_type": "code", - "execution_count": 42, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "contours": { - "coloring": "none" - }, - "legendgroup": "species=setosa", - "line": { - "color": "#636efa" - }, - "name": "species=setosa", - "showlegend": true, - "type": "histogram2dcontour", - "uid": "c25bdf7d-3930-41fc-ad3a-8be1e9f64431", - "x": [ - 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 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "contours": { - "coloring": "none" - }, - "legendgroup": "species=versicolor", - "line": { - "color": "#EF553B" - }, - "name": "species=versicolor", - "showlegend": true, - "type": "histogram2dcontour", - "uid": "88e34001-98ea-49ed-b683-ac17ac3ff8ca", - "x": [ - 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 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "contours": { - "coloring": "none" - }, - "legendgroup": "species=virginica", - "line": { - "color": "#00cc96" - }, - "name": "species=virginica", - "showlegend": true, - "type": "histogram2dcontour", - "uid": "4f9c1e1a-03b3-4f1c-a6e6-b8d012a26e28", - "x": [ - 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 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - } - ], - "layout": { - "grid": { - "xaxes": [ - "x" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "sepal_width" - } - }, - "yaxis": { - "title": { - "text": "sepal_length" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.density_contour(iris, x=\"sepal_width\", y=\"sepal_length\", color=\"species\")" - ] - }, - { - "cell_type": "code", - "execution_count": 43, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
day=Sun
time=Dinner
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": true, - "type": "histogram", - "uid": "aad4d0ff-a32c-4fc5-9266-0c333c2e6475", - "x": [ - 16.99, - 10.34, - 21.01, - 23.68, - 24.59, - 25.29, - 8.77, - 26.88, - 15.04, - 14.78, - 10.27, - 35.26, - 15.42, - 18.43, - 14.83, - 21.58, - 10.33, - 16.29, - 16.97, - 17.46, - 13.94, - 9.68, - 30.4, - 18.29, - 22.23, - 32.4, - 28.55, - 18.04, - 12.54, - 10.29, - 34.81, - 9.94, - 25.56, - 19.49, - 38.07, - 23.95, - 25.71, - 17.31, - 29.93, - 14.07, - 13.13, - 17.26, - 24.55, - 19.77, - 29.85, - 48.17, - 25, - 13.39, - 16.49, - 21.5, - 12.66, - 16.21, - 13.81, - 24.52, - 20.76, - 31.71, - 20.69 - ], - "xaxis": "x", - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
day=Sat
time=Dinner
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": false, - "type": "histogram", - "uid": "4c9bf4ed-5d3c-4960-89ad-59e6d0271280", - "x": [ - 20.65, - 17.92, - 20.29, - 15.77, - 39.42, - 19.82, - 17.81, - 13.37, - 12.69, - 21.7, - 19.65, - 9.55, - 18.35, - 15.06, - 20.69, - 17.78, - 24.06, - 16.31, - 16.93, - 18.69, - 31.27, - 16.04, - 26.41, - 48.27, - 17.59, - 20.08, - 16.45, - 20.23, - 12.02, - 17.07, - 14.73, - 10.51, - 20.92, - 18.24, - 14, - 7.25, - 48.33, - 20.45, - 13.28, - 11.61, - 10.77, - 10.07, - 35.83, - 29.03, - 17.82 - ], - "xaxis": "x", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
day=Thur
time=Dinner
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": false, - "type": "histogram", - "uid": "ca4fba0c-71d5-4fbf-9ac2-7fa1cbd2af8c", - "x": [ - 18.78 - ], - "xaxis": "x", - "yaxis": "y3" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
day=Thur
time=Lunch
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": false, - "type": "histogram", - "uid": "42c6eb30-c8b7-494c-b107-8cbd77bedb9a", - "x": [ - 27.2, - 22.76, - 17.29, - 16.66, - 10.07, - 15.98, - 34.83, - 13.03, - 18.28, - 24.71, - 21.16, - 10.65, - 12.43, - 24.08, - 11.69, - 13.42, - 14.26, - 15.95, - 12.48, - 29.8, - 8.52, - 14.52, - 11.38, - 22.82, - 19.08, - 20.27, - 11.17, - 12.26, - 18.26, - 8.51, - 10.33, - 14.15, - 13.16, - 17.47, - 34.3, - 41.19, - 27.05, - 16.43, - 8.35, - 18.64, - 11.87, - 9.78, - 7.51, - 7.56 - ], - "xaxis": "x2", - "yaxis": "y3" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
day=Fri
time=Dinner
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": false, - "type": "histogram", - "uid": "0523dab0-5261-409a-b8ed-4c2724d19091", - "x": [ - 22.49, - 22.75, - 12.46 - ], - "xaxis": "x", - "yaxis": "y4" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
day=Fri
time=Lunch
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": false, - "type": "histogram", - "uid": "519db12a-8c69-493b-8bc0-75d2d42d6405", - "x": [ - 15.98 - ], - "xaxis": "x2", - "yaxis": "y4" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
day=Sun
time=Dinner
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "offsetgroup": "smoker=Yes", - "orientation": "v", - "showlegend": true, - "type": "histogram", - "uid": "0b2b5cf7-887f-4d3a-a93c-e044e8417ee3", - "x": [ - 17.51, - 7.25, - 31.85, - 16.82, - 32.9, - 17.89, - 14.48, - 9.6, - 34.63, - 34.65, - 23.33, - 45.35, - 23.17, - 40.55, - 20.9, - 30.46, - 18.15, - 23.1, - 15.69 - ], - "xaxis": "x", - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
day=Sat
time=Dinner
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "offsetgroup": "smoker=Yes", - "orientation": "v", - "showlegend": false, - "type": "histogram", - "uid": "b644517c-6269-4fc7-ad9e-2b50f91707b6", - "x": [ - 38.01, - 11.24, - 20.29, - 13.81, - 11.02, - 18.29, - 3.07, - 15.01, - 26.86, - 25.28, - 17.92, - 44.3, - 22.42, - 15.36, - 20.49, - 25.21, - 14.31, - 10.59, - 10.63, - 50.81, - 15.81, - 26.59, - 38.73, - 24.27, - 12.76, - 30.06, - 25.89, - 13.27, - 28.17, - 12.9, - 28.15, - 11.59, - 7.74, - 30.14, - 22.12, - 24.01, - 15.69, - 15.53, - 12.6, - 32.83, - 27.18, - 22.67 - ], - "xaxis": "x", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
day=Thur
time=Lunch
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "offsetgroup": "smoker=Yes", - "orientation": "v", - "showlegend": false, - "type": "histogram", - "uid": "2362b16b-ab94-475c-bbf7-02879c1ba4d7", - "x": [ - 19.44, - 32.68, - 16, - 19.81, - 28.44, - 15.48, - 16.58, - 10.34, - 43.11, - 13, - 13.51, - 18.71, - 12.74, - 13, - 16.4, - 20.53, - 16.47 - ], - "xaxis": "x2", - "yaxis": "y3" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
day=Fri
time=Dinner
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "offsetgroup": "smoker=Yes", - "orientation": "v", - "showlegend": false, - "type": "histogram", - "uid": "da06e084-bdbb-44e8-be19-24eff0a3f49f", - "x": [ - 28.97, - 5.75, - 16.32, - 40.17, - 27.28, - 12.03, - 21.01, - 11.35, - 15.38 - ], - "xaxis": "x", - "yaxis": "y4" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
day=Fri
time=Lunch
total_bill=%{x}
count=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "offsetgroup": "smoker=Yes", - "orientation": "v", - "showlegend": false, - "type": "histogram", - "uid": "b6e24247-b371-4d20-838d-cf3d0103139c", - "x": [ - 12.16, - 13.42, - 8.58, - 13.42, - 16.27, - 10.09 - ], - "xaxis": "x2", - "yaxis": "y4" - } - ], - "layout": { - "annotations": [ - { - "showarrow": false, - "text": "time=Dinner", - "textangle": 0, - "x": 0.23684210526315788, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "time=Lunch", - "textangle": 0, - "x": 0.763157894736842, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Sun", - "textangle": 90, - "x": 1.01, - "xanchor": "center", - "xref": "paper", - "y": 0.8846153846153848, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Sat", - "textangle": 90, - "x": 1.01, - "xanchor": "center", - "xref": "paper", - "y": 0.6282051282051283, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Thur", - "textangle": 90, - "x": 1.01, - "xanchor": "center", - "xref": "paper", - "y": 0.3717948717948718, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Fri", - "textangle": 90, - "x": 1.01, - "xanchor": "center", - "xref": "paper", - "y": 0.1153846153846154, - "yanchor": "middle", - "yref": "paper" - } - ], - "barmode": "relative", - "grid": { - "xaxes": [ - "x", - "x2" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y", - "y2", - "y3", - "y4" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "total_bill" - } - }, - "xaxis2": { - "matches": "x", - "title": { - "text": "total_bill" - } - }, - "yaxis": { - "title": { - "text": "count" - } - }, - "yaxis2": { - "matches": "y", - "title": { - "text": "count" - } - }, - "yaxis3": { - "matches": "y", - "title": { - "text": "count" - } - }, - "yaxis4": { - "matches": "y", - "title": { - "text": "count" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.histogram(tips, x=\"total_bill\", color=\"smoker\", facet_row=\"day\", facet_col=\"time\")" - ] - }, - { - "cell_type": "code", - "execution_count": 44, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Lunch
day=Thur
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "notched": false, - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": true, - "type": "box", - "uid": "cd463482-4b60-460f-a381-d56bfbace658", - "x": [ - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Male", - "Female", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Female", - "Female", - "Female", - "Female", - "Female", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male" - ], - "x0": " ", - "xaxis": "x", - "y": [ - 4, - 3, - 2.71, - 3.4, - 1.83, - 2.03, - 5.17, - 2, - 4, - 5.85, - 3, - 1.5, - 1.8, - 2.92, - 2.31, - 1.68, - 2.5, - 2, - 2.52, - 4.2, - 1.48, - 2, - 2, - 2.18, - 1.5, - 2.83, - 1.5, - 2, - 3.25, - 1.25, - 2, - 2, - 2.75, - 3.5, - 6.7, - 5, - 5, - 2.3, - 1.5, - 1.36, - 1.63, - 1.73, - 2, - 1.44 - ], - "y0": " ", - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Lunch
day=Fri
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "notched": false, - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": false, - "type": "box", - "uid": "a0f6c871-8668-4260-929d-12c878324964", - "x": [ - "Female" - ], - "x0": " ", - "xaxis": "x2", - "y": [ - 3 - ], - "y0": " ", - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Thur
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "notched": false, - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": false, - "type": "box", - "uid": "a6e09f01-ff37-431f-8b95-b1d8d1520b41", - "x": [ - "Female" - ], - "x0": " ", - "xaxis": "x", - "y": [ - 3 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Fri
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "notched": false, - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": false, - "type": "box", - "uid": "8e33d078-4645-408f-940c-4b076618f3cb", - "x": [ - "Male", - "Female", - "Male" - ], - "x0": " ", - "xaxis": "x2", - "y": [ - 3.5, - 3.25, - 1.5 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Sat
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "notched": false, - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": false, - "type": "box", - "uid": "038ff1d2-55d0-4664-a323-89fb0e6ec320", - "x": [ - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Male", - "Female", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male" - ], - "x0": " ", - "xaxis": "x3", - "y": [ - 3.35, - 4.08, - 2.75, - 2.23, - 7.58, - 3.18, - 2.34, - 2, - 2, - 4.3, - 3, - 1.45, - 2.5, - 3, - 2.45, - 3.27, - 3.6, - 2, - 3.07, - 2.31, - 5, - 2.24, - 1.5, - 6.73, - 2.64, - 3.15, - 2.47, - 2.01, - 1.97, - 3, - 2.2, - 1.25, - 4.08, - 3.76, - 3, - 1, - 9, - 3, - 2.72, - 3.39, - 1.47, - 1.25, - 4.67, - 5.92, - 1.75 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Sun
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "notched": false, - "offsetgroup": "smoker=No", - "orientation": "v", - "showlegend": false, - "type": "box", - "uid": "74f912ae-868d-41db-a859-d82d2a9cdda7", - "x": [ - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male" - ], - "x0": " ", - "xaxis": "x4", - "y": [ - 1.01, - 1.66, - 3.5, - 3.31, - 3.61, - 4.71, - 2, - 3.12, - 1.96, - 3.23, - 1.71, - 5, - 1.57, - 3, - 3.02, - 3.92, - 1.67, - 3.71, - 3.5, - 2.54, - 3.06, - 1.32, - 5.6, - 3, - 5, - 6, - 2.05, - 3, - 2.5, - 2.6, - 5.2, - 1.56, - 4.34, - 3.51, - 4, - 2.55, - 4, - 3.5, - 5.07, - 2.5, - 2, - 2.74, - 2, - 2, - 5.14, - 5, - 3.75, - 2.61, - 2, - 3.5, - 2.5, - 2, - 2, - 3.48, - 2.24, - 4.5, - 5 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Lunch
day=Thur
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "notched": false, - "offsetgroup": "smoker=Yes", - "orientation": "v", - "showlegend": true, - "type": "box", - "uid": "d568a32a-691b-4747-a6f4-ea33042a00a1", - "x": [ - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Female" - ], - "x0": " ", - "xaxis": "x", - "y": [ - 3, - 5, - 2, - 4.19, - 2.56, - 2.02, - 4, - 2, - 5, - 2, - 2, - 4, - 2.01, - 2, - 2.5, - 4, - 3.23 - ], - "y0": " ", - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Lunch
day=Fri
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "notched": false, - "offsetgroup": "smoker=Yes", - "orientation": "v", - "showlegend": false, - "type": "box", - "uid": "02b5ee09-abd0-47a0-851e-e180add154ea", - "x": [ - "Male", - "Female", - "Male", - "Male", - "Female", - "Female" - ], - "x0": " ", - "xaxis": "x2", - "y": [ - 2.2, - 3.48, - 1.92, - 1.58, - 2.5, - 2 - ], - "y0": " ", - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Dinner
day=Fri
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "notched": false, - "offsetgroup": "smoker=Yes", - "orientation": "v", - "showlegend": false, - "type": "box", - "uid": "51849364-21ac-4f5d-8b6f-d9bcce1e5849", - "x": [ - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female" - ], - "x0": " ", - "xaxis": "x2", - "y": [ - 3, - 1, - 4.3, - 4.73, - 4, - 1.5, - 3, - 2.5, - 3 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Dinner
day=Sat
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "notched": false, - "offsetgroup": "smoker=Yes", - "orientation": "v", - "showlegend": false, - "type": "box", - "uid": "ad94ec1f-9c7c-4f25-9dd2-a658b62b5316", - "x": [ - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Female", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male" - ], - "x0": " ", - "xaxis": "x3", - "y": [ - 3, - 1.76, - 3.21, - 2, - 1.98, - 3.76, - 1, - 2.09, - 3.14, - 5, - 3.08, - 2.5, - 3.48, - 1.64, - 4.06, - 4.29, - 4, - 1.61, - 2, - 10, - 3.16, - 3.41, - 3, - 2.03, - 2.23, - 2, - 5.16, - 2.5, - 6.5, - 1.1, - 3, - 1.5, - 1.44, - 3.09, - 2.88, - 2, - 3, - 3, - 1, - 1.17, - 2, - 2 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Dinner
day=Sun
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "notched": false, - "offsetgroup": "smoker=Yes", - "orientation": "v", - "showlegend": false, - "type": "box", - "uid": "23ecc4e1-2d68-4d66-8e98-104021aa92cb", - "x": [ - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male" - ], - "x0": " ", - "xaxis": "x4", - "y": [ - 3, - 5.15, - 3.18, - 4, - 3.11, - 2, - 2, - 4, - 3.55, - 3.68, - 5.65, - 3.5, - 6.5, - 3, - 3.5, - 2, - 3.5, - 4, - 1.5 - ], - "y0": " ", - "yaxis": "y2" - } - ], - "layout": { - "annotations": [ - { - "showarrow": false, - "text": "day=Thur", - "textangle": 0, - "x": 0.1153846153846154, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Fri", - "textangle": 0, - "x": 0.3717948717948718, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Sat", - "textangle": 0, - "x": 0.6282051282051283, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Sun", - "textangle": 0, - "x": 0.8846153846153848, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "time=Lunch", - "textangle": 90, - "x": 1.01, - "xanchor": "center", - "xref": "paper", - "y": 0.763157894736842, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "time=Dinner", - "textangle": 90, - "x": 1.01, - "xanchor": "center", - "xref": "paper", - "y": 0.23684210526315788, - "yanchor": "middle", - "yref": "paper" - } - ], - "boxmode": "group", - "grid": { - "xaxes": [ - "x", - "x2", - "x3", - "x4" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y", - "y2" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "sex" - } - }, - "xaxis2": { - "matches": "x", - "title": { - "text": "sex" - } - }, - "xaxis3": { - "matches": "x", - "title": { - "text": "sex" - } - }, - "xaxis4": { - "matches": "x", - "title": { - "text": "sex" - } - }, - "yaxis": { - "title": { - "text": "tip" - } - }, - "yaxis2": { - "matches": "y", - "title": { - "text": "tip" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.box(tips, y=\"tip\", x=\"sex\", color=\"smoker\", facet_col=\"day\", facet_row=\"time\", \n", - " category_orders={\"day\": [\"Thur\", \"Fri\", \"Sat\", \"Sun\"], \"time\": [\"Lunch\", \"Dinner\"]})" - ] - }, - { - "cell_type": "code", - "execution_count": 45, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Lunch
day=Thur
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "scalegroup": "True", - "showlegend": true, - "type": "violin", - "uid": "0632497e-53f8-4e5e-8b13-b615bc142bec", - "x": [ - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Male", - "Female", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Female", - "Female", - "Female", - "Female", - "Female", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male" - ], - "x0": " ", - "xaxis": "x", - "y": [ - 4, - 3, - 2.71, - 3.4, - 1.83, - 2.03, - 5.17, - 2, - 4, - 5.85, - 3, - 1.5, - 1.8, - 2.92, - 2.31, - 1.68, - 2.5, - 2, - 2.52, - 4.2, - 1.48, - 2, - 2, - 2.18, - 1.5, - 2.83, - 1.5, - 2, - 3.25, - 1.25, - 2, - 2, - 2.75, - 3.5, - 6.7, - 5, - 5, - 2.3, - 1.5, - 1.36, - 1.63, - 1.73, - 2, - 1.44 - ], - "y0": " ", - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Lunch
day=Fri
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "scalegroup": "True", - "showlegend": false, - "type": "violin", - "uid": "abe53957-85df-408c-b809-174d110b152d", - "x": [ - "Female" - ], - "x0": " ", - "xaxis": "x2", - "y": [ - 3 - ], - "y0": " ", - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Thur
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "scalegroup": "True", - "showlegend": false, - "type": "violin", - "uid": "bc7159f9-802b-4f43-8991-67b531ab5ac6", - "x": [ - "Female" - ], - "x0": " ", - "xaxis": "x", - "y": [ - 3 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Fri
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "scalegroup": "True", - "showlegend": false, - "type": "violin", - "uid": "71d68c76-e816-40de-bb31-de0067c0c988", - "x": [ - "Male", - "Female", - "Male" - ], - "x0": " ", - "xaxis": "x2", - "y": [ - 3.5, - 3.25, - 1.5 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Sat
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "scalegroup": "True", - "showlegend": false, - "type": "violin", - "uid": "f347c24d-ceab-4191-8503-437cfae12bcc", - "x": [ - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Male", - "Female", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male" - ], - "x0": " ", - "xaxis": "x3", - "y": [ - 3.35, - 4.08, - 2.75, - 2.23, - 7.58, - 3.18, - 2.34, - 2, - 2, - 4.3, - 3, - 1.45, - 2.5, - 3, - 2.45, - 3.27, - 3.6, - 2, - 3.07, - 2.31, - 5, - 2.24, - 1.5, - 6.73, - 2.64, - 3.15, - 2.47, - 2.01, - 1.97, - 3, - 2.2, - 1.25, - 4.08, - 3.76, - 3, - 1, - 9, - 3, - 2.72, - 3.39, - 1.47, - 1.25, - 4.67, - 5.92, - 1.75 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=No
time=Dinner
day=Sun
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=No", - "marker": { - "color": "#636efa" - }, - "name": "smoker=No", - "offsetgroup": "smoker=No", - "orientation": "v", - "scalegroup": "True", - "showlegend": false, - "type": "violin", - "uid": "93868c69-0239-4a0e-aded-3ae49efa991d", - "x": [ - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male" - ], - "x0": " ", - "xaxis": "x4", - "y": [ - 1.01, - 1.66, - 3.5, - 3.31, - 3.61, - 4.71, - 2, - 3.12, - 1.96, - 3.23, - 1.71, - 5, - 1.57, - 3, - 3.02, - 3.92, - 1.67, - 3.71, - 3.5, - 2.54, - 3.06, - 1.32, - 5.6, - 3, - 5, - 6, - 2.05, - 3, - 2.5, - 2.6, - 5.2, - 1.56, - 4.34, - 3.51, - 4, - 2.55, - 4, - 3.5, - 5.07, - 2.5, - 2, - 2.74, - 2, - 2, - 5.14, - 5, - 3.75, - 2.61, - 2, - 3.5, - 2.5, - 2, - 2, - 3.48, - 2.24, - 4.5, - 5 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Lunch
day=Thur
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "offsetgroup": "smoker=Yes", - "orientation": "v", - "scalegroup": "True", - "showlegend": true, - "type": "violin", - "uid": "6d94aa75-f3ee-4ba5-8e83-a7dbda660348", - "x": [ - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Female" - ], - "x0": " ", - "xaxis": "x", - "y": [ - 3, - 5, - 2, - 4.19, - 2.56, - 2.02, - 4, - 2, - 5, - 2, - 2, - 4, - 2.01, - 2, - 2.5, - 4, - 3.23 - ], - "y0": " ", - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Lunch
day=Fri
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "offsetgroup": "smoker=Yes", - "orientation": "v", - "scalegroup": "True", - "showlegend": false, - "type": "violin", - "uid": "cfed2c77-8dc6-449f-9e2e-f63fea044fce", - "x": [ - "Male", - "Female", - "Male", - "Male", - "Female", - "Female" - ], - "x0": " ", - "xaxis": "x2", - "y": [ - 2.2, - 3.48, - 1.92, - 1.58, - 2.5, - 2 - ], - "y0": " ", - "yaxis": "y" - }, - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Dinner
day=Fri
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "offsetgroup": "smoker=Yes", - "orientation": "v", - "scalegroup": "True", - "showlegend": false, - "type": "violin", - "uid": "269af9b2-4c67-4e16-84aa-6ff2f0d9e3d7", - "x": [ - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Female", - "Female" - ], - "x0": " ", - "xaxis": "x2", - "y": [ - 3, - 1, - 4.3, - 4.73, - 4, - 1.5, - 3, - 2.5, - 3 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Dinner
day=Sat
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "offsetgroup": "smoker=Yes", - "orientation": "v", - "scalegroup": "True", - "showlegend": false, - "type": "violin", - "uid": "bb49c41f-4cd7-42de-9b75-00644fb50f91", - "x": [ - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Female", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Female", - "Female", - "Female", - "Male", - "Male", - "Male", - "Female", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male" - ], - "x0": " ", - "xaxis": "x3", - "y": [ - 3, - 1.76, - 3.21, - 2, - 1.98, - 3.76, - 1, - 2.09, - 3.14, - 5, - 3.08, - 2.5, - 3.48, - 1.64, - 4.06, - 4.29, - 4, - 1.61, - 2, - 10, - 3.16, - 3.41, - 3, - 2.03, - 2.23, - 2, - 5.16, - 2.5, - 6.5, - 1.1, - 3, - 1.5, - 1.44, - 3.09, - 2.88, - 2, - 3, - 3, - 1, - 1.17, - 2, - 2 - ], - "y0": " ", - "yaxis": "y2" - }, - { - "alignmentgroup": "True", - "box": { - "visible": false - }, - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "smoker=Yes
time=Dinner
day=Sun
sex=%{x}
tip=%{y}", - "legendgroup": "smoker=Yes", - "marker": { - "color": "#EF553B" - }, - "name": "smoker=Yes", - "offsetgroup": "smoker=Yes", - "orientation": "v", - "scalegroup": "True", - "showlegend": false, - "type": "violin", - "uid": "08119246-b9aa-40f5-abfe-0f622be18ac0", - "x": [ - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Male", - "Male", - "Male", - "Male", - "Male", - "Female", - "Male", - "Female", - "Male", - "Male" - ], - "x0": " ", - "xaxis": "x4", - "y": [ - 3, - 5.15, - 3.18, - 4, - 3.11, - 2, - 2, - 4, - 3.55, - 3.68, - 5.65, - 3.5, - 6.5, - 3, - 3.5, - 2, - 3.5, - 4, - 1.5 - ], - "y0": " ", - "yaxis": "y2" - } - ], - "layout": { - "annotations": [ - { - "showarrow": false, - "text": "day=Thur", - "textangle": 0, - "x": 0.1153846153846154, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Fri", - "textangle": 0, - "x": 0.3717948717948718, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Sat", - "textangle": 0, - "x": 0.6282051282051283, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "day=Sun", - "textangle": 0, - "x": 0.8846153846153848, - "xanchor": "center", - "xref": "paper", - "y": 1.02, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "time=Lunch", - "textangle": 90, - "x": 1.01, - "xanchor": "center", - "xref": "paper", - "y": 0.763157894736842, - "yanchor": "middle", - "yref": "paper" - }, - { - "showarrow": false, - "text": "time=Dinner", - "textangle": 90, - "x": 1.01, - "xanchor": "center", - "xref": "paper", - "y": 0.23684210526315788, - "yanchor": "middle", - "yref": "paper" - } - ], - "grid": { - "xaxes": [ - "x", - "x2", - "x3", - "x4" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y", - "y2" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "violinmode": "group", - "xaxis": { - "title": { - "text": "sex" - } - }, - "xaxis2": { - "matches": "x", - "title": { - "text": "sex" - } - }, - "xaxis3": { - "matches": "x", - "title": { - "text": "sex" - } - }, - "xaxis4": { - "matches": "x", - "title": { - "text": "sex" - } - }, - "yaxis": { - "title": { - "text": "tip" - } - }, - "yaxis2": { - "matches": "y", - "title": { - "text": "tip" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.violin(tips, y=\"tip\", x=\"sex\", color=\"smoker\", facet_col=\"day\", facet_row=\"time\",\n", - " category_orders={\"day\": [\"Thur\", \"Fri\", \"Sat\", \"Sun\"], \"time\": [\"Lunch\", \"Dinner\"]})" - ] - }, - { - "cell_type": "code", - "execution_count": 46, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "a": [ - 3024, - 2675, - 3578, - 2849, - 1894, - 2282, - 1636, - 3262, - 2648, - 1266, - 1908, - 690 - ], - "b": [ - 2481, - 2525, - 2432, - 2476, - 1451, - 1906, - 1548, - 1773, - 2040, - 1165, - 1325, - 518 - ], - "c": [ - 1829, - 1163, - 3368, - 2631, - 754, - 2169, - 1503, - 2653, - 1437, - 832, - 1205, - 224 - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Joly
result=plurality
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", - "hovertext": [ - "101-Bois-de-Liesse", - "102-Cap-Saint-Jacques", - "161-Saint-Henri?Petite-Bourgogne?Pointe-Saint-Charles", - "172-Desmarchais-Crawford", - "181-Peter-McGill", - "182-Saint-Jacques", - "33-Snowdon", - "34-Notre-Dame-de-Grâce", - "35-Loyola", - "41-du Canal", - "43-Fort-Rolland", - "63-Jacques-Bizard" - ], - "legendgroup": "winner=Joly, result=plurality", - "marker": { - "color": "blue", - "size": [ - 7334, - 6363, - 9378, - 7956, - 4099, - 6357, - 4687, - 7688, - 6125, - 3263, - 4438, - 1432 - ], - "sizemode": "area", - "sizeref": 49.111111111111114, - "symbol": "circle" - }, - "mode": "markers", - "name": "winner=Joly, result=plurality", - "showlegend": true, - "type": "scatterternary", - "uid": "e95a1947-94a2-4e05-8855-b4081a42fa0b" - }, - { - "a": [ - 998, - 1068 - ], - "b": [ - 631, - 595 - ], - "c": [ - 258, - 226 - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Joly
result=majority
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", - "hovertext": [ - "61-Pierre-Foretier", - "62-Denis-Benjamin-Viger" - ], - "legendgroup": "winner=Joly, result=majority", - "marker": { - "color": "blue", - "size": [ - 1887, - 1889 - ], - "sizemode": "area", - "sizeref": 49.111111111111114, - "symbol": "diamond" - }, - "mode": "markers", - "name": "winner=Joly, result=majority", - "showlegend": true, - "type": "scatterternary", - "uid": "4803bc48-5ccf-431a-b7ae-0a12c7fa7a57" - }, - { - "a": [ - 2532, - 2543, - 2431, - 2081, - 3959, - 2822, - 2438, - 3291, - 2039, - 1402, - 1172, - 1232, - 1157, - 3717, - 2943, - 326, - 3454, - 2338, - 423 - ], - "b": [ - 3348, - 3252, - 3673, - 3612, - 4308, - 4104, - 2566, - 3347, - 2878, - 2420, - 1589, - 1873, - 1193, - 4201, - 3536, - 332, - 3694, - 3509, - 996 - ], - "c": [ - 2770, - 2521, - 3155, - 1554, - 1320, - 1459, - 2092, - 2562, - 2666, - 1793, - 708, - 1182, - 653, - 1642, - 1330, - 131, - 2589, - 2178, - 643 - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Coderre
result=plurality
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", - "hovertext": [ - "11-Sault-au-Récollet", - "12-Saint-Sulpice", - "134-Marie-Victorin", - "14-Bordeaux-Cartierville", - "141-Côte-de-Liesse", - "142-Norman-McLaren", - "162-Saint-Paul?Émard", - "171-Champlain?L'╫le-des-Soeurs", - "192-François-Perrault", - "194-Parc-Extension", - "22-Est", - "31-Darlington", - "42-J.-Émery-Provost", - "51-Sault-Saint-Louis", - "52-Cecil-P.-Newman", - "64-Sainte-Geneviève", - "71-Tétreaultville", - "74-Louis-Riel", - "91-Claude-Ryan" - ], - "legendgroup": "winner=Coderre, result=plurality", - "marker": { - "color": "red", - "size": [ - 8650, - 8316, - 9259, - 7247, - 9587, - 8385, - 7096, - 9200, - 7583, - 5615, - 3469, - 4287, - 3003, - 9560, - 7809, - 789, - 9737, - 8025, - 2062 - ], - "sizemode": "area", - "sizeref": 49.111111111111114, - "symbol": "circle" - }, - "mode": "markers", - "name": "winner=Coderre, result=plurality", - "showlegend": true, - "type": "scatterternary", - "uid": "1e35a26a-6a85-43fe-90a6-e19cc0d51b34" - }, - { - "a": [ - 3330, - 2852, - 1656, - 1641, - 1908, - 1220, - 1076, - 1286, - 1435, - 1051 - ], - "b": [ - 5456, - 4734, - 5737, - 3931, - 5387, - 3668, - 2184, - 2526, - 6591, - 6229 - ], - "c": [ - 1760, - 1879, - 958, - 882, - 1184, - 984, - 691, - 851, - 1085, - 780 - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Coderre
result=majority
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", - "hovertext": [ - "121-La Pointe-aux-Prairies", - "122-Pointe-aux-Trembles", - "123-Rivière-des-Prairies", - "151-Saint-Léonard-Est", - "152-Saint-Léonard-Ouest", - "191-Saint-Michel", - "21-Ouest", - "23-Centre", - "81-Marie-Clarac", - "82-Ovide-Clermont" - ], - "legendgroup": "winner=Coderre, result=majority", - "marker": { - "color": "red", - "size": [ - 10546, - 9465, - 8351, - 6454, - 8479, - 5872, - 3951, - 4663, - 9111, - 8060 - ], - "sizemode": "area", - "sizeref": 49.111111111111114, - "symbol": "diamond" - }, - "mode": "markers", - "name": "winner=Coderre, result=majority", - "showlegend": true, - "type": "scatterternary", - "uid": "c6f2b617-6cc5-48d6-b993-c0292ae66793" - }, - { - "a": [ - 2316, - 2873, - 3234, - 2271, - 1578, - 3139, - 2675, - 592, - 419, - 489 - ], - "b": [ - 1455, - 2979, - 2670, - 1347, - 1644, - 2746, - 1546, - 540, - 446, - 491 - ], - "c": [ - 3599, - 3430, - 4962, - 2827, - 1950, - 3250, - 3679, - 833, - 465, - 698 - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Bergeron
result=plurality
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", - "hovertext": [ - "113-Jeanne-Mance", - "13-Ahuntsic", - "133-Vieux-Rosemont", - "183-Sainte-Marie", - "32-Côte-des-Neiges", - "72-Maisonneuve?Longue-Pointe", - "73-Hochelaga", - "92-Joseph-Beaubien", - "93-Robert-Bourassa", - "94-Jeanne-Sauvé" - ], - "legendgroup": "winner=Bergeron, result=plurality", - "marker": { - "color": "green", - "size": [ - 7370, - 9282, - 10866, - 6445, - 5172, - 9135, - 7900, - 1965, - 1330, - 1678 - ], - "sizemode": "area", - "sizeref": 49.111111111111114, - "symbol": "circle" - }, - "mode": "markers", - "name": "winner=Bergeron, result=plurality", - "showlegend": true, - "type": "scatterternary", - "uid": "5aa559b8-5584-4de1-95d1-20fc8fb6a382" - }, - { - "a": [ - 2514, - 3044, - 2815, - 2788, - 2782 - ], - "b": [ - 1734, - 1770, - 1827, - 2331, - 2201 - ], - "c": [ - 4782, - 5933, - 6408, - 5748, - 5819 - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Bergeron
result=majority
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", - "hovertext": [ - "111-Mile-End", - "112-DeLorimier", - "131-Saint-Édouard", - "132-Étienne-Desmarteau", - "193-Villeray" - ], - "legendgroup": "winner=Bergeron, result=majority", - "marker": { - "color": "green", - "size": [ - 9030, - 10747, - 11050, - 10867, - 10802 - ], - "sizemode": "area", - "sizeref": 49.111111111111114, - "symbol": "diamond" - }, - "mode": "markers", - "name": "winner=Bergeron, result=majority", - "showlegend": true, - "type": "scatterternary", - "uid": "260d87a3-3ac8-41da-bdf2-730f1ee91c27" - } - ], - "layout": { - "height": 600, - "legend": { - "itemsizing": "constant", - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "ternary": { - "aaxis": { - "title": { - "text": "Joly" - } - }, - "baxis": { - "title": { - "text": "Coderre" - } - }, - "caxis": { - "title": { - "text": "Bergeron" - } - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "election = px.data.election()\n", - "\n", - "px.scatter_ternary(election, a=\"Joly\", b=\"Coderre\", c=\"Bergeron\", color=\"winner\", size=\"total\", hover_name=\"district\",\n", - " symbol=\"result\", \n", - " size_max=15, color_discrete_map = {\"Joly\": \"blue\", \"Bergeron\": \"green\", \"Coderre\":\"red\"}\n", - " )" - ] - }, - { - "cell_type": "code", - "execution_count": 47, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Joly
result=plurality
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", - "hovertext": [ - "101-Bois-de-Liesse", - "102-Cap-Saint-Jacques", - "161-Saint-Henri?Petite-Bourgogne?Pointe-Saint-Charles", - "172-Desmarchais-Crawford", - "181-Peter-McGill", - "182-Saint-Jacques", - "33-Snowdon", - "34-Notre-Dame-de-Grâce", - "35-Loyola", - "41-du Canal", - "43-Fort-Rolland", - "63-Jacques-Bizard" - ], - "legendgroup": "winner=Joly, result=plurality", - "marker": { - "color": "blue", - "size": [ - 7334, - 6363, - 9378, - 7956, - 4099, - 6357, - 4687, - 7688, - 6125, - 3263, - 4438, - 1432 - ], - "sizemode": "area", - "sizeref": 27.625, - "symbol": "circle" - }, - "mode": "markers", - "name": "winner=Joly, result=plurality", - "showlegend": true, - "type": "scatter3d", - "uid": "c6b67f80-74dc-4a54-8b8c-93a9cffac8b9", - "x": [ - 3024, - 2675, - 3578, - 2849, - 1894, - 2282, - 1636, - 3262, - 2648, - 1266, - 1908, - 690 - ], - "y": [ - 2481, - 2525, - 2432, - 2476, - 1451, - 1906, - 1548, - 1773, - 2040, - 1165, - 1325, - 518 - ], - "z": [ - 1829, - 1163, - 3368, - 2631, - 754, - 2169, - 1503, - 2653, - 1437, - 832, - 1205, - 224 - ] - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Joly
result=majority
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", - "hovertext": [ - "61-Pierre-Foretier", - "62-Denis-Benjamin-Viger" - ], - "legendgroup": "winner=Joly, result=majority", - "marker": { - "color": "blue", - "size": [ - 1887, - 1889 - ], - "sizemode": "area", - "sizeref": 27.625, - "symbol": "diamond" - }, - "mode": "markers", - "name": "winner=Joly, result=majority", - "showlegend": true, - "type": "scatter3d", - "uid": "78040e01-a0b9-43d4-b281-6eed09ab75ba", - "x": [ - 998, - 1068 - ], - "y": [ - 631, - 595 - ], - "z": [ - 258, - 226 - ] - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Coderre
result=plurality
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", - "hovertext": [ - "11-Sault-au-Récollet", - "12-Saint-Sulpice", - "134-Marie-Victorin", - "14-Bordeaux-Cartierville", - "141-Côte-de-Liesse", - "142-Norman-McLaren", - "162-Saint-Paul?Émard", - "171-Champlain?L'╫le-des-Soeurs", - "192-François-Perrault", - "194-Parc-Extension", - "22-Est", - "31-Darlington", - "42-J.-Émery-Provost", - "51-Sault-Saint-Louis", - "52-Cecil-P.-Newman", - "64-Sainte-Geneviève", - "71-Tétreaultville", - "74-Louis-Riel", - "91-Claude-Ryan" - ], - "legendgroup": "winner=Coderre, result=plurality", - "marker": { - "color": "red", - "size": [ - 8650, - 8316, - 9259, - 7247, - 9587, - 8385, - 7096, - 9200, - 7583, - 5615, - 3469, - 4287, - 3003, - 9560, - 7809, - 789, - 9737, - 8025, - 2062 - ], - "sizemode": "area", - "sizeref": 27.625, - "symbol": "circle" - }, - "mode": "markers", - "name": "winner=Coderre, result=plurality", - "showlegend": true, - "type": "scatter3d", - "uid": "a6e96410-6267-4a79-a2e1-9001715d6075", - "x": [ - 2532, - 2543, - 2431, - 2081, - 3959, - 2822, - 2438, - 3291, - 2039, - 1402, - 1172, - 1232, - 1157, - 3717, - 2943, - 326, - 3454, - 2338, - 423 - ], - "y": [ - 3348, - 3252, - 3673, - 3612, - 4308, - 4104, - 2566, - 3347, - 2878, - 2420, - 1589, - 1873, - 1193, - 4201, - 3536, - 332, - 3694, - 3509, - 996 - ], - "z": [ - 2770, - 2521, - 3155, - 1554, - 1320, - 1459, - 2092, - 2562, - 2666, - 1793, - 708, - 1182, - 653, - 1642, - 1330, - 131, - 2589, - 2178, - 643 - ] - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Coderre
result=majority
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", - "hovertext": [ - "121-La Pointe-aux-Prairies", - "122-Pointe-aux-Trembles", - "123-Rivière-des-Prairies", - "151-Saint-Léonard-Est", - "152-Saint-Léonard-Ouest", - "191-Saint-Michel", - "21-Ouest", - "23-Centre", - "81-Marie-Clarac", - "82-Ovide-Clermont" - ], - "legendgroup": "winner=Coderre, result=majority", - "marker": { - "color": "red", - "size": [ - 10546, - 9465, - 8351, - 6454, - 8479, - 5872, - 3951, - 4663, - 9111, - 8060 - ], - "sizemode": "area", - "sizeref": 27.625, - "symbol": "diamond" - }, - "mode": "markers", - "name": "winner=Coderre, result=majority", - "showlegend": true, - "type": "scatter3d", - "uid": "3b6758ef-b4d5-41dc-8755-699646f3e4e6", - "x": [ - 3330, - 2852, - 1656, - 1641, - 1908, - 1220, - 1076, - 1286, - 1435, - 1051 - ], - "y": [ - 5456, - 4734, - 5737, - 3931, - 5387, - 3668, - 2184, - 2526, - 6591, - 6229 - ], - "z": [ - 1760, - 1879, - 958, - 882, - 1184, - 984, - 691, - 851, - 1085, - 780 - ] - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Bergeron
result=plurality
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", - "hovertext": [ - "113-Jeanne-Mance", - "13-Ahuntsic", - "133-Vieux-Rosemont", - "183-Sainte-Marie", - "32-Côte-des-Neiges", - "72-Maisonneuve?Longue-Pointe", - "73-Hochelaga", - "92-Joseph-Beaubien", - "93-Robert-Bourassa", - "94-Jeanne-Sauvé" - ], - "legendgroup": "winner=Bergeron, result=plurality", - "marker": { - "color": "green", - "size": [ - 7370, - 9282, - 10866, - 6445, - 5172, - 9135, - 7900, - 1965, - 1330, - 1678 - ], - "sizemode": "area", - "sizeref": 27.625, - "symbol": "circle" - }, - "mode": "markers", - "name": "winner=Bergeron, result=plurality", - "showlegend": true, - "type": "scatter3d", - "uid": "17242f73-6cdf-48d8-a853-baab9052ebe8", - "x": [ - 2316, - 2873, - 3234, - 2271, - 1578, - 3139, - 2675, - 592, - 419, - 489 - ], - "y": [ - 1455, - 2979, - 2670, - 1347, - 1644, - 2746, - 1546, - 540, - 446, - 491 - ], - "z": [ - 3599, - 3430, - 4962, - 2827, - 1950, - 3250, - 3679, - 833, - 465, - 698 - ] - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "%{hovertext}

winner=Bergeron
result=majority
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", - "hovertext": [ - "111-Mile-End", - "112-DeLorimier", - "131-Saint-Édouard", - "132-Étienne-Desmarteau", - "193-Villeray" - ], - "legendgroup": "winner=Bergeron, result=majority", - "marker": { - "color": "green", - "size": [ - 9030, - 10747, - 11050, - 10867, - 10802 - ], - "sizemode": "area", - "sizeref": 27.625, - "symbol": "diamond" - }, - "mode": "markers", - "name": "winner=Bergeron, result=majority", - "showlegend": true, - "type": "scatter3d", - "uid": "b618ca5e-86c5-4c92-af72-3c8a542f1f0b", - "x": [ - 2514, - 3044, - 2815, - 2788, - 2782 - ], - "y": [ - 1734, - 1770, - 1827, - 2331, - 2201 - ], - "z": [ - 4782, - 5933, - 6408, - 5748, - 5819 - ] - } - ], - "layout": { - "height": 600, - "legend": { - "itemsizing": "constant", - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "scene": { - "xaxis": { - "title": { - "text": "Joly" - } - }, - "yaxis": { - "title": { - "text": "Coderre" - } - }, - "zaxis": { - "title": { - "text": "Bergeron" - } - } - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.scatter_3d(election, x=\"Joly\", y=\"Coderre\", z=\"Bergeron\", color=\"winner\", size=\"total\", hover_name=\"district\",\n", - " symbol=\"result\", color_discrete_map = {\"Joly\": \"blue\", \"Bergeron\": \"green\", \"Coderre\":\"red\"})" - ] - }, - { - "cell_type": "code", - "execution_count": 48, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=0-1
value=%{r}
direction=%{theta}", - "legendgroup": "strength=0-1", - "line": { - "color": "#febefe", - "dash": "solid" - }, - "mode": "lines", - "name": "strength=0-1", - "r": [ - 0.5, - 0.6, - 0.5, - 0.4, - 0.4, - 0.3, - 0.4, - 0.4, - 0.6, - 0.4, - 0.5, - 0.6, - 0.6, - 0.5, - 0.4, - 0.1, - 0.5 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW", - "N" - ], - "type": "scatterpolar", - "uid": "a777d0d2-974f-4a44-aa74-135027cbca8f" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=1-2
value=%{r}
direction=%{theta}", - "legendgroup": "strength=1-2", - "line": { - "color": "#fea5fd", - "dash": "solid" - }, - "mode": "lines", - "name": "strength=1-2", - "r": [ - 1.6, - 1.8, - 1.5, - 1.6, - 1.6, - 1.2, - 1.5, - 1.7, - 2.2, - 2, - 2.3, - 2.4, - 2.3, - 2.6, - 2.3, - 0.8, - 1.6 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW", - "N" - ], - "type": "scatterpolar", - "uid": "3c0b6594-7584-4110-b7c0-958e77ca2788" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=2-3
value=%{r}
direction=%{theta}", - "legendgroup": "strength=2-3", - "line": { - "color": "#fe88fc", - "dash": "solid" - }, - "mode": "lines", - "name": "strength=2-3", - "r": [ - 0.9, - 1.3, - 1.6, - 0.9, - 1, - 0.6, - 0.6, - 0.9, - 1.4, - 1.7, - 1.9, - 2.2, - 1.8, - 1.7, - 1.8, - 0.8, - 0.9 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW", - "N" - ], - "type": "scatterpolar", - "uid": "74e0ebd5-7329-47e5-b6ea-92c8c648a7d4" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=3-4
value=%{r}
direction=%{theta}", - "legendgroup": "strength=3-4", - "line": { - "color": "#fc67fd", - "dash": "solid" - }, - "mode": "lines", - "name": "strength=3-4", - "r": [ - 0.9, - 0.8, - 1.2, - 1, - 0.8, - 0.4, - 0.5, - 0.5, - 0.8, - 0.9, - 1.3, - 1.1, - 1.2, - 1.2, - 1.3, - 1, - 0.9 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW", - "N" - ], - "type": "scatterpolar", - "uid": "fa39158d-af90-40c8-a0a2-1e75fde27945" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=4-4
value=%{r}
direction=%{theta}", - "legendgroup": "strength=4-4", - "line": { - "color": "#f246fe", - "dash": "solid" - }, - "mode": "lines", - "name": "strength=4-4", - "r": [ - 0.4, - 0.5, - 1.2, - 0.5, - 0.4, - 0.2, - 0.4, - 0.4, - 0.7, - 0.6, - 0.7, - 0.8, - 0.9, - 1, - 1, - 0.7, - 0.4 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW", - "N" - ], - "type": "scatterpolar", - "uid": "fed6ed76-0453-4d73-b97c-b19fc538239a" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=4-5
value=%{r}
direction=%{theta}", - "legendgroup": "strength=4-5", - "line": { - "color": "#dd2bfd", - "dash": "solid" - }, - "mode": "lines", - "name": "strength=4-5", - "r": [ - 0.3, - 0.3, - 0.6, - 0.2, - 0.1, - 0.1, - 0.05, - 0.1, - 0.1, - 0.2, - 0.3, - 0.4, - 0.9, - 0.9, - 0.9, - 0.3, - 0.3 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW", - "N" - ], - "type": "scatterpolar", - "uid": "31f6e4dd-1cd9-41e4-93ba-9404f35dbed7" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=5-6
value=%{r}
direction=%{theta}", - "legendgroup": "strength=5-6", - "line": { - "color": "#bf1cfd", - "dash": "solid" - }, - "mode": "lines", - "name": "strength=5-6", - "r": [ - 0.2, - 0.1, - 0.1, - 0.1, - 0.1, - 0.1, - 0.05, - 0.05, - 0.1, - 0.05, - 0.2, - 0.2, - 0.4, - 0.7, - 0.7, - 0.4, - 0.2 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW", - "N" - ], - "type": "scatterpolar", - "uid": "60a938c5-295a-4701-82f1-3b03cbdab9af" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=6+
value=%{r}
direction=%{theta}", - "legendgroup": "strength=6+", - "line": { - "color": "#981cfd", - "dash": "solid" - }, - "mode": "lines", - "name": "strength=6+", - "r": [ - 0.1, - 0.1, - 0.1, - 0.1, - 0.1, - 0.05, - 0.05, - 0.05, - 0.05, - 0.1, - 0.1, - 0.1, - 0.9, - 2.2, - 1.5, - 0.2, - 0.1 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW", - "N" - ], - "type": "scatterpolar", - "uid": "68114eea-fc2e-45e3-8fe2-cac651a0572d" - } - ], - "layout": { - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "polar": { - "angularaxis": { - "direction": "clockwise", - "rotation": 90 - } - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "wind = px.data.wind()\n", - "\n", - "px.line_polar(wind, r=\"value\", theta=\"direction\", color=\"strength\", line_close=True,\n", - " color_discrete_sequence=px.colors.sequential.Plotly[-2::-1])" - ] - }, - { - "cell_type": "code", - "execution_count": 49, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=0-1
value=%{r}
direction=%{theta}", - "legendgroup": "strength=0-1", - "marker": { - "color": "#febefe" - }, - "name": "strength=0-1", - "r": [ - 0.5, - 0.6, - 0.5, - 0.4, - 0.4, - 0.3, - 0.4, - 0.4, - 0.6, - 0.4, - 0.5, - 0.6, - 0.6, - 0.5, - 0.4, - 0.1 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW" - ], - "type": "barpolar", - "uid": "09c18af3-5b3e-4a0e-8118-533e4b2e4156" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=1-2
value=%{r}
direction=%{theta}", - "legendgroup": "strength=1-2", - "marker": { - "color": "#fea5fd" - }, - "name": "strength=1-2", - "r": [ - 1.6, - 1.8, - 1.5, - 1.6, - 1.6, - 1.2, - 1.5, - 1.7, - 2.2, - 2, - 2.3, - 2.4, - 2.3, - 2.6, - 2.3, - 0.8 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW" - ], - "type": "barpolar", - "uid": "db358bc7-8dd5-4129-b701-ee373db8d5d9" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=2-3
value=%{r}
direction=%{theta}", - "legendgroup": "strength=2-3", - "marker": { - "color": "#fe88fc" - }, - "name": "strength=2-3", - "r": [ - 0.9, - 1.3, - 1.6, - 0.9, - 1, - 0.6, - 0.6, - 0.9, - 1.4, - 1.7, - 1.9, - 2.2, - 1.8, - 1.7, - 1.8, - 0.8 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW" - ], - "type": "barpolar", - "uid": "0ef3902d-807f-455c-9703-c8fffb498271" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=3-4
value=%{r}
direction=%{theta}", - "legendgroup": "strength=3-4", - "marker": { - "color": "#fc67fd" - }, - "name": "strength=3-4", - "r": [ - 0.9, - 0.8, - 1.2, - 1, - 0.8, - 0.4, - 0.5, - 0.5, - 0.8, - 0.9, - 1.3, - 1.1, - 1.2, - 1.2, - 1.3, - 1 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW" - ], - "type": "barpolar", - "uid": "09811490-8417-41da-b464-94403663980d" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=4-4
value=%{r}
direction=%{theta}", - "legendgroup": "strength=4-4", - "marker": { - "color": "#f246fe" - }, - "name": "strength=4-4", - "r": [ - 0.4, - 0.5, - 1.2, - 0.5, - 0.4, - 0.2, - 0.4, - 0.4, - 0.7, - 0.6, - 0.7, - 0.8, - 0.9, - 1, - 1, - 0.7 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW" - ], - "type": "barpolar", - "uid": "32717ce2-7555-4032-bdee-e79b99ed8eec" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=4-5
value=%{r}
direction=%{theta}", - "legendgroup": "strength=4-5", - "marker": { - "color": "#dd2bfd" - }, - "name": "strength=4-5", - "r": [ - 0.3, - 0.3, - 0.6, - 0.2, - 0.1, - 0.1, - 0.05, - 0.1, - 0.1, - 0.2, - 0.3, - 0.4, - 0.9, - 0.9, - 0.9, - 0.3 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW" - ], - "type": "barpolar", - "uid": "8ba12d20-3e2f-4fa7-b82c-ea5e9b6523ef" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=5-6
value=%{r}
direction=%{theta}", - "legendgroup": "strength=5-6", - "marker": { - "color": "#bf1cfd" - }, - "name": "strength=5-6", - "r": [ - 0.2, - 0.1, - 0.1, - 0.1, - 0.1, - 0.1, - 0.05, - 0.05, - 0.1, - 0.05, - 0.2, - 0.2, - 0.4, - 0.7, - 0.7, - 0.4 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW" - ], - "type": "barpolar", - "uid": "b9d3a790-3cbb-4418-b4cd-d4205282a8fd" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "strength=6+
value=%{r}
direction=%{theta}", - "legendgroup": "strength=6+", - "marker": { - "color": "#981cfd" - }, - "name": "strength=6+", - "r": [ - 0.1, - 0.1, - 0.1, - 0.1, - 0.1, - 0.05, - 0.05, - 0.05, - 0.05, - 0.1, - 0.1, - 0.1, - 0.9, - 2.2, - 1.5, - 0.2 - ], - "showlegend": true, - "theta": [ - "N", - "NNE", - "NE", - "ENE", - "E", - "ESE", - "SE", - "SSE", - "S", - "SSW", - "SW", - "WSW", - "W", - "WNW", - "NW", - "NNW" - ], - "type": "barpolar", - "uid": "c762ee08-6dd1-4ef2-aeec-f98552e79bfa" - } - ], - "layout": { - "barmode": "relative", - "barnorm": "", - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "polar": { - "angularaxis": { - "direction": "clockwise", - "rotation": 90 - } - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "rgb(17,17,17)", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "rgb(17,17,17)", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#A2B1C6", - "gridcolor": "#506784", - "linecolor": "#506784", - "minorgridcolor": "#506784", - "startlinecolor": "#A2B1C6" - }, - "baxis": { - "endlinecolor": "#A2B1C6", - "gridcolor": "#506784", - "linecolor": "#506784", - "minorgridcolor": "#506784", - "startlinecolor": "#A2B1C6" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "line": { - "color": "#283442" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": { - "line": { - "color": "#283442" - } - }, - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#506784" - }, - "line": { - "color": "rgb(17,17,17)" - } - }, - "header": { - "fill": { - "color": "#2a3f5f" - }, - "line": { - "color": "rgb(17,17,17)" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#f2f5fa", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "font": { - "color": "#f2f5fa" - }, - "geo": { - "bgcolor": "rgb(17,17,17)", - "lakecolor": "rgb(17,17,17)", - "landcolor": "rgb(17,17,17)", - "showlakes": true, - "showland": true, - "subunitcolor": "#506784" - }, - "hoverlabel": { - "align": "left" - }, - "hovermode": "closest", - "mapbox": { - "style": "dark" - }, - "paper_bgcolor": "rgb(17,17,17)", - "plot_bgcolor": "rgb(17,17,17)", - "polar": { - "angularaxis": { - "gridcolor": "#506784", - "linecolor": "#506784", - "ticks": "" - }, - "bgcolor": "rgb(17,17,17)", - "radialaxis": { - "gridcolor": "#506784", - "linecolor": "#506784", - "ticks": "" - } - }, - "scene": { - "xaxis": { - "backgroundcolor": "rgb(17,17,17)", - "gridcolor": "#506784", - "gridwidth": 2, - "linecolor": "#506784", - "showbackground": true, - "ticks": "", - "zerolinecolor": "#C8D4E3" - }, - "yaxis": { - "backgroundcolor": "rgb(17,17,17)", - "gridcolor": "#506784", - "gridwidth": 2, - "linecolor": "#506784", - "showbackground": true, - "ticks": "", - "zerolinecolor": "#C8D4E3" - }, - "zaxis": { - "backgroundcolor": "rgb(17,17,17)", - "gridcolor": "#506784", - "gridwidth": 2, - "linecolor": "#506784", - "showbackground": true, - "ticks": "", - "zerolinecolor": "#C8D4E3" - } - }, - "shapedefaults": { - "fillcolor": "#f2f5fa", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "sliderdefaults": { - "bgcolor": "#C8D4E3", - "bordercolor": "rgb(17,17,17)", - "borderwidth": 1, - "tickwidth": 0 - }, - "ternary": { - "aaxis": { - "gridcolor": "#506784", - "linecolor": "#506784", - "ticks": "" - }, - "baxis": { - "gridcolor": "#506784", - "linecolor": "#506784", - "ticks": "" - }, - "bgcolor": "rgb(17,17,17)", - "caxis": { - "gridcolor": "#506784", - "linecolor": "#506784", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "updatemenudefaults": { - "bgcolor": "#506784", - "borderwidth": 0 - }, - "xaxis": { - "automargin": true, - "gridcolor": "#283442", - "linecolor": "#506784", - "ticks": "", - "zerolinecolor": "#283442", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "#283442", - "linecolor": "#506784", - "ticks": "", - "zerolinecolor": "#283442", - "zerolinewidth": 2 - } - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.bar_polar(wind, r=\"value\", theta=\"direction\", color=\"strength\", template=\"plotly_dark\",\n", - " color_discrete_sequence= px.colors.sequential.Plotly[-2::-1])" - ] - }, - { - "cell_type": "code", - "execution_count": 50, - "metadata": {}, - "outputs": [], - "source": [ - "# 备注:Python数据之道\n", - "# token 文件不知道在哪里,所以下面这段代码不能运行\n", - "\n", - "# carshare = px.data.carshare()\n", - "\n", - "# px.set_mapbox_access_token(open(\".mapbox_token\").read())\n", - "# px.scatter_mapbox(carshare, lat=\"centroid_lat\", lon=\"centroid_lon\", color=\"peak_hour\", size=\"car_hours\", \n", - "# color_continuous_scale=px.colors.cyclical.IceFire, size_max=15, zoom=10)" - ] - }, - { - "cell_type": "code", - "execution_count": 51, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "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 - ] - } - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=setosa
%{xaxis.title.text}=%{x}
%{yaxis.title.text}=%{y}", - "legendgroup": "species=setosa", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "name": "species=setosa", - "showlegend": true, - "type": "splom", - "uid": "bada7541-6322-41b4-8e66-b28d08306009" - }, - { - "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 - ] - } - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=versicolor
%{xaxis.title.text}=%{x}
%{yaxis.title.text}=%{y}", - "legendgroup": "species=versicolor", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "name": "species=versicolor", - "showlegend": true, - "type": "splom", - "uid": "897816ad-2f55-4509-8fde-ce99d2be1580" - }, - { - "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 - ] - } - ], - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=virginica
%{xaxis.title.text}=%{x}
%{yaxis.title.text}=%{y}", - "legendgroup": "species=virginica", - "marker": { - "color": "#00cc96", - "symbol": "circle" - }, - "name": "species=virginica", - "showlegend": true, - "type": "splom", - "uid": "f5db5af9-eedf-4ab0-8b90-102343aa8934" - } - ], - "layout": { - "dragmode": "select", - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "px.scatter_matrix(iris, dimensions=[\"sepal_width\", \"sepal_length\", \"petal_width\", \"petal_length\"], color=\"species\")" - ] - }, - { - "cell_type": "code", - "execution_count": 52, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "dimensions": [ - { - "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, - 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, - 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 - ] - }, - { - "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, - 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, - 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 - ] - }, - { - "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, - 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, - 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 - ] - }, - { - "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, - 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, - 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 - ] - }, - { - "label": "species_id", - "values": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3 - ] - } - ], - "line": { - "cmax": 3, - "cmin": 1, - "color": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 2, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3, - 3 - ], - "colorbar": { - "title": { - "text": "species_id" - } - }, - "colorscale": [ - [ - 0, - "red" - ], - [ - 0.5, - "green" - ], - [ - 1, - "blue" - ] - ], - "showscale": true - }, - "name": "", - "type": "parcoords", - "uid": "77e2f877-7df3-4dff-a2eb-67f27b9b2ece" - } - ], - "layout": { - "height": 600, - "legend": { - "tracegroupgap": 0 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "# 平行坐标的显示 跟原文一样,暂时不知道是哪个地方的差异 (备注:Python数据之道)\n", - "px.parallel_coordinates(iris, color='species_id', color_continuous_scale=['red','green', 'blue'])" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## 用 Plotly 进行调整" - ] - }, - { - "cell_type": "code", - "execution_count": 53, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.plotly.v1+json": { - "config": { - "linkText": "Export to plot.ly", - "plotlyServerURL": "https://plot.ly", - "showLink": false - }, - "data": [ - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=setosa
sepal_width=%{x}
sepal_length=%{y}", - "legendgroup": "species=setosa", - "marker": { - "color": "#636efa", - "symbol": "circle" - }, - "mode": "markers", - "name": "species=setosa", - "showlegend": true, - "type": "scatter", - "uid": "43e1fe54-b0d6-499c-914b-db32fd206dc3", - "x": [ - 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 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=versicolor
sepal_width=%{x}
sepal_length=%{y}", - "legendgroup": "species=versicolor", - "marker": { - "color": "#EF553B", - "symbol": "circle" - }, - "mode": "markers", - "name": "species=versicolor", - "showlegend": true, - "type": "scatter", - "uid": "970a4a99-598e-474e-a988-44d910c51a1b", - "x": [ - 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 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - }, - { - "hoverlabel": { - "namelength": 0 - }, - "hovertemplate": "species=virginica
sepal_width=%{x}
sepal_length=%{y}", - "legendgroup": "species=virginica", - "marker": { - "color": "#00cc96", - "symbol": "circle" - }, - "mode": "markers", - "name": "species=virginica", - "showlegend": true, - "type": "scatter", - "uid": "9f6f784e-2ad3-42a2-bc82-b7fe7d966347", - "x": [ - 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 - ], - "xaxis": "x", - "y": [ - 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 - ], - "yaxis": "y" - } - ], - "layout": { - "annotations": [ - { - "text": "this one is interesting", - "x": 3.6, - "y": 7.2 - } - ], - "grid": { - "xaxes": [ - "x" - ], - "xgap": 0.1, - "xside": "bottom", - "yaxes": [ - "y" - ], - "ygap": 0.1, - "yside": "left" - }, - "height": 600, - "legend": { - "orientation": "h", - "tracegroupgap": 0, - "x": 0.5, - "y": 1.1 - }, - "margin": { - "t": 60 - }, - "template": { - "data": { - "bar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "bar" - } - ], - "barpolar": [ - { - "marker": { - "line": { - "color": "#E5ECF6", - "width": 0.5 - } - }, - "type": "barpolar" - } - ], - "carpet": [ - { - "aaxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "baxis": { - "endlinecolor": "#2a3f5f", - "gridcolor": "white", - "linecolor": "white", - "minorgridcolor": "white", - "startlinecolor": "#2a3f5f" - }, - "type": "carpet" - } - ], - "choropleth": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "choropleth" - } - ], - "contour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "contour" - } - ], - "contourcarpet": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "contourcarpet" - } - ], - "heatmap": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "heatmap" - } - ], - "heatmapgl": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "heatmapgl" - } - ], - "histogram": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "histogram" - } - ], - "histogram2d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2d" - } - ], - "histogram2dcontour": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "colorscale": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "type": "histogram2dcontour" - } - ], - "mesh3d": [ - { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - }, - "type": "mesh3d" - } - ], - "parcoords": [ - { - "line": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "parcoords" - } - ], - "scatter": [ - { - "marker": { - "colorbar": { - "outlinewidth": 0, - "ticks": "" - } - }, - "type": "scatter" - } - ], - "scatter3d": [ - { - "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": "" - }, - "type": "surface" - } - ], - "table": [ - { - "cells": { - "fill": { - "color": "#EBF0F8" - }, - "line": { - "color": "white" - } - }, - "header": { - "fill": { - "color": "#C8D4E3" - }, - "line": { - "color": "white" - } - }, - "type": "table" - } - ] - }, - "layout": { - "annotationdefaults": { - "arrowcolor": "#506784", - "arrowhead": 0, - "arrowwidth": 1 - }, - "colorscale": { - "diverging": [ - [ - 0, - "#8e0152" - ], - [ - 0.1, - "#c51b7d" - ], - [ - 0.2, - "#de77ae" - ], - [ - 0.3, - "#f1b6da" - ], - [ - 0.4, - "#fde0ef" - ], - [ - 0.5, - "#f7f7f7" - ], - [ - 0.6, - "#e6f5d0" - ], - [ - 0.7, - "#b8e186" - ], - [ - 0.8, - "#7fbc41" - ], - [ - 0.9, - "#4d9221" - ], - [ - 1, - "#276419" - ] - ], - "sequential": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ], - "sequentialminus": [ - [ - 0, - "#0508b8" - ], - [ - 0.0893854748603352, - "#1910d8" - ], - [ - 0.1787709497206704, - "#3c19f0" - ], - [ - 0.2681564245810056, - "#6b1cfb" - ], - [ - 0.3575418994413408, - "#981cfd" - ], - [ - 0.44692737430167595, - "#bf1cfd" - ], - [ - 0.5363128491620112, - "#dd2bfd" - ], - [ - 0.6256983240223464, - "#f246fe" - ], - [ - 0.7150837988826816, - "#fc67fd" - ], - [ - 0.8044692737430168, - "#fe88fc" - ], - [ - 0.8938547486033519, - "#fea5fd" - ], - [ - 0.9832402234636871, - "#febefe" - ], - [ - 1, - "#fec3fe" - ] - ] - }, - "colorway": [ - "#636efa", - "#EF553B", - "#00cc96", - "#ab63fa", - "#19d3f3", - "#e763fa", - "#FECB52", - "#FFA15A", - "#FF6692", - "#B6E880" - ], - "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": { - "fillcolor": "#506784", - "line": { - "width": 0 - }, - "opacity": 0.4 - }, - "ternary": { - "aaxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "baxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - }, - "bgcolor": "#E5ECF6", - "caxis": { - "gridcolor": "white", - "linecolor": "white", - "ticks": "" - } - }, - "title": { - "x": 0.05 - }, - "xaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - }, - "yaxis": { - "automargin": true, - "gridcolor": "white", - "linecolor": "white", - "ticks": "", - "zerolinecolor": "white", - "zerolinewidth": 2 - } - } - }, - "xaxis": { - "title": { - "text": "sepal_width" - } - }, - "yaxis": { - "title": { - "text": "sepal_length" - } - } - } - }, - "text/html": [ - "
\n", - " \n", - " \n", - "
\n", - " \n", - "
" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "import plotly_express as px\n", - "\n", - "fig = px.scatter(px.data.iris(), x='sepal_width', y='sepal_length', color='species')\n", - "\n", - "import plotly.graph_objs as go\n", - "\n", - "fig.update(layout=dict(legend=dict(orientation='h',y=1.1,x=0.5),\n", - " annotations=[go.layout.Annotation(text='this one is interesting', x=3.6, y=7.2)]))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "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.7.3" - }, - "toc": { - "base_numbering": 1, - "nav_menu": {}, - "number_sections": true, - "sideBar": true, - "skip_h1_title": false, - "title_cell": "Table of Contents", - "title_sidebar": "Contents", - "toc_cell": true, - "toc_position": { - "height": "calc(100% - 180px)", - "left": "10px", - "top": "150px", - "width": "205px" - }, - "toc_section_display": true, - "toc_window_display": true - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} From 0e5f75f617896bca4fac12223fdeb8cddc8284b4 Mon Sep 17 00:00:00 2001 From: Li Xing Date: Wed, 28 Apr 2021 12:54:24 +0800 Subject: [PATCH 2/2] Add files via upload --- .../Plotly-Express-Introducing.ipynb | 54963 ++++++++++++++++ 1 file changed, 54963 insertions(+) create mode 100644 comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb diff --git a/comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb b/comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb new file mode 100644 index 0000000..00fda5e --- /dev/null +++ b/comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb @@ -0,0 +1,54963 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "toc": true + }, + "source": [ + "

Table of Contents

\n", + "" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Plotly Express 使用简介\n", + "\n", + "## 引入 plotly_express 库" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "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
11AfghanistanAsia200743.82831889923974.580338AFG4
23AlbaniaEurope200776.42336005235937.029526ALB8
35AlgeriaAfrica200772.301333332166223.367465DZA12
47AngolaAfrica200742.731124204764797.231267AGO24
59ArgentinaAmericas200775.3204030192712779.379640ARG32
\n", + "
" + ], + "text/plain": [ + " country continent year lifeExp pop gdpPercap iso_alpha \\\n", + "11 Afghanistan Asia 2007 43.828 31889923 974.580338 AFG \n", + "23 Albania Europe 2007 76.423 3600523 5937.029526 ALB \n", + "35 Algeria Africa 2007 72.301 33333216 6223.367465 DZA \n", + "47 Angola Africa 2007 42.731 12420476 4797.231267 AGO \n", + "59 Argentina Americas 2007 75.320 40301927 12779.379640 ARG \n", + "\n", + " iso_num \n", + "11 4 \n", + "23 8 \n", + "35 12 \n", + "47 24 \n", + "59 32 " + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import plotly_express as px\n", + "gapminder = px.data.gapminder()\n", + "gapminder2007 = gapminder.query('year == 2007')\n", + "\n", + "gapminder2007.head()" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## scatter" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + " \n", + " " + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "gdpPercap=%{x}
lifeExp=%{y}", + "legendgroup": "", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 974.5803384, + 5937.029525999999, + 6223.367465, + 4797.231267, + 12779.379640000001, + 34435.367439999995, + 36126.4927, + 29796.048339999998, + 1391.253792, + 33692.60508, + 1441.284873, + 3822.1370840000004, + 7446.298803, + 12569.851770000001, + 9065.800825, + 10680.79282, + 1217.032994, + 430.07069160000003, + 1713.7786859999999, + 2042.0952399999999, + 36319.235010000004, + 706.016537, + 1704.0637239999999, + 13171.63885, + 4959.1148539999995, + 7006.580419, + 986.1478792000001, + 277.55185869999997, + 3632.557798, + 9645.06142, + 1544.750112, + 14619.222719999998, + 8948.102923, + 22833.30851, + 35278.41874, + 2082.4815670000003, + 6025.374752000001, + 6873.262326000001, + 5581.180998, + 5728.353514, + 12154.08975, + 641.3695236000001, + 690.8055759, + 33207.0844, + 30470.0167, + 13206.48452, + 752.7497265, + 32170.37442, + 1327.60891, + 27538.41188, + 5186.050003, + 942.6542111, + 579.2317429999999, + 1201.637154, + 3548.3308460000003, + 39724.97867, + 18008.94444, + 36180.789189999996, + 2452.210407, + 3540.6515640000002, + 11605.71449, + 4471.061906, + 40675.99635, + 25523.2771, + 28569.7197, + 7320.880262000001, + 31656.06806, + 4519.461171, + 1463.249282, + 1593.06548, + 23348.139730000003, + 47306.98978, + 10461.05868, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 12451.6558, + 1042.581557, + 1803.1514960000002, + 10956.99112, + 11977.57496, + 3095.7722710000003, + 9253.896111, + 3820.17523, + 823.6856205, + 944, + 4811.060429, + 1091.359778, + 36797.93332, + 25185.00911, + 2749.320965, + 619.6768923999999, + 2013.9773050000001, + 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.0884639000001, + 1598.435089, + 21654.83194, + 1712.4721359999999, + 9786.534714, + 862.5407561000001, + 47143.179639999995, + 18678.31435, + 25768.25759, + 926.1410683, + 9269.657808, + 28821.0637, + 3970.0954070000003, + 2602.394995, + 4513.480643, + 33859.74835, + 37506.419069999996, + 4184.548089, + 28718.27684, + 1107.482182, + 7458.3963269999995, + 882.9699437999999, + 18008.50924, + 7092.923025, + 8458.276384, + 1056.3801210000001, + 33203.26128, + 42951.65309, + 10611.46299, + 11415.805690000001, + 2441.576404, + 3025.349798, + 2280.769906, + 1271.211593, + 469.70929810000007 + ], + "xaxis": "x", + "y": [ + 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.461999999999996, + 55.321999999999996, + 78.782, + 48.328, + 75.748, + 78.273, + 76.486, + 78.332, + 54.791000000000004, + 72.235, + 74.994, + 71.33800000000001, + 71.878, + 51.57899999999999, + 58.04, + 52.946999999999996, + 79.313, + 80.657, + 56.735, + 59.448, + 79.406, + 60.022, + 79.483, + 70.259, + 56.007, + 46.388000000000005, + 60.916000000000004, + 70.19800000000001, + 82.208, + 73.33800000000001, + 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.58800000000001, + 71.993, + 42.592, + 45.678000000000004, + 73.952, + 59.443000000000005, + 48.303000000000004, + 74.241, + 54.467, + 64.164, + 72.801, + 76.195, + 66.803, + 74.543, + 71.164, + 42.082, + 62.068999999999996, + 52.906000000000006, + 63.785, + 79.762, + 80.204, + 72.899, + 56.867, + 46.858999999999995, + 80.196, + 75.64, + 65.483, + 75.53699999999999, + 71.752, + 71.421, + 71.688, + 75.563, + 78.098, + 78.74600000000001, + 76.442, + 72.476, + 46.242, + 65.528, + 72.777, + 63.062, + 74.002, + 42.568000000000005, + 79.972, + 74.663, + 77.926, + 48.159, + 49.339, + 80.941, + 72.396, + 58.556000000000004, + 39.613, + 80.884, + 81.70100000000001, + 74.143, + 78.4, + 52.516999999999996, + 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.486999999999995 + ], + "yaxis": "y" + } + ], + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": "gdpPercap" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "lifeExp" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp')" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "continent=Asia
gdpPercap=%{x}
lifeExp=%{y}", + "legendgroup": "Asia", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 974.5803384, + 29796.048339999998, + 1391.253792, + 1713.7786859999999, + 4959.1148539999995, + 39724.97867, + 2452.210407, + 3540.6515640000002, + 11605.71449, + 4471.061906, + 25523.2771, + 31656.06806, + 4519.461171, + 1593.06548, + 23348.139730000003, + 47306.98978, + 10461.05868, + 12451.6558, + 3095.7722710000003, + 944, + 1091.359778, + 22316.19287, + 2605.94758, + 3190.481016, + 21654.83194, + 47143.179639999995, + 3970.0954070000003, + 4184.548089, + 28718.27684, + 7458.3963269999995, + 2441.576404, + 3025.349798, + 2280.769906 + ], + "xaxis": "x", + "y": [ + 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.58800000000001, + 71.993, + 74.241, + 66.803, + 62.068999999999996, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "continent=Europe
gdpPercap=%{x}
lifeExp=%{y}", + "legendgroup": "Europe", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5937.029525999999, + 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.789189999996, + 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.419069999996, + 8458.276384, + 33203.26128 + ], + "xaxis": "x", + "y": [ + 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.33800000000001, + 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.70100000000001, + 71.777, + 79.425 + ], + "yaxis": "y" + }, + { + "hovertemplate": "continent=Africa
gdpPercap=%{x}
lifeExp=%{y}", + "legendgroup": "Africa", + "marker": { + "color": "#00cc96", + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 6223.367465, + 4797.231267, + 1441.284873, + 12569.851770000001, + 1217.032994, + 430.07069160000003, + 2042.0952399999999, + 706.016537, + 1704.0637239999999, + 986.1478792000001, + 277.55185869999997, + 3632.557798, + 1544.750112, + 2082.4815670000003, + 5581.180998, + 12154.08975, + 641.3695236000001, + 690.8055759, + 13206.48452, + 752.7497265, + 1327.60891, + 942.6542111, + 579.2317429999999, + 1463.249282, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 1042.581557, + 1803.1514960000002, + 10956.99112, + 3820.17523, + 823.6856205, + 4811.060429, + 619.6768923999999, + 2013.9773050000001, + 7670.122558, + 863.0884639000001, + 1598.435089, + 1712.4721359999999, + 862.5407561000001, + 926.1410683, + 9269.657808, + 2602.394995, + 4513.480643, + 1107.482182, + 882.9699437999999, + 7092.923025, + 1056.3801210000001, + 1271.211593, + 469.70929810000007 + ], + "xaxis": "x", + "y": [ + 72.301, + 42.731, + 56.728, + 50.728, + 52.295, + 49.58, + 50.43, + 44.74100000000001, + 50.651, + 65.152, + 46.461999999999996, + 55.321999999999996, + 48.328, + 54.791000000000004, + 71.33800000000001, + 51.57899999999999, + 58.04, + 52.946999999999996, + 56.735, + 59.448, + 60.022, + 56.007, + 46.388000000000005, + 54.11, + 42.592, + 45.678000000000004, + 73.952, + 59.443000000000005, + 48.303000000000004, + 54.467, + 64.164, + 72.801, + 71.164, + 42.082, + 52.906000000000006, + 56.867, + 46.858999999999995, + 76.442, + 46.242, + 65.528, + 63.062, + 42.568000000000005, + 48.159, + 49.339, + 58.556000000000004, + 39.613, + 52.516999999999996, + 58.42, + 73.923, + 51.542, + 42.38399999999999, + 43.486999999999995 + ], + "yaxis": "y" + }, + { + "hovertemplate": "continent=Americas
gdpPercap=%{x}
lifeExp=%{y}", + "legendgroup": "Americas", + "marker": { + "color": "#ab63fa", + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 12779.379640000001, + 3822.1370840000004, + 9065.800825, + 36319.235010000004, + 13171.63885, + 7006.580419, + 9645.06142, + 8948.102923, + 6025.374752000001, + 6873.262326000001, + 5728.353514, + 5186.050003, + 1201.637154, + 3548.3308460000003, + 7320.880262000001, + 11977.57496, + 2749.320965, + 9809.185636, + 4172.838464, + 7408.905561, + 19328.70901, + 18008.50924, + 42951.65309, + 10611.46299, + 11415.805690000001 + ], + "xaxis": "x", + "y": [ + 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.916000000000004, + 70.19800000000001, + 72.567, + 76.195, + 72.899, + 75.53699999999999, + 71.752, + 71.421, + 78.74600000000001, + 69.819, + 78.242, + 76.384, + 73.747 + ], + "yaxis": "y" + }, + { + "hovertemplate": "continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}", + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 34435.367439999995, + 25185.00911 + ], + "xaxis": "x", + "y": [ + 81.235, + 80.204 + ], + "yaxis": "y" + } + ], + "layout": { + "legend": { + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": "gdpPercap" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "lifeExp" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# 添加 color 参数, 以各个大洲区分不同颜色\n", + "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', color='continent')" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "continent=Asia
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", + "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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 974.5803384, + 29796.048339999998, + 1391.253792, + 1713.7786859999999, + 4959.1148539999995, + 39724.97867, + 2452.210407, + 3540.6515640000002, + 11605.71449, + 4471.061906, + 25523.2771, + 31656.06806, + 4519.461171, + 1593.06548, + 23348.139730000003, + 47306.98978, + 10461.05868, + 12451.6558, + 3095.7722710000003, + 944, + 1091.359778, + 22316.19287, + 2605.94758, + 3190.481016, + 21654.83194, + 47143.179639999995, + 3970.0954070000003, + 4184.548089, + 28718.27684, + 7458.3963269999995, + 2441.576404, + 3025.349798, + 2280.769906 + ], + "xaxis": "x", + "y": [ + 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.58800000000001, + 71.993, + 74.241, + 66.803, + 62.068999999999996, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "continent=Europe
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", + "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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5937.029525999999, + 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.789189999996, + 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.419069999996, + 8458.276384, + 33203.26128 + ], + "xaxis": "x", + "y": [ + 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.33800000000001, + 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.70100000000001, + 71.777, + 79.425 + ], + "yaxis": "y" + }, + { + "hovertemplate": "continent=Africa
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", + "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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 6223.367465, + 4797.231267, + 1441.284873, + 12569.851770000001, + 1217.032994, + 430.07069160000003, + 2042.0952399999999, + 706.016537, + 1704.0637239999999, + 986.1478792000001, + 277.55185869999997, + 3632.557798, + 1544.750112, + 2082.4815670000003, + 5581.180998, + 12154.08975, + 641.3695236000001, + 690.8055759, + 13206.48452, + 752.7497265, + 1327.60891, + 942.6542111, + 579.2317429999999, + 1463.249282, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 1042.581557, + 1803.1514960000002, + 10956.99112, + 3820.17523, + 823.6856205, + 4811.060429, + 619.6768923999999, + 2013.9773050000001, + 7670.122558, + 863.0884639000001, + 1598.435089, + 1712.4721359999999, + 862.5407561000001, + 926.1410683, + 9269.657808, + 2602.394995, + 4513.480643, + 1107.482182, + 882.9699437999999, + 7092.923025, + 1056.3801210000001, + 1271.211593, + 469.70929810000007 + ], + "xaxis": "x", + "y": [ + 72.301, + 42.731, + 56.728, + 50.728, + 52.295, + 49.58, + 50.43, + 44.74100000000001, + 50.651, + 65.152, + 46.461999999999996, + 55.321999999999996, + 48.328, + 54.791000000000004, + 71.33800000000001, + 51.57899999999999, + 58.04, + 52.946999999999996, + 56.735, + 59.448, + 60.022, + 56.007, + 46.388000000000005, + 54.11, + 42.592, + 45.678000000000004, + 73.952, + 59.443000000000005, + 48.303000000000004, + 54.467, + 64.164, + 72.801, + 71.164, + 42.082, + 52.906000000000006, + 56.867, + 46.858999999999995, + 76.442, + 46.242, + 65.528, + 63.062, + 42.568000000000005, + 48.159, + 49.339, + 58.556000000000004, + 39.613, + 52.516999999999996, + 58.42, + 73.923, + 51.542, + 42.38399999999999, + 43.486999999999995 + ], + "yaxis": "y" + }, + { + "hovertemplate": "continent=Americas
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", + "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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 12779.379640000001, + 3822.1370840000004, + 9065.800825, + 36319.235010000004, + 13171.63885, + 7006.580419, + 9645.06142, + 8948.102923, + 6025.374752000001, + 6873.262326000001, + 5728.353514, + 5186.050003, + 1201.637154, + 3548.3308460000003, + 7320.880262000001, + 11977.57496, + 2749.320965, + 9809.185636, + 4172.838464, + 7408.905561, + 19328.70901, + 18008.50924, + 42951.65309, + 10611.46299, + 11415.805690000001 + ], + "xaxis": "x", + "y": [ + 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.916000000000004, + 70.19800000000001, + 72.567, + 76.195, + 72.899, + 75.53699999999999, + 71.752, + 71.421, + 78.74600000000001, + 69.819, + 78.242, + 76.384, + 73.747 + ], + "yaxis": "y" + }, + { + "hovertemplate": "continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 20434176, + 4115771 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 34435.367439999995, + 25185.00911 + ], + "xaxis": "x", + "y": [ + 81.235, + 80.204 + ], + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": "gdpPercap" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "lifeExp" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# 添加 size 参数, 用 “人口”来区分\n", + "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', \n", + " color='continent', size='pop', size_max=60)" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 974.5803384, + 29796.048339999998, + 1391.253792, + 1713.7786859999999, + 4959.1148539999995, + 39724.97867, + 2452.210407, + 3540.6515640000002, + 11605.71449, + 4471.061906, + 25523.2771, + 31656.06806, + 4519.461171, + 1593.06548, + 23348.139730000003, + 47306.98978, + 10461.05868, + 12451.6558, + 3095.7722710000003, + 944, + 1091.359778, + 22316.19287, + 2605.94758, + 3190.481016, + 21654.83194, + 47143.179639999995, + 3970.0954070000003, + 4184.548089, + 28718.27684, + 7458.3963269999995, + 2441.576404, + 3025.349798, + 2280.769906 + ], + "xaxis": "x", + "y": [ + 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.58800000000001, + 71.993, + 74.241, + 66.803, + 62.068999999999996, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5937.029525999999, + 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.789189999996, + 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.419069999996, + 8458.276384, + 33203.26128 + ], + "xaxis": "x", + "y": [ + 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.33800000000001, + 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.70100000000001, + 71.777, + 79.425 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 6223.367465, + 4797.231267, + 1441.284873, + 12569.851770000001, + 1217.032994, + 430.07069160000003, + 2042.0952399999999, + 706.016537, + 1704.0637239999999, + 986.1478792000001, + 277.55185869999997, + 3632.557798, + 1544.750112, + 2082.4815670000003, + 5581.180998, + 12154.08975, + 641.3695236000001, + 690.8055759, + 13206.48452, + 752.7497265, + 1327.60891, + 942.6542111, + 579.2317429999999, + 1463.249282, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 1042.581557, + 1803.1514960000002, + 10956.99112, + 3820.17523, + 823.6856205, + 4811.060429, + 619.6768923999999, + 2013.9773050000001, + 7670.122558, + 863.0884639000001, + 1598.435089, + 1712.4721359999999, + 862.5407561000001, + 926.1410683, + 9269.657808, + 2602.394995, + 4513.480643, + 1107.482182, + 882.9699437999999, + 7092.923025, + 1056.3801210000001, + 1271.211593, + 469.70929810000007 + ], + "xaxis": "x", + "y": [ + 72.301, + 42.731, + 56.728, + 50.728, + 52.295, + 49.58, + 50.43, + 44.74100000000001, + 50.651, + 65.152, + 46.461999999999996, + 55.321999999999996, + 48.328, + 54.791000000000004, + 71.33800000000001, + 51.57899999999999, + 58.04, + 52.946999999999996, + 56.735, + 59.448, + 60.022, + 56.007, + 46.388000000000005, + 54.11, + 42.592, + 45.678000000000004, + 73.952, + 59.443000000000005, + 48.303000000000004, + 54.467, + 64.164, + 72.801, + 71.164, + 42.082, + 52.906000000000006, + 56.867, + 46.858999999999995, + 76.442, + 46.242, + 65.528, + 63.062, + 42.568000000000005, + 48.159, + 49.339, + 58.556000000000004, + 39.613, + 52.516999999999996, + 58.42, + 73.923, + 51.542, + 42.38399999999999, + 43.486999999999995 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 12779.379640000001, + 3822.1370840000004, + 9065.800825, + 36319.235010000004, + 13171.63885, + 7006.580419, + 9645.06142, + 8948.102923, + 6025.374752000001, + 6873.262326000001, + 5728.353514, + 5186.050003, + 1201.637154, + 3548.3308460000003, + 7320.880262000001, + 11977.57496, + 2749.320965, + 9809.185636, + 4172.838464, + 7408.905561, + 19328.70901, + 18008.50924, + 42951.65309, + 10611.46299, + 11415.805690000001 + ], + "xaxis": "x", + "y": [ + 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.916000000000004, + 70.19800000000001, + 72.567, + 76.195, + 72.899, + 75.53699999999999, + 71.752, + 71.421, + 78.74600000000001, + 69.819, + 78.242, + 76.384, + 73.747 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 20434176, + 4115771 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 34435.367439999995, + 25185.00911 + ], + "xaxis": "x", + "y": [ + 81.235, + 80.204 + ], + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": "gdpPercap" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "lifeExp" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', \n", + " color='continent', size='pop', \n", + " size_max=60, hover_name='country')" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 974.5803384, + 29796.048339999998, + 1391.253792, + 1713.7786859999999, + 4959.1148539999995, + 39724.97867, + 2452.210407, + 3540.6515640000002, + 11605.71449, + 4471.061906, + 25523.2771, + 31656.06806, + 4519.461171, + 1593.06548, + 23348.139730000003, + 47306.98978, + 10461.05868, + 12451.6558, + 3095.7722710000003, + 944, + 1091.359778, + 22316.19287, + 2605.94758, + 3190.481016, + 21654.83194, + 47143.179639999995, + 3970.0954070000003, + 4184.548089, + 28718.27684, + 7458.3963269999995, + 2441.576404, + 3025.349798, + 2280.769906 + ], + "xaxis": "x", + "y": [ + 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.58800000000001, + 71.993, + 74.241, + 66.803, + 62.068999999999996, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5937.029525999999, + 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.789189999996, + 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.419069999996, + 8458.276384, + 33203.26128 + ], + "xaxis": "x2", + "y": [ + 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.33800000000001, + 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.70100000000001, + 71.777, + 79.425 + ], + "yaxis": "y2" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 6223.367465, + 4797.231267, + 1441.284873, + 12569.851770000001, + 1217.032994, + 430.07069160000003, + 2042.0952399999999, + 706.016537, + 1704.0637239999999, + 986.1478792000001, + 277.55185869999997, + 3632.557798, + 1544.750112, + 2082.4815670000003, + 5581.180998, + 12154.08975, + 641.3695236000001, + 690.8055759, + 13206.48452, + 752.7497265, + 1327.60891, + 942.6542111, + 579.2317429999999, + 1463.249282, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 1042.581557, + 1803.1514960000002, + 10956.99112, + 3820.17523, + 823.6856205, + 4811.060429, + 619.6768923999999, + 2013.9773050000001, + 7670.122558, + 863.0884639000001, + 1598.435089, + 1712.4721359999999, + 862.5407561000001, + 926.1410683, + 9269.657808, + 2602.394995, + 4513.480643, + 1107.482182, + 882.9699437999999, + 7092.923025, + 1056.3801210000001, + 1271.211593, + 469.70929810000007 + ], + "xaxis": "x3", + "y": [ + 72.301, + 42.731, + 56.728, + 50.728, + 52.295, + 49.58, + 50.43, + 44.74100000000001, + 50.651, + 65.152, + 46.461999999999996, + 55.321999999999996, + 48.328, + 54.791000000000004, + 71.33800000000001, + 51.57899999999999, + 58.04, + 52.946999999999996, + 56.735, + 59.448, + 60.022, + 56.007, + 46.388000000000005, + 54.11, + 42.592, + 45.678000000000004, + 73.952, + 59.443000000000005, + 48.303000000000004, + 54.467, + 64.164, + 72.801, + 71.164, + 42.082, + 52.906000000000006, + 56.867, + 46.858999999999995, + 76.442, + 46.242, + 65.528, + 63.062, + 42.568000000000005, + 48.159, + 49.339, + 58.556000000000004, + 39.613, + 52.516999999999996, + 58.42, + 73.923, + 51.542, + 42.38399999999999, + 43.486999999999995 + ], + "yaxis": "y3" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 12779.379640000001, + 3822.1370840000004, + 9065.800825, + 36319.235010000004, + 13171.63885, + 7006.580419, + 9645.06142, + 8948.102923, + 6025.374752000001, + 6873.262326000001, + 5728.353514, + 5186.050003, + 1201.637154, + 3548.3308460000003, + 7320.880262000001, + 11977.57496, + 2749.320965, + 9809.185636, + 4172.838464, + 7408.905561, + 19328.70901, + 18008.50924, + 42951.65309, + 10611.46299, + 11415.805690000001 + ], + "xaxis": "x4", + "y": [ + 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.916000000000004, + 70.19800000000001, + 72.567, + 76.195, + 72.899, + 75.53699999999999, + 71.752, + 71.421, + 78.74600000000001, + 69.819, + 78.242, + 76.384, + 73.747 + ], + "yaxis": "y4" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 20434176, + 4115771 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 34435.367439999995, + 25185.00911 + ], + "xaxis": "x5", + "y": [ + 81.235, + 80.204 + ], + "yaxis": "y5" + } + ], + "layout": { + "annotations": [ + { + "font": {}, + "showarrow": false, + "text": "continent=Asia", + "x": 0.09200000000000001, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "continent=Europe", + "x": 0.29600000000000004, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "continent=Africa", + "x": 0.5, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "continent=Americas", + "x": 0.7040000000000002, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "continent=Oceania", + "x": 0.908, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + } + ], + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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, + 0.18400000000000002 + ], + "title": { + "text": "gdpPercap" + } + }, + "xaxis2": { + "anchor": "y2", + "domain": [ + 0.20400000000000001, + 0.388 + ], + "matches": "x", + "title": { + "text": "gdpPercap" + } + }, + "xaxis3": { + "anchor": "y3", + "domain": [ + 0.40800000000000003, + 0.5920000000000001 + ], + "matches": "x", + "title": { + "text": "gdpPercap" + } + }, + "xaxis4": { + "anchor": "y4", + "domain": [ + 0.6120000000000001, + 0.7960000000000002 + ], + "matches": "x", + "title": { + "text": "gdpPercap" + } + }, + "xaxis5": { + "anchor": "y5", + "domain": [ + 0.8160000000000001, + 1 + ], + "matches": "x", + "title": { + "text": "gdpPercap" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "lifeExp" + } + }, + "yaxis2": { + "anchor": "x2", + "domain": [ + 0, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis3": { + "anchor": "x3", + "domain": [ + 0, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis4": { + "anchor": "x4", + "domain": [ + 0, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis5": { + "anchor": "x5", + "domain": [ + 0, + 1 + ], + "matches": "y", + "showticklabels": false + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# 添加 facet_col 参数\n", + "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', \n", + " color='continent', size='pop', \n", + " size_max=60, hover_name='country',\n", + " facet_col='continent')" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 974.5803384, + 29796.048339999998, + 1391.253792, + 1713.7786859999999, + 4959.1148539999995, + 39724.97867, + 2452.210407, + 3540.6515640000002, + 11605.71449, + 4471.061906, + 25523.2771, + 31656.06806, + 4519.461171, + 1593.06548, + 23348.139730000003, + 47306.98978, + 10461.05868, + 12451.6558, + 3095.7722710000003, + 944, + 1091.359778, + 22316.19287, + 2605.94758, + 3190.481016, + 21654.83194, + 47143.179639999995, + 3970.0954070000003, + 4184.548089, + 28718.27684, + 7458.3963269999995, + 2441.576404, + 3025.349798, + 2280.769906 + ], + "xaxis": "x", + "y": [ + 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.58800000000001, + 71.993, + 74.241, + 66.803, + 62.068999999999996, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5937.029525999999, + 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.789189999996, + 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.419069999996, + 8458.276384, + 33203.26128 + ], + "xaxis": "x2", + "y": [ + 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.33800000000001, + 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.70100000000001, + 71.777, + 79.425 + ], + "yaxis": "y2" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 6223.367465, + 4797.231267, + 1441.284873, + 12569.851770000001, + 1217.032994, + 430.07069160000003, + 2042.0952399999999, + 706.016537, + 1704.0637239999999, + 986.1478792000001, + 277.55185869999997, + 3632.557798, + 1544.750112, + 2082.4815670000003, + 5581.180998, + 12154.08975, + 641.3695236000001, + 690.8055759, + 13206.48452, + 752.7497265, + 1327.60891, + 942.6542111, + 579.2317429999999, + 1463.249282, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 1042.581557, + 1803.1514960000002, + 10956.99112, + 3820.17523, + 823.6856205, + 4811.060429, + 619.6768923999999, + 2013.9773050000001, + 7670.122558, + 863.0884639000001, + 1598.435089, + 1712.4721359999999, + 862.5407561000001, + 926.1410683, + 9269.657808, + 2602.394995, + 4513.480643, + 1107.482182, + 882.9699437999999, + 7092.923025, + 1056.3801210000001, + 1271.211593, + 469.70929810000007 + ], + "xaxis": "x3", + "y": [ + 72.301, + 42.731, + 56.728, + 50.728, + 52.295, + 49.58, + 50.43, + 44.74100000000001, + 50.651, + 65.152, + 46.461999999999996, + 55.321999999999996, + 48.328, + 54.791000000000004, + 71.33800000000001, + 51.57899999999999, + 58.04, + 52.946999999999996, + 56.735, + 59.448, + 60.022, + 56.007, + 46.388000000000005, + 54.11, + 42.592, + 45.678000000000004, + 73.952, + 59.443000000000005, + 48.303000000000004, + 54.467, + 64.164, + 72.801, + 71.164, + 42.082, + 52.906000000000006, + 56.867, + 46.858999999999995, + 76.442, + 46.242, + 65.528, + 63.062, + 42.568000000000005, + 48.159, + 49.339, + 58.556000000000004, + 39.613, + 52.516999999999996, + 58.42, + 73.923, + 51.542, + 42.38399999999999, + 43.486999999999995 + ], + "yaxis": "y3" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
gdpPercap=%{x}
lifeExp=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 12779.379640000001, + 3822.1370840000004, + 9065.800825, + 36319.235010000004, + 13171.63885, + 7006.580419, + 9645.06142, + 8948.102923, + 6025.374752000001, + 6873.262326000001, + 5728.353514, + 5186.050003, + 1201.637154, + 3548.3308460000003, + 7320.880262000001, + 11977.57496, + 2749.320965, + 9809.185636, + 4172.838464, + 7408.905561, + 19328.70901, + 18008.50924, + 42951.65309, + 10611.46299, + 11415.805690000001 + ], + "xaxis": "x4", + "y": [ + 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.916000000000004, + 70.19800000000001, + 72.567, + 76.195, + 72.899, + 75.53699999999999, + 71.752, + 71.421, + 78.74600000000001, + 69.819, + 78.242, + 76.384, + 73.747 + ], + "yaxis": "y4" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 20434176, + 4115771 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 34435.367439999995, + 25185.00911 + ], + "xaxis": "x5", + "y": [ + 81.235, + 80.204 + ], + "yaxis": "y5" + } + ], + "layout": { + "annotations": [ + { + "font": {}, + "showarrow": false, + "text": "continent=Asia", + "x": 0.09200000000000001, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "continent=Europe", + "x": 0.29600000000000004, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "continent=Africa", + "x": 0.5, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "continent=Americas", + "x": 0.7040000000000002, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "continent=Oceania", + "x": 0.908, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + } + ], + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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, + 0.18400000000000002 + ], + "title": { + "text": "gdpPercap" + }, + "type": "log" + }, + "xaxis2": { + "anchor": "y2", + "domain": [ + 0.20400000000000001, + 0.388 + ], + "matches": "x", + "title": { + "text": "gdpPercap" + }, + "type": "log" + }, + "xaxis3": { + "anchor": "y3", + "domain": [ + 0.40800000000000003, + 0.5920000000000001 + ], + "matches": "x", + "title": { + "text": "gdpPercap" + }, + "type": "log" + }, + "xaxis4": { + "anchor": "y4", + "domain": [ + 0.6120000000000001, + 0.7960000000000002 + ], + "matches": "x", + "title": { + "text": "gdpPercap" + }, + "type": "log" + }, + "xaxis5": { + "anchor": "y5", + "domain": [ + 0.8160000000000001, + 1 + ], + "matches": "x", + "title": { + "text": "gdpPercap" + }, + "type": "log" + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "lifeExp" + } + }, + "yaxis2": { + "anchor": "x2", + "domain": [ + 0, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis3": { + "anchor": "x3", + "domain": [ + 0, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis4": { + "anchor": "x4", + "domain": [ + 0, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis5": { + "anchor": "x5", + "domain": [ + 0, + 1 + ], + "matches": "y", + "showticklabels": false + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# 添加 facet_col 参数 和 log_x 参数\n", + "px.scatter(gapminder2007, x='gdpPercap', y='lifeExp', \n", + " color='continent', size='pop', \n", + " size_max=60, hover_name='country',\n", + " facet_col='continent', log_x=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 779.4453145, + 9867.084765000001, + 684.2441716, + 368.46928560000003, + 400.44861099999997, + 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.8657228999999, + 1828.230307, + 684.5971437999999, + 1272.880995, + 6459.5548229999995, + 2315.138227, + 1083.53203, + 1643.485354, + 1206.947913, + 757.7974177, + 605.0664917, + 1515.5923289999998, + 781.7175761 + ], + "xaxis": "x", + "y": [ + 28.801, + 50.93899999999999, + 37.484, + 39.417, + 44, + 60.96, + 37.373000000000005, + 37.468, + 44.869, + 45.32, + 65.39, + 63.03, + 43.158, + 50.056000000000004, + 47.453, + 55.565, + 55.928000000000004, + 48.463, + 42.244, + 36.319, + 36.157, + 37.578, + 43.43600000000001, + 47.751999999999995, + 39.875, + 60.396, + 57.593, + 45.883, + 58.5, + 50.848, + 40.412, + 43.16, + 32.548 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 1601.056136, + 6137.076492, + 8343.105126999999, + 973.5331947999999, + 2444.2866480000002, + 3119.23652, + 6876.14025, + 9692.385245, + 6424.519071, + 7029.809327, + 7144.114393000001, + 3530.690067, + 5263.6738159999995, + 7267.688428, + 5210.280328, + 4931.404154999999, + 2647.585601, + 8941.571858, + 10095.42172, + 4029.3296990000003, + 3068.319867, + 3144.613186, + 3581.4594479999996, + 5074.659104, + 4215.041741, + 3834.0347420000003, + 8527.844662000001, + 14734.23275, + 1969.1009800000002, + 9979.508487000001 + ], + "xaxis": "x", + "y": [ + 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.163999999999994, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 2449.008185, + 3520.610273, + 1062.7522, + 851.2411407, + 543.2552413, + 339.29645869999996, + 1172.667655, + 1071.310713, + 1178.665927, + 1102.990936, + 780.5423257, + 2125.621418, + 1388.594732, + 2669.529475, + 1418.822445, + 375.6431231, + 328.94055710000004, + 362.1462796, + 4293.476475, + 485.2306591, + 911.2989371, + 510.19649230000005, + 299.850319, + 853.5409189999999, + 298.8462121, + 575.5729961000001, + 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.32387520000003, + 879.5835855, + 1450.356983, + 879.7877358, + 1135.749842, + 4725.295531000001, + 1615.991129, + 1148.376626, + 716.6500721, + 859.8086567, + 1468.475631, + 734.753484, + 1147.388831, + 406.8841148 + ], + "xaxis": "x", + "y": [ + 43.077, + 30.015, + 38.223, + 47.622, + 31.975, + 39.031, + 38.523, + 35.463, + 38.092, + 40.715, + 39.143, + 42.111000000000004, + 40.477, + 34.812, + 41.893, + 34.482, + 35.928000000000004, + 34.078, + 37.003, + 30, + 43.148999999999994, + 33.609, + 32.5, + 42.27, + 42.138000000000005, + 38.48, + 42.723, + 36.681, + 36.256, + 33.685, + 40.543, + 50.986000000000004, + 42.873000000000005, + 31.285999999999998, + 41.725, + 37.444, + 36.324, + 52.724, + 40, + 46.471000000000004, + 37.278, + 30.331, + 32.978, + 45.00899999999999, + 38.635, + 41.407, + 41.215, + 38.596, + 44.6, + 39.978, + 42.038000000000004, + 48.451 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5911.315053, + 2677.3263469999997, + 2108.944355, + 11367.16112, + 3939.9787890000002, + 2144.115096, + 2627.0094710000003, + 5586.53878, + 1397.7171369999999, + 3522.110717, + 3048.3029, + 2428.2377690000003, + 1840.366939, + 2194.926204, + 2898.5308809999997, + 3478.125529, + 3112.363948, + 2480.380334, + 1952.3087010000002, + 3758.523437, + 3081.959785, + 3023.271928, + 13990.482080000002, + 5716.766744, + 7689.799761 + ], + "xaxis": "x", + "y": [ + 62.485, + 40.414, + 50.917, + 68.75, + 54.745, + 50.643, + 57.206, + 59.42100000000001, + 45.928000000000004, + 48.357, + 45.262, + 42.023, + 37.579, + 41.912, + 58.53, + 50.788999999999994, + 42.31399999999999, + 55.191, + 62.648999999999994, + 43.902, + 64.28, + 59.1, + 68.44, + 66.071, + 55.088 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 8691212, + 1994794 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 10039.595640000001, + 10556.575659999999 + ], + "xaxis": "x", + "y": [ + 69.12, + 69.39 + ], + "yaxis": "y" + } + ], + "frames": [ + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 779.4453145, + 9867.084765000001, + 684.2441716, + 368.46928560000003, + 400.44861099999997, + 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.8657228999999, + 1828.230307, + 684.5971437999999, + 1272.880995, + 6459.5548229999995, + 2315.138227, + 1083.53203, + 1643.485354, + 1206.947913, + 757.7974177, + 605.0664917, + 1515.5923289999998, + 781.7175761 + ], + "xaxis": "x", + "y": [ + 28.801, + 50.93899999999999, + 37.484, + 39.417, + 44, + 60.96, + 37.373000000000005, + 37.468, + 44.869, + 45.32, + 65.39, + 63.03, + 43.158, + 50.056000000000004, + 47.453, + 55.565, + 55.928000000000004, + 48.463, + 42.244, + 36.319, + 36.157, + 37.578, + 43.43600000000001, + 47.751999999999995, + 39.875, + 60.396, + 57.593, + 45.883, + 58.5, + 50.848, + 40.412, + 43.16, + 32.548 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 1601.056136, + 6137.076492, + 8343.105126999999, + 973.5331947999999, + 2444.2866480000002, + 3119.23652, + 6876.14025, + 9692.385245, + 6424.519071, + 7029.809327, + 7144.114393000001, + 3530.690067, + 5263.6738159999995, + 7267.688428, + 5210.280328, + 4931.404154999999, + 2647.585601, + 8941.571858, + 10095.42172, + 4029.3296990000003, + 3068.319867, + 3144.613186, + 3581.4594479999996, + 5074.659104, + 4215.041741, + 3834.0347420000003, + 8527.844662000001, + 14734.23275, + 1969.1009800000002, + 9979.508487000001 + ], + "xaxis": "x", + "y": [ + 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.163999999999994, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 2449.008185, + 3520.610273, + 1062.7522, + 851.2411407, + 543.2552413, + 339.29645869999996, + 1172.667655, + 1071.310713, + 1178.665927, + 1102.990936, + 780.5423257, + 2125.621418, + 1388.594732, + 2669.529475, + 1418.822445, + 375.6431231, + 328.94055710000004, + 362.1462796, + 4293.476475, + 485.2306591, + 911.2989371, + 510.19649230000005, + 299.850319, + 853.5409189999999, + 298.8462121, + 575.5729961000001, + 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.32387520000003, + 879.5835855, + 1450.356983, + 879.7877358, + 1135.749842, + 4725.295531000001, + 1615.991129, + 1148.376626, + 716.6500721, + 859.8086567, + 1468.475631, + 734.753484, + 1147.388831, + 406.8841148 + ], + "xaxis": "x", + "y": [ + 43.077, + 30.015, + 38.223, + 47.622, + 31.975, + 39.031, + 38.523, + 35.463, + 38.092, + 40.715, + 39.143, + 42.111000000000004, + 40.477, + 34.812, + 41.893, + 34.482, + 35.928000000000004, + 34.078, + 37.003, + 30, + 43.148999999999994, + 33.609, + 32.5, + 42.27, + 42.138000000000005, + 38.48, + 42.723, + 36.681, + 36.256, + 33.685, + 40.543, + 50.986000000000004, + 42.873000000000005, + 31.285999999999998, + 41.725, + 37.444, + 36.324, + 52.724, + 40, + 46.471000000000004, + 37.278, + 30.331, + 32.978, + 45.00899999999999, + 38.635, + 41.407, + 41.215, + 38.596, + 44.6, + 39.978, + 42.038000000000004, + 48.451 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5911.315053, + 2677.3263469999997, + 2108.944355, + 11367.16112, + 3939.9787890000002, + 2144.115096, + 2627.0094710000003, + 5586.53878, + 1397.7171369999999, + 3522.110717, + 3048.3029, + 2428.2377690000003, + 1840.366939, + 2194.926204, + 2898.5308809999997, + 3478.125529, + 3112.363948, + 2480.380334, + 1952.3087010000002, + 3758.523437, + 3081.959785, + 3023.271928, + 13990.482080000002, + 5716.766744, + 7689.799761 + ], + "xaxis": "x", + "y": [ + 62.485, + 40.414, + 50.917, + 68.75, + 54.745, + 50.643, + 57.206, + 59.42100000000001, + 45.928000000000004, + 48.357, + 45.262, + 42.023, + 37.579, + 41.912, + 58.53, + 50.788999999999994, + 42.31399999999999, + 55.191, + 62.648999999999994, + 43.902, + 64.28, + 59.1, + 68.44, + 66.071, + 55.088 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1952
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 8691212, + 1994794 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 10039.595640000001, + 10556.575659999999 + ], + "xaxis": "x", + "y": [ + 69.12, + 69.39 + ], + "yaxis": "y" + } + ], + "name": "1952" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1957
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 820.8530296, + 11635.79945, + 661.6374577, + 434.0383364, + 575.9870009, + 3629.076457, + 590.061996, + 858.9002707000001, + 3290.257643, + 6229.333562, + 5385.278451, + 4317.694365, + 1886.080591, + 1571.134655, + 1487.593537, + 113523.1329, + 6089.786934000001, + 1810.0669920000003, + 912.6626085, + 350, + 597.9363557999999, + 2242.746551, + 747.0835292, + 1547.9448439999999, + 8157.591248000001, + 2843.104409, + 1072.546602, + 2117.234893, + 1507.86129, + 793.5774147999999, + 676.2854477999999, + 1827.0677420000002, + 804.8304547 + ], + "xaxis": "x", + "y": [ + 30.331999999999997, + 53.832, + 39.348, + 41.36600000000001, + 50.54896, + 64.75, + 40.249, + 39.918, + 47.181000000000004, + 48.437, + 67.84, + 65.5, + 45.669, + 54.081, + 52.681000000000004, + 58.033, + 59.489, + 52.102, + 45.248000000000005, + 41.905, + 37.686, + 40.08, + 45.556999999999995, + 51.333999999999996, + 42.868, + 63.178999999999995, + 61.456, + 48.284, + 62.4, + 53.63, + 42.887, + 45.67100000000001, + 33.97 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1957
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 1942.2842440000002, + 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.193440000001, + 11653.97304, + 4734.253019, + 3774.571743, + 3943.370225, + 4981.090891, + 6093.2629799999995, + 5862.276629, + 4564.80241, + 9911.878226, + 17909.48973, + 2218.754257, + 11283.17795 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1957
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 3013.976023, + 3827.9404649999997, + 959.6010805, + 918.2325348999999, + 617.1834647999999, + 379.56462810000005, + 1313.048099, + 1190.844328, + 1308.495577, + 1211.1485480000001, + 905.8602302999999, + 2315.056572, + 1500.895925, + 2864.9690760000003, + 1458.915272, + 426.0964081, + 344.16188589999996, + 378.90416319999997, + 4976.198099, + 520.9267111, + 1043.5615369999998, + 576.2670245, + 431.7904566000001, + 944.4383152, + 335.99711510000003, + 620.9699901, + 3448.284395, + 1589.20275, + 416.36980639999996, + 490.3821867, + 846.1202613, + 2034.037981, + 1642.002314, + 495.5868333000001, + 2621.448058, + 835.5234025000001, + 1100.5925630000002, + 2769.451844, + 540.2893982999999, + 860.7369026, + 1567.653006, + 1004.484437, + 1258.1474130000001, + 5487.104219, + 1770.3370739999998, + 1244.708364, + 698.5356073, + 925.9083201999999, + 1395.232468, + 774.3710692000001, + 1311.956766, + 518.7642681 + ], + "xaxis": "x", + "y": [ + 45.685, + 31.999000000000002, + 40.358000000000004, + 49.618, + 34.906, + 40.533, + 40.428000000000004, + 37.464, + 39.881, + 42.46, + 40.652, + 45.053000000000004, + 42.468999999999994, + 37.328, + 44.443999999999996, + 35.983000000000004, + 38.047, + 36.667, + 38.999, + 32.065, + 44.778999999999996, + 34.558, + 33.489000000000004, + 44.68600000000001, + 45.047, + 39.486, + 45.288999999999994, + 38.865, + 37.207, + 35.306999999999995, + 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.571000000000005, + 44.077, + 50.468999999999994 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1957
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 6856.856212000001, + 2127.686326, + 2487.365989, + 12489.95006, + 4315.6227229999995, + 2323.805581, + 2990.010802, + 6092.174359000001, + 1544.402995, + 3780.5466509999997, + 3421.523218, + 2617.155967, + 1726.887882, + 2220.487682, + 4756.525781, + 4131.546641, + 3457.415947, + 2961.800905, + 2046.1547059999998, + 4245.256697999999, + 3907.1561890000003, + 4100.3934, + 14847.12712, + 6150.772969, + 9802.466526 + ], + "xaxis": "x", + "y": [ + 64.399, + 41.89, + 53.285, + 69.96, + 56.074, + 55.118, + 60.026, + 62.325, + 49.828, + 51.356, + 48.57, + 44.141999999999996, + 40.696, + 44.665, + 62.61, + 55.19, + 45.431999999999995, + 59.201, + 63.196000000000005, + 46.263000000000005, + 68.54, + 61.8, + 69.49, + 67.044, + 57.907 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

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

continent=Asia
year=1962
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 853.1007099999999, + 12753.27514, + 686.3415537999999, + 496.9136476, + 487.6740183, + 4692.648271999999, + 658.3471509, + 849.2897700999999, + 4187.329802, + 8341.737815, + 7105.630706, + 6576.649461, + 2348.009158, + 1621.693598, + 1536.3443869999999, + 95458.11176, + 5714.560611, + 2036.8849440000001, + 1056.353958, + 388, + 652.3968593, + 2924.638113, + 803.3427418, + 1649.5521529999999, + 11626.41975, + 3674.735572, + 1074.4719599999999, + 2193.037133, + 1822.879028, + 1002.1991720000001, + 772.0491602000001, + 2198.9563120000003, + 825.6232006 + ], + "xaxis": "x", + "y": [ + 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.126000000000005, + 56.656000000000006, + 55.292, + 60.47, + 62.093999999999994, + 55.736999999999995, + 48.251000000000005, + 45.108000000000004, + 39.393, + 43.165, + 47.67, + 54.757, + 45.913999999999994, + 65.798, + 62.192, + 50.305, + 65.2, + 56.06100000000001, + 45.363, + 48.126999999999995, + 35.18 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1962
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 2312.888958, + 10750.721109999999, + 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.849559999999, + 13450.40151, + 5338.752143, + 4727.954889, + 4734.9975859999995, + 6289.629157, + 7481.1075980000005, + 7402.303395, + 5693.843879, + 12329.441920000001, + 20431.0927, + 2322.8699079999997, + 12477.17707 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1962
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 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.8419713999999, + 380.99584330000005, + 419.4564161, + 6631.4592219999995, + 599.650276, + 1190.0411179999999, + 686.3736739, + 522.0343725, + 896.9663732, + 411.80062660000004, + 634.1951625, + 6757.0308159999995, + 1643.38711, + 427.90108560000004, + 496.17434280000003, + 1055.8960359999999, + 2529.0674870000003, + 1566.353493, + 556.6863539, + 3173.215595, + 997.7661127, + 1150.9274779999998, + 3173.72334, + 597.4730727000001, + 1071.551119, + 1654.988723, + 1116.6398769999998, + 1369.488336, + 5768.729717, + 1959.593767, + 1856.182125, + 722.0038073, + 1067.5348099999999, + 1660.30321, + 767.2717397999999, + 1452.725766, + 527.2721818 + ], + "xaxis": "x", + "y": [ + 48.303000000000004, + 34, + 42.618, + 51.52, + 37.814, + 42.045, + 42.643, + 39.475, + 41.716, + 44.467, + 42.122, + 48.435, + 44.93, + 39.693000000000005, + 46.992, + 37.485, + 40.158, + 40.059, + 40.489000000000004, + 33.896, + 46.452, + 35.753, + 34.488, + 47.949, + 47.747, + 40.501999999999995, + 47.808, + 40.848, + 38.41, + 36.936, + 44.248000000000005, + 60.246, + 47.924, + 36.161, + 48.386, + 39.486999999999995, + 39.36, + 57.666000000000004, + 43, + 51.893, + 41.45399999999999, + 32.766999999999996, + 36.981, + 49.951, + 40.87, + 44.992, + 44.246, + 43.922, + 49.57899999999999, + 45.343999999999994, + 46.023, + 52.358000000000004 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1962
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 7133.166023000001, + 2180.972546, + 3336.585802, + 13462.48555, + 4519.094331, + 2492.351109, + 3460.937025, + 5180.75591, + 1662.137359, + 4086.114078, + 3776.8036270000002, + 2750.364446, + 1796.589032, + 2291.1568350000002, + 5246.107524, + 4581.609385, + 3634.364406, + 3536.540301, + 2148.027146, + 4957.037982, + 5108.34463, + 4997.5239710000005, + 16173.145859999999, + 5603.357717, + 8422.974165000001 + ], + "xaxis": "x", + "y": [ + 65.142, + 43.428000000000004, + 55.665, + 71.3, + 57.924, + 57.863, + 62.842, + 65.24600000000001, + 53.458999999999996, + 54.64, + 52.306999999999995, + 46.95399999999999, + 43.59, + 48.041000000000004, + 65.61, + 58.299, + 48.632, + 61.817, + 64.361, + 49.096000000000004, + 69.62, + 64.9, + 70.21, + 68.253, + 60.77 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1962
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 10794968, + 2488550 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 12217.226859999999, + 13175.678 + ], + "xaxis": "x", + "y": [ + 70.93, + 71.24 + ], + "yaxis": "y" + } + ], + "name": "1962" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1967
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 836.1971382, + 14804.6727, + 721.1860862000001, + 523.4323142, + 612.7056934, + 6197.962814, + 700.7706107000001, + 762.4317721, + 5906.731804999999, + 8931.459811, + 8393.741404, + 9847.788606999999, + 2741.796252, + 2143.540609, + 2029.2281420000002, + 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.8586809999997, + 1295.46066, + 637.1232887, + 2649.7150070000002, + 862.4421463 + ], + "xaxis": "x", + "y": [ + 34.02, + 59.923, + 43.453, + 45.415, + 58.381119999999996, + 70, + 47.193000000000005, + 45.964, + 52.468999999999994, + 54.458999999999996, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1967
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 2760.196931, + 12834.6024, + 13149.04119, + 2172.3524230000003, + 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.3563870000003, + 14142.85089 + ], + "xaxis": "x", + "y": [ + 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.336000000000006, + 71.36 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1967
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 3246.991771, + 5522.776375, + 1035.831411, + 1214.709294, + 794.8265597, + 412.97751360000007, + 1508.453148, + 1136.056615, + 1196.810565, + 1876.029643, + 861.5932424, + 2677.9396420000003, + 2052.0504730000002, + 3020.0505129999997, + 1814.880728, + 915.5960025, + 468.7949699, + 516.1186438, + 8358.761987, + 734.7829124, + 1125.69716, + 708.7595409, + 715.5806402000001, + 1056.736457, + 498.63902649999994, + 713.6036482999999, + 18772.75169, + 1634.047282, + 495.5147806, + 545.0098873, + 1421.145193, + 2475.387562, + 1711.04477, + 566.6691539, + 3793.694753, + 1054.384891, + 1014.5141039999999, + 4021.1757390000002, + 510.9637142, + 1384.840593, + 1612.404632, + 1206.043465, + 1284.7331800000002, + 7114.477970999999, + 1687.997641, + 2613.1016649999997, + 848.2186575, + 1477.59676, + 1932.3601670000003, + 908.9185217, + 1777.0773179999999, + 569.7950712 + ], + "xaxis": "x", + "y": [ + 51.407, + 35.985, + 44.885, + 53.298, + 40.696999999999996, + 43.548, + 44.799, + 41.478, + 43.601000000000006, + 46.472, + 44.056000000000004, + 52.04, + 47.35, + 42.074, + 49.293, + 38.986999999999995, + 42.18899999999999, + 42.115, + 44.598, + 35.857, + 48.071999999999996, + 37.196999999999996, + 35.492, + 50.653999999999996, + 48.492, + 41.536, + 50.227, + 42.881, + 39.486999999999995, + 38.486999999999995, + 46.288999999999994, + 61.556999999999995, + 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.858000000000004, + 46.633, + 45.757, + 46.769, + 52.053000000000004, + 48.051, + 47.768, + 53.995 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1967
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 8052.953020999999, + 2586.886053, + 3429.864357, + 16076.58803, + 5106.654313, + 2678.729839, + 4161.727834, + 5690.268015, + 1653.7230029999998, + 4579.074215, + 4358.595393, + 3242.5311469999997, + 1452.057666, + 2538.269358, + 6124.703450999999, + 5754.733883, + 4643.393534000001, + 4421.009084, + 2299.376311, + 5788.09333, + 6929.277714, + 5621.368472, + 19530.365569999998, + 5444.61962, + 9541.474188 + ], + "xaxis": "x", + "y": [ + 65.634, + 45.032, + 57.632, + 72.13, + 60.523, + 59.963, + 65.42399999999999, + 68.29, + 56.751000000000005, + 56.678000000000004, + 55.855, + 50.016000000000005, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

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

continent=Asia
year=1972
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 739.9811057999999, + 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.6215030000003, + 3030.87665, + 109347.867, + 7486.384341, + 2849.09478, + 1421.741975, + 357, + 674.7881296, + 10618.03855, + 1049.938981, + 1989.3740699999998, + 24837.42865, + 8597.756202, + 1213.39553, + 2571.423014, + 4062.523897, + 1524.3589359999999, + 699.5016441, + 3133.4092769999997, + 1265.047031 + ], + "xaxis": "x", + "y": [ + 36.088, + 63.3, + 45.251999999999995, + 40.317, + 63.118880000000004, + 72, + 50.651, + 49.203, + 55.233999999999995, + 56.95, + 71.63, + 73.42, + 56.528, + 63.983000000000004, + 62.611999999999995, + 67.712, + 65.421, + 63.01, + 53.754, + 53.07, + 43.971000000000004, + 52.143, + 51.928999999999995, + 58.065, + 53.886, + 69.521, + 65.042, + 57.29600000000001, + 69.39, + 60.405, + 50.254, + 56.532, + 39.848 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1972
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 3313.422188, + 16661.6256, + 16672.14356, + 2860.16975, + 6597.494398, + 9164.090127, + 13108.4536, + 18866.20721, + 14358.8759, + 16107.19171, + 18016.180269999997, + 12724.82957, + 10168.65611, + 15798.063619999999, + 9530.772895999999, + 12269.27378, + 7778.414017, + 18794.74567, + 18965.05551, + 8006.506993000001, + 9022.247417, + 8011.414401999999, + 10522.067490000001, + 9674.167626, + 12383.4862, + 10638.75131, + 17832.02464, + 27195.113039999997, + 3450.69638, + 15895.116409999999 + ], + "xaxis": "x", + "y": [ + 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.63600000000001, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1972
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 4182.663766, + 5473.288004999999, + 1085.796879, + 2263.6111140000003, + 854.7359763000001, + 464.0995039, + 1684.1465280000002, + 1070.013275, + 1104.103987, + 1937.577675, + 904.8960685000001, + 3213.152683, + 2378.201111, + 3694.2123520000005, + 2024.0081469999998, + 672.4122571, + 514.3242081999999, + 566.2439442000001, + 11401.948409999999, + 756.0868363, + 1178.223708, + 741.6662307, + 820.2245876000001, + 1222.359968, + 496.58159220000005, + 803.0054535, + 21011.497209999998, + 1748.562982, + 584.6219709, + 581.3688761, + 1586.851781, + 2575.4841579999998, + 1930.194975, + 724.9178037, + 3746.080948, + 954.2092363, + 1698.3888379999999, + 5047.658563, + 590.5806637999999, + 1532.985254, + 1597.712056, + 1353.759762, + 1254.576127, + 7765.962636, + 1659.652775, + 3364.836625, + 915.9850592, + 1649.660188, + 2753.2859940000003, + 950.735869, + 1773.498265, + 799.3621757999999 + ], + "xaxis": "x", + "y": [ + 54.518, + 37.928000000000004, + 47.013999999999996, + 56.023999999999994, + 43.591, + 44.056999999999995, + 47.049, + 43.457, + 45.568999999999996, + 48.943999999999996, + 45.989, + 54.907, + 49.801, + 44.36600000000001, + 51.137, + 40.516, + 44.141999999999996, + 43.515, + 48.69, + 38.308, + 49.875, + 38.842, + 36.486, + 53.559, + 49.766999999999996, + 42.614, + 52.773, + 44.851000000000006, + 41.766000000000005, + 39.977, + 48.437, + 62.943999999999996, + 52.861999999999995, + 40.328, + 53.867, + 40.546, + 42.821000000000005, + 64.274, + 44.6, + 56.48, + 45.815, + 35.4, + 40.973, + 53.696000000000005, + 45.083, + 49.552, + 47.62, + 49.75899999999999, + 55.602, + 51.016000000000005, + 50.107, + 55.635 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1972
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 9443.038526, + 2980.331339, + 4985.711467, + 18970.57086, + 5494.024437, + 3264.660041, + 5118.146939, + 5305.445256, + 2189.874499, + 5280.99471, + 4520.246008, + 4031.4082710000002, + 1654.456946, + 2529.842345, + 7433.889293000001, + 6809.406690000001, + 4688.593267, + 5364.2496630000005, + 2523.337977, + 5937.827283, + 9123.041742, + 6619.551418999999, + 21806.03594, + 5703.408898, + 10505.25966 + ], + "xaxis": "x", + "y": [ + 67.065, + 46.714, + 59.504, + 72.88, + 63.441, + 61.623000000000005, + 67.84899999999999, + 70.723, + 59.631, + 58.79600000000001, + 58.207, + 53.738, + 48.042, + 53.88399999999999, + 69, + 62.361000000000004, + 55.151, + 66.21600000000001, + 65.815, + 55.448, + 72.16, + 65.9, + 71.34, + 68.673, + 65.712 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

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

continent=Asia
year=1977
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 786.11336, + 19340.10196, + 659.8772322000001, + 524.9721831999999, + 741.2374699, + 11186.14125, + 813.3373230000001, + 1382.702056, + 11888.59508, + 14688.235069999999, + 13306.619209999999, + 16610.37701, + 2852.351568, + 4106.301249, + 4657.22102, + 59265.477139999995, + 8659.696836, + 3827.9215710000003, + 1647.511665, + 371, + 694.1124398, + 11848.343920000001, + 1175.921193, + 2373.204287, + 34167.7626, + 11210.08948, + 1348.775651, + 3195.484582, + 5596.519826, + 1961.2246350000003, + 713.5371196000001, + 3682.8314939999996, + 1829.765177 + ], + "xaxis": "x", + "y": [ + 38.438, + 65.593, + 46.923, + 31.22, + 63.96736, + 73.6, + 54.208, + 52.702, + 57.702, + 60.413000000000004, + 73.06, + 75.38, + 61.13399999999999, + 67.15899999999999, + 64.766, + 69.343, + 66.09899999999999, + 65.256, + 55.49100000000001, + 56.059, + 46.748000000000005, + 57.367, + 54.043, + 60.06, + 58.69, + 70.795, + 65.949, + 61.195, + 70.59, + 62.494, + 55.763999999999996, + 60.765, + 44.175 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1977
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 3533.0039100000004, + 19749.4223, + 19117.97448, + 3528.481305, + 7612.240438, + 11305.38517, + 14800.160619999999, + 20422.9015, + 15605.422830000001, + 18292.635140000002, + 20512.92123, + 14195.524280000001, + 11674.837370000001, + 19654.96247, + 11150.98113, + 14255.98475, + 9595.929904999999, + 21209.0592, + 23311.34939, + 9508.141454, + 10172.48572, + 9356.39724, + 12980.66956, + 10922.664040000001, + 15277.030169999998, + 13236.92117, + 18855.72521, + 26982.29052, + 4269.122326, + 17428.74846 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1977
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 4910.4167560000005, + 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.7610219999997, + 2785.493582, + 958.5668124, + 505.7538077, + 556.8083834, + 21745.57328, + 884.7552507000001, + 993.2239571, + 874.6858642999999, + 764.7259627999999, + 1267.613204, + 745.3695408, + 640.3224382999999, + 21951.21176, + 1544.228586, + 663.2236766, + 686.3952693, + 1497.492223, + 3710.9829630000004, + 2370.619976, + 502.31973339999996, + 3876.4859579999998, + 808.8970727999999, + 1981.9518059999998, + 4319.804067, + 670.0806011, + 1737.561657, + 1561.769116, + 1348.285159, + 1450.9925130000001, + 8028.651439, + 2202.9884230000002, + 3781.410618, + 962.4922932, + 1532.776998, + 3120.876811, + 843.7331372000001, + 1588.688299, + 685.5876821 + ], + "xaxis": "x", + "y": [ + 58.013999999999996, + 39.483000000000004, + 49.19, + 59.318999999999996, + 46.137, + 45.91, + 49.355, + 46.775, + 47.383, + 50.93899999999999, + 47.803999999999995, + 55.625, + 52.373999999999995, + 46.519, + 53.318999999999996, + 42.023999999999994, + 44.535, + 44.51, + 52.79, + 41.842, + 51.756, + 40.762, + 37.465, + 56.155, + 52.208, + 43.763999999999996, + 57.442, + 46.881, + 43.766999999999996, + 41.714, + 50.852, + 64.93, + 55.73, + 42.495, + 56.437, + 41.291000000000004, + 44.513999999999996, + 67.064, + 45, + 58.55, + 48.879, + 36.788000000000004, + 41.974, + 55.527, + 47.8, + 52.537, + 49.919, + 52.887, + 59.836999999999996, + 50.35, + 51.386, + 57.674 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1977
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 10079.026740000001, + 3548.097832, + 6660.118654, + 22090.88306, + 4756.763836, + 3815.80787, + 5926.876967, + 6380.494965999999, + 2681.9889, + 6679.62326, + 5138.922374, + 4879.992748, + 1874.2989309999998, + 3203.208066, + 6650.195573, + 7674.929108, + 5486.371089, + 5351.912144, + 3248.373311, + 6281.290854999999, + 9770.524921, + 7899.554209000001, + 24072.63213, + 6504.339663000001, + 13143.95095 + ], + "xaxis": "x", + "y": [ + 68.48100000000001, + 50.023, + 61.489, + 74.21, + 67.05199999999999, + 63.836999999999996, + 70.75, + 72.649, + 61.788000000000004, + 61.31, + 56.696000000000005, + 56.028999999999996, + 49.923, + 57.402, + 70.11, + 65.032, + 57.47, + 68.681, + 66.35300000000001, + 58.446999999999996, + 73.44, + 68.3, + 73.38, + 69.48100000000001, + 67.456 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1977
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 14074100, + 3164900 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 18334.197509999998, + 16233.7177 + ], + "xaxis": "x", + "y": [ + 73.49, + 72.22 + ], + "yaxis": "y" + } + ], + "name": "1977" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1982
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 978.0114388000001, + 19211.14731, + 676.9818656, + 624.4754784, + 962.4213804999999, + 14560.530509999999, + 855.7235377000001, + 1516.872988, + 7608.334602, + 14517.90711, + 15367.0292, + 19384.10571, + 4161.415959, + 4106.525293, + 5622.942464, + 31354.03573, + 7640.519520999999, + 4920.355951, + 2000.603139, + 424, + 718.3730947, + 12954.791009999999, + 1443.429832, + 2603.273765, + 33693.17525, + 15169.161119999999, + 1648.0797890000001, + 3761.8377149999997, + 7426.354773999999, + 2393.219781, + 707.2357863, + 4336.032082, + 1977.5570100000002 + ], + "xaxis": "x", + "y": [ + 39.854, + 69.05199999999999, + 50.00899999999999, + 50.957, + 65.525, + 75.45, + 56.596000000000004, + 56.159, + 59.62, + 62.038000000000004, + 74.45, + 77.11, + 63.739, + 69.1, + 67.123, + 71.309, + 66.983, + 68, + 57.489, + 58.056000000000004, + 49.593999999999994, + 62.728, + 56.158, + 62.082, + 63.012, + 71.76, + 68.757, + 64.59, + 72.16, + 64.597, + 58.816, + 64.406, + 49.113 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1982
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 3630.880722, + 21597.083619999998, + 20979.84589, + 4126.613157, + 8224.191647, + 13221.82184, + 15377.22855, + 21688.04048, + 18533.15761, + 20293.89746, + 22031.532740000002, + 15268.420890000001, + 12545.99066, + 23269.6075, + 12618.321409999999, + 16537.4835, + 11222.58762, + 21399.46046, + 26298.635309999998, + 8451.531004, + 11753.84291, + 9605.314053, + 15181.0927, + 11348.54585, + 17866.72175, + 13926.169969999999, + 20667.38125, + 28397.715119999997, + 4241.356344, + 18232.42452 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1982
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5745.160213, + 2756.953672, + 1277.897616, + 4551.14215, + 807.1985855, + 559.6032309999999, + 2367.983282, + 956.7529906999999, + 797.9081006, + 1267.100083, + 673.7478181, + 4879.507522, + 2602.710169, + 2879.4680670000002, + 3503.729636, + 927.8253427000001, + 524.8758493, + 577.8607471, + 15113.36194, + 835.8096107999999, + 876.032569, + 857.2503577, + 838.1239671, + 1348.225791, + 797.2631074, + 572.1995694, + 17364.275380000003, + 1302.878658, + 632.8039209, + 618.0140640999999, + 1481.150189, + 3688.037739, + 2702.620356, + 462.2114149, + 4191.100511, + 909.7221354000001, + 1576.97375, + 5267.219353, + 881.5706467, + 1890.2181170000001, + 1518.479984, + 1465.010784, + 1176.807031, + 8568.266228, + 1895.544073, + 3895.384018, + 874.2426069, + 1344.577953, + 3560.2331740000004, + 682.2662267999999, + 1408.678565, + 788.8550411 + ], + "xaxis": "x", + "y": [ + 61.368, + 39.942, + 50.903999999999996, + 61.483999999999995, + 48.122, + 47.471000000000004, + 52.961000000000006, + 48.295, + 49.516999999999996, + 52.933, + 47.784, + 56.695, + 53.983000000000004, + 48.812, + 56.006, + 43.662, + 43.89, + 44.916000000000004, + 56.56399999999999, + 45.58, + 53.744, + 42.891000000000005, + 39.327, + 58.766000000000005, + 55.078, + 44.852, + 62.155, + 48.968999999999994, + 45.641999999999996, + 43.916000000000004, + 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.608000000000004, + 55.471000000000004, + 64.048, + 49.849, + 51.821000000000005, + 60.363 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1982
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 8997.897412, + 3156.510452, + 7030.835878, + 22898.79214, + 5095.665738000001, + 4397.575659, + 5262.734751, + 7316.9181069999995, + 2861.092386, + 7213.7912670000005, + 4098.344175, + 4820.49479, + 2011.1595489999997, + 3121.7607940000003, + 6068.05135, + 9611.147541, + 3470.3381560000003, + 7009.601598, + 4258.5036039999995, + 6434.501797, + 10330.98915, + 9119.528607, + 25009.55914, + 6920.223051000001, + 11152.410109999999 + ], + "xaxis": "x", + "y": [ + 69.942, + 53.858999999999995, + 63.336000000000006, + 75.76, + 70.565, + 66.653, + 73.45, + 73.717, + 63.727, + 64.342, + 56.604, + 58.137, + 51.461000000000006, + 60.909, + 71.21, + 67.405, + 59.298, + 70.472, + 66.874, + 61.406000000000006, + 73.75, + 68.832, + 74.65, + 70.805, + 68.557 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1982
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 15184200, + 3210650 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 19477.009280000002, + 17632.4104 + ], + "xaxis": "x", + "y": [ + 74.74, + 73.84 + ], + "yaxis": "y" + } + ], + "name": "1982" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1987
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 852.3959447999999, + 18524.02406, + 751.9794035, + 683.8955732000001, + 1378.904018, + 20038.472690000002, + 976.5126756000001, + 1748.356961, + 6642.881371, + 11643.57268, + 17122.47986, + 22375.941890000002, + 4448.679912, + 4106.4923149999995, + 8533.088805, + 28118.42998, + 5377.091329, + 5249.802653, + 2338.008304, + 385, + 775.6324501, + 18115.223130000002, + 1704.686583, + 2189.634995, + 21198.26136, + 18861.53081, + 1876.766827, + 3116.774285, + 11054.56175, + 2982.653773, + 820.7994449, + 5107.197384, + 1971.741538 + ], + "xaxis": "x", + "y": [ + 40.821999999999996, + 70.75, + 52.818999999999996, + 53.913999999999994, + 67.274, + 76.2, + 58.553000000000004, + 60.137, + 63.04, + 65.044, + 75.6, + 78.67, + 65.869, + 70.64699999999999, + 69.81, + 74.17399999999999, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1987
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 3738.9327350000003, + 23687.82607, + 22525.56308, + 4314.114757, + 8239.854824, + 13822.58394, + 16310.4434, + 25116.17581, + 21141.01223, + 22066.44214, + 24639.18566, + 16120.528390000001, + 12986.47998, + 26923.206280000002, + 13872.86652, + 19207.234819999998, + 11732.51017, + 23651.32361, + 31540.9748, + 9082.351172, + 13039.30876, + 9696.273295, + 15870.878509999999, + 12037.26758, + 18678.53492, + 15764.98313, + 23586.92927, + 30281.704589999998, + 5089.043686, + 21664.787669999998 + ], + "xaxis": "x", + "y": [ + 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.108000000000004, + 75.007 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1987
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5681.358539, + 2430.208311, + 1225.85601, + 6205.88385, + 912.0631417000001, + 621.8188188999999, + 2602.664206, + 844.8763504000001, + 952.3861289999999, + 1315.980812, + 672.774812, + 4201.194936999999, + 2156.9560690000003, + 2880.102568, + 3885.4607100000003, + 966.8968149, + 521.1341333, + 573.7413142000001, + 11864.408440000001, + 611.6588611000001, + 847.0061135, + 805.5724717999999, + 736.4153921, + 1361.936856, + 773.9932140999999, + 506.1138573, + 11770.5898, + 1155.4419480000001, + 635.5173633999999, + 684.1715576, + 1421.603576, + 4783.586903, + 2755.046991, + 389.87618460000004, + 3693.7313369999997, + 668.3000228, + 1385.029563, + 5303.377488, + 847.991217, + 1516.525457, + 1441.72072, + 1294.4477880000002, + 1093.244963, + 7825.823398, + 1507.819159, + 3984.8398119999997, + 831.8220794, + 1202.201361, + 3810.419296, + 617.7244065, + 1213.315116, + 706.1573059 + ], + "xaxis": "x", + "y": [ + 65.79899999999999, + 39.906, + 52.336999999999996, + 63.622, + 49.556999999999995, + 48.211000000000006, + 54.985, + 50.485, + 51.051, + 54.926, + 47.412, + 57.47, + 54.655, + 50.04, + 59.797, + 45.663999999999994, + 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.861000000000004, + 60.835, + 44.555, + 46.886, + 71.913, + 44.02, + 61.728, + 55.769, + 40.006, + 44.501000000000005, + 60.833999999999996, + 51.744, + 57.678000000000004, + 51.535, + 56.941, + 66.89399999999999, + 51.50899999999999, + 50.821000000000005, + 62.351000000000006 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1987
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 9139.671389, + 2753.6914899999997, + 7807.095818000001, + 26626.515030000002, + 5547.063754, + 4903.2191, + 5629.915318, + 7532.924762999999, + 2899.842175, + 6481.776993, + 4140.442097, + 4246.485974, + 1823.015995, + 3023.0966989999997, + 6351.237495, + 8688.156003, + 2955.984375, + 7034.779161, + 3998.875695, + 6360.9434439999995, + 12281.34191, + 7388.597823, + 29884.350410000003, + 7452.398969, + 9883.584648 + ], + "xaxis": "x", + "y": [ + 70.774, + 57.251000000000005, + 65.205, + 76.86, + 72.492, + 67.768, + 74.752, + 74.17399999999999, + 66.046, + 67.23100000000001, + 63.153999999999996, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1987
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 16257249, + 3317166 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 21888.889030000002, + 19007.19129 + ], + "xaxis": "x", + "y": [ + 76.32, + 74.32 + ], + "yaxis": "y" + } + ], + "name": "1987" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1992
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 649.3413952000001, + 19035.579169999997, + 837.8101642999999, + 682.3031755, + 1655.784158, + 24757.60301, + 1164.406809, + 2383.140898, + 7235.653187999999, + 3745.6406869999996, + 18051.52254, + 26824.895109999998, + 3431.5936469999997, + 3726.063507, + 12104.27872, + 34932.91959, + 6890.806854, + 7277.912802, + 1785.402016, + 347, + 897.7403604, + 18616.70691, + 1971.8294640000001, + 2279.3240170000004, + 24841.617769999997, + 24769.8912, + 2153.7392219999997, + 3340.542768, + 15215.6579, + 4616.8965450000005, + 989.0231487, + 6017.654756, + 1879.496673 + ], + "xaxis": "x", + "y": [ + 41.674, + 72.601, + 56.018, + 55.803000000000004, + 68.69, + 77.601, + 60.223, + 62.681000000000004, + 65.742, + 59.461000000000006, + 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.37899999999999, + 69.249, + 74.26, + 67.298, + 67.66199999999999, + 69.718, + 55.599 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1992
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 2497.4379010000002, + 27042.01868, + 25575.57069, + 2546.781445, + 6302.6234380000005, + 8447.794873, + 14297.021219999999, + 26406.73985, + 20647.16499, + 24703.79615, + 26505.30317, + 17541.49634, + 10535.62855, + 25144.39201, + 17558.81555, + 22013.64486, + 7003.339037000001, + 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 + ], + "xaxis": "x", + "y": [ + 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.65899999999999, + 71.38, + 73.64, + 77.57, + 78.16, + 78.03, + 66.146, + 76.42 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1992
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5023.216647, + 2627.8456850000002, + 1191.207681, + 7954.111645, + 931.7527731, + 631.6998778, + 1793.1632780000002, + 747.9055252, + 1058.0643, + 1246.90737, + 457.7191807, + 4016.239529, + 1648.073791, + 2377.1561920000004, + 3794.755195, + 1132.055034, + 582.8585102000001, + 421.3534653, + 13522.157519999999, + 665.6244126, + 925.0601539999999, + 794.3484384, + 745.5398706, + 1341.9217210000002, + 977.4862724999999, + 636.6229191000001, + 9640.138501000001, + 1040.6761900000001, + 563.2000145, + 739.014375, + 1361.369784, + 6058.2538460000005, + 2948.047252, + 410.89682389999996, + 3804.537999, + 581.182725, + 1619.848217, + 6101.2558229999995, + 737.0685949, + 1428.777814, + 1367.899369, + 1068.696278, + 926.9602964, + 7225.0692579999995, + 1492.197043, + 3553.0224, + 825.682454, + 1034.298904, + 4332.720164, + 644.1707968999999, + 1210.884633, + 693.4207856 + ], + "xaxis": "x", + "y": [ + 67.744, + 40.647, + 53.919, + 62.745, + 50.26, + 44.736000000000004, + 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.501000000000005, + 48.576, + 43.266000000000005, + 59.285, + 59.685, + 40.802, + 68.755, + 52.214, + 49.42, + 48.388000000000005, + 58.333, + 69.745, + 65.393, + 44.284, + 61.998999999999995, + 47.391000000000005, + 47.472, + 73.615, + 23.599, + 62.742, + 58.196000000000005, + 38.333, + 39.658, + 61.888000000000005, + 53.556000000000004, + 58.474, + 50.44, + 58.06100000000001, + 70.001, + 48.825, + 46.1, + 60.376999999999995 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1992
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 9308.41871, + 2961.699694, + 6950.283020999999, + 26342.88426, + 7596.125964, + 5444.648617, + 6160.416317, + 5592.843963, + 3044.214214, + 7103.702595000001, + 4444.2317, + 4439.4508399999995, + 1456.309517, + 3081.694603, + 7404.923685, + 9472.384295, + 2170.151724, + 6618.74305, + 4196.411078, + 4446.380924, + 14641.587109999999, + 7370.990932, + 32003.93224, + 8137.004775, + 10733.926309999999 + ], + "xaxis": "x", + "y": [ + 71.868, + 59.957, + 67.057, + 77.95, + 74.126, + 68.421, + 75.71300000000001, + 74.414, + 68.457, + 69.613, + 66.798, + 63.373000000000005, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1992
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 17481977, + 3437674 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 23424.76683, + 18363.324940000002 + ], + "xaxis": "x", + "y": [ + 77.56, + 76.33 + ], + "yaxis": "y" + } + ], + "name": "1992" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=1997
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 635.341351, + 20292.01679, + 972.7700352, + 734.28517, + 2289.234136, + 28377.632189999997, + 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.055809999998, + 2049.3505210000003, + 2536.534925, + 20586.69019, + 33519.4766, + 2664.477257, + 4014.238972, + 20206.82098, + 5852.625497, + 1385.896769, + 7110.667619, + 2117.484526 + ], + "xaxis": "x", + "y": [ + 41.763000000000005, + 73.925, + 59.412, + 56.534, + 70.426, + 80, + 61.765, + 66.041, + 68.042, + 58.81100000000001, + 78.26899999999999, + 80.69, + 69.77199999999999, + 67.727, + 74.64699999999999, + 76.156, + 70.265, + 71.938, + 63.625, + 60.328, + 59.426, + 72.499, + 61.818000000000005, + 68.564, + 70.533, + 77.158, + 70.457, + 71.527, + 75.25, + 67.521, + 70.672, + 71.096, + 58.02 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=1997
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 3193.054604, + 29095.920660000003, + 27561.196630000002, + 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.320304000001, + 12126.23065, + 17161.10735, + 20445.29896, + 25266.59499, + 32135.323010000004, + 6601.429915, + 26074.53136 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=1997
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 4797.295051, + 2277.140884, + 1232.975292, + 8647.142313, + 946.2949617999999, + 463.1151478, + 1694.337469, + 740.5063317, + 1004.9613529999999, + 1173.618235, + 312.188423, + 3484.1643759999997, + 1786.265407, + 1895.016984, + 4173.181797, + 2814.480755, + 913.4707900000001, + 515.8894013, + 14722.841880000002, + 653.7301704, + 1005.2458119999999, + 869.4497667999999, + 796.6644681, + 1360.4850210000002, + 1186.147994, + 609.1739508, + 9467.446056, + 986.2958956, + 692.2758102999999, + 790.2579846, + 1483.1361359999999, + 7425.705295000001, + 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.2107640000002, + 3876.7684600000002, + 789.1862231, + 982.2869242999999, + 4876.798614, + 816.559081, + 1071.353818, + 792.4499602999999 + ], + "xaxis": "x", + "y": [ + 69.152, + 40.963, + 54.777, + 52.556000000000004, + 50.324, + 45.326, + 52.199, + 46.066, + 51.573, + 60.66, + 42.586999999999996, + 52.961999999999996, + 47.99100000000001, + 53.157, + 67.217, + 48.245, + 53.378, + 49.402, + 60.461000000000006, + 55.861000000000004, + 58.556000000000004, + 51.455, + 44.873000000000005, + 54.407, + 55.558, + 42.221000000000004, + 71.555, + 54.978, + 47.495, + 49.903, + 60.43, + 70.736, + 67.66, + 46.343999999999994, + 58.909, + 51.313, + 47.464, + 74.77199999999999, + 36.086999999999996, + 63.306000000000004, + 60.187, + 39.897, + 43.795, + 60.236000000000004, + 55.373000000000005, + 54.288999999999994, + 48.466, + 58.39, + 71.973, + 44.578, + 40.238, + 46.809 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=1997
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 10967.28195, + 3326.143191, + 7957.980823999999, + 28954.92589, + 10118.053179999999, + 6117.3617460000005, + 6677.045314, + 5431.990415, + 3614.101285, + 7429.455876999999, + 5154.825496, + 4684.313807, + 1341.7269310000001, + 3160.454906, + 7121.924704000001, + 9767.29753, + 2253.023004, + 7113.692252, + 4247.400261, + 5838.347657, + 16999.4333, + 8792.573126000001, + 35767.43303, + 9230.240708, + 10165.49518 + ], + "xaxis": "x", + "y": [ + 73.275, + 62.05, + 69.388, + 78.61, + 75.816, + 70.313, + 77.26, + 76.15100000000001, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=1997
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 18565243, + 3676187 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 26997.936569999998, + 21050.41377 + ], + "xaxis": "x", + "y": [ + 78.83, + 77.55 + ], + "yaxis": "y" + } + ], + "name": "1997" + }, + { + "data": [ + { + "hovertemplate": "%{hovertext}

continent=Asia
year=2002
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 726.7340548, + 23403.559269999998, + 1136.3904300000002, + 896.2260152999999, + 3119.280896, + 30209.015160000003, + 1746.769454, + 2873.91287, + 9240.761975, + 4390.717312, + 21905.59514, + 28604.5919, + 3844.9171939999997, + 1646.758151, + 19233.98818, + 35110.10566, + 9313.93883, + 10206.97794, + 2140.7393230000002, + 611, + 1057.206311, + 19774.83687, + 2092.712441, + 2650.921068, + 19014.54118, + 36023.1054, + 3015.3788329999998, + 4090.9253310000004, + 23235.42329, + 5913.187529, + 1764.456677, + 4515.487575, + 2234.820827 + ], + "xaxis": "x", + "y": [ + 42.129, + 74.795, + 62.013000000000005, + 56.751999999999995, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=2002
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 4604.211737, + 32417.607689999997, + 30485.88375, + 6018.975239, + 7696.777725, + 11628.38895, + 17596.210219999997, + 32166.500060000002, + 28204.59057, + 28926.032339999998, + 30035.80198, + 22514.2548, + 14843.93556, + 31163.201960000002, + 34077.04939, + 27968.098169999997, + 6557.194282, + 33724.75778, + 44683.97525, + 12002.23908, + 19970.90787, + 7885.360081, + 7236.075251, + 13638.778369999998, + 20660.01936, + 24835.47166, + 29341.630930000003, + 34480.95771, + 6508.085718, + 29478.99919 + ], + "xaxis": "x", + "y": [ + 75.65100000000001, + 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.98100000000001, + 78.53, + 79.05, + 74.67, + 77.29, + 71.322, + 73.21300000000001, + 73.8, + 76.66, + 79.78, + 80.04, + 80.62, + 70.845, + 78.471 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=2002
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5288.040382, + 2773.287312, + 1372.877931, + 11003.60508, + 1037.645221, + 446.4035126, + 1934.0114489999999, + 738.6906068, + 1156.18186, + 1075.811558, + 241.16587650000002, + 3484.06197, + 1648.800823, + 1908.2608670000002, + 4754.604414, + 7703.4959, + 765.3500015, + 530.0535319, + 12521.71392, + 660.5855997, + 1111.9845779999998, + 945.5835837000001, + 575.7047176, + 1287.514732, + 1275.184575, + 531.4823679, + 9534.677467, + 894.6370822, + 665.4231186000001, + 951.4097517999999, + 1579.0195429999999, + 9021.815894, + 3258.495584, + 633.6179466, + 4072.3247509999997, + 601.0745012, + 1615.2863949999999, + 6316.1652, + 785.6537647999999, + 1353.09239, + 1519.635262, + 699.4897129999999, + 882.0818218000001, + 7710.946444, + 1993.398314, + 4128.116943, + 899.0742111, + 886.2205765000001, + 5722.895654999999, + 927.7210018, + 1071.6139380000002, + 672.0386227000001 + ], + "xaxis": "x", + "y": [ + 70.994, + 41.003, + 54.406000000000006, + 46.63399999999999, + 50.65, + 47.36, + 49.856, + 43.308, + 50.525, + 62.974, + 44.966, + 52.97, + 46.832, + 53.373000000000005, + 69.806, + 49.348, + 55.24, + 50.725, + 56.761, + 58.041000000000004, + 58.453, + 53.676, + 45.504, + 50.992, + 44.593, + 43.753, + 72.737, + 57.286, + 45.00899999999999, + 51.818000000000005, + 62.247, + 71.954, + 69.615, + 44.026, + 51.479, + 54.496, + 46.608000000000004, + 75.744, + 43.413000000000004, + 64.337, + 61.6, + 41.012, + 45.93600000000001, + 53.365, + 56.369, + 43.869, + 49.651, + 57.56100000000001, + 73.042, + 47.813, + 39.193000000000005, + 39.989000000000004 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=2002
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 8797.640716, + 3413.26269, + 8131.212843000001, + 33328.96507, + 10778.78385, + 5755.259962, + 7723.447195000001, + 6340.646683, + 4563.808154, + 5773.0445119999995, + 5351.568665999999, + 4858.347495, + 1270.364932, + 3099.72866, + 6994.774861, + 10742.44053, + 2474.548819, + 7356.031934000001, + 3783.674243, + 5909.020073, + 18855.606180000002, + 11460.60023, + 39097.09955, + 7727.002004000001, + 8605.047831 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

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

continent=Asia
year=2007
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Asia", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 974.5803384, + 29796.048339999998, + 1391.253792, + 1713.7786859999999, + 4959.1148539999995, + 39724.97867, + 2452.210407, + 3540.6515640000002, + 11605.71449, + 4471.061906, + 25523.2771, + 31656.06806, + 4519.461171, + 1593.06548, + 23348.139730000003, + 47306.98978, + 10461.05868, + 12451.6558, + 3095.7722710000003, + 944, + 1091.359778, + 22316.19287, + 2605.94758, + 3190.481016, + 21654.83194, + 47143.179639999995, + 3970.0954070000003, + 4184.548089, + 28718.27684, + 7458.3963269999995, + 2441.576404, + 3025.349798, + 2280.769906 + ], + "xaxis": "x", + "y": [ + 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.58800000000001, + 71.993, + 74.241, + 66.803, + 62.068999999999996, + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Europe
year=2007
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Europe", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 5937.029525999999, + 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.789189999996, + 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.419069999996, + 8458.276384, + 33203.26128 + ], + "xaxis": "x", + "y": [ + 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.33800000000001, + 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.70100000000001, + 71.777, + 79.425 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Africa
year=2007
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Africa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 6223.367465, + 4797.231267, + 1441.284873, + 12569.851770000001, + 1217.032994, + 430.07069160000003, + 2042.0952399999999, + 706.016537, + 1704.0637239999999, + 986.1478792000001, + 277.55185869999997, + 3632.557798, + 1544.750112, + 2082.4815670000003, + 5581.180998, + 12154.08975, + 641.3695236000001, + 690.8055759, + 13206.48452, + 752.7497265, + 1327.60891, + 942.6542111, + 579.2317429999999, + 1463.249282, + 1569.331442, + 414.5073415, + 12057.49928, + 1044.770126, + 759.3499101, + 1042.581557, + 1803.1514960000002, + 10956.99112, + 3820.17523, + 823.6856205, + 4811.060429, + 619.6768923999999, + 2013.9773050000001, + 7670.122558, + 863.0884639000001, + 1598.435089, + 1712.4721359999999, + 862.5407561000001, + 926.1410683, + 9269.657808, + 2602.394995, + 4513.480643, + 1107.482182, + 882.9699437999999, + 7092.923025, + 1056.3801210000001, + 1271.211593, + 469.70929810000007 + ], + "xaxis": "x", + "y": [ + 72.301, + 42.731, + 56.728, + 50.728, + 52.295, + 49.58, + 50.43, + 44.74100000000001, + 50.651, + 65.152, + 46.461999999999996, + 55.321999999999996, + 48.328, + 54.791000000000004, + 71.33800000000001, + 51.57899999999999, + 58.04, + 52.946999999999996, + 56.735, + 59.448, + 60.022, + 56.007, + 46.388000000000005, + 54.11, + 42.592, + 45.678000000000004, + 73.952, + 59.443000000000005, + 48.303000000000004, + 54.467, + 64.164, + 72.801, + 71.164, + 42.082, + 52.906000000000006, + 56.867, + 46.858999999999995, + 76.442, + 46.242, + 65.528, + 63.062, + 42.568000000000005, + 48.159, + 49.339, + 58.556000000000004, + 39.613, + 52.516999999999996, + 58.42, + 73.923, + 51.542, + 42.38399999999999, + 43.486999999999995 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Americas
year=2007
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{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": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Americas", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 12779.379640000001, + 3822.1370840000004, + 9065.800825, + 36319.235010000004, + 13171.63885, + 7006.580419, + 9645.06142, + 8948.102923, + 6025.374752000001, + 6873.262326000001, + 5728.353514, + 5186.050003, + 1201.637154, + 3548.3308460000003, + 7320.880262000001, + 11977.57496, + 2749.320965, + 9809.185636, + 4172.838464, + 7408.905561, + 19328.70901, + 18008.50924, + 42951.65309, + 10611.46299, + 11415.805690000001 + ], + "xaxis": "x", + "y": [ + 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.916000000000004, + 70.19800000000001, + 72.567, + 76.195, + 72.899, + 75.53699999999999, + 71.752, + 71.421, + 78.74600000000001, + 69.819, + 78.242, + 76.384, + 73.747 + ], + "yaxis": "y" + }, + { + "hovertemplate": "%{hovertext}

continent=Oceania
year=2007
GDP per Capita=%{x}
Life Expectancy=%{y}
Population=%{marker.size}", + "hovertext": [ + "Australia", + "New Zealand" + ], + "ids": [ + "Australia", + "New Zealand" + ], + "legendgroup": "Oceania", + "marker": { + "color": "#FFA15A", + "size": [ + 20434176, + 4115771 + ], + "sizemode": "area", + "sizeref": 366300.86, + "symbol": "circle" + }, + "mode": "markers", + "name": "Oceania", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 34435.367439999995, + 25185.00911 + ], + "xaxis": "x", + "y": [ + 81.235, + 80.204 + ], + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": [ + 1, + 5 + ], + "title": { + "text": "GDP per Capita" + }, + "type": "log" + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "range": [ + 25, + 90 + ], + "title": { + "text": "Life Expectancy" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.scatter(gapminder, x='gdpPercap', y='lifeExp', \n", + " color='continent', size='pop', \n", + " size_max=60, hover_name='country',\n", + " animation_frame='year', animation_group='country',\n", + " log_x=True, range_x=[10,100000],\n", + " range_y=[25,90], labels=dict(pop='Population', gdpPercap='GDP per Capita', lifeExp='Life Expectancy'))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## maps" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1952
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 28.801, + 55.23, + 43.077, + 30.015, + 62.485, + 69.12, + 66.8, + 50.93899999999999, + 37.484, + 68, + 38.223, + 40.414, + 53.82, + 47.622, + 50.917, + 59.6, + 31.975, + 39.031, + 39.417, + 38.523, + 68.75, + 35.463, + 38.092, + 54.745, + 44, + 50.643, + 40.715, + 39.143, + 42.111000000000004, + 57.206, + 40.477, + 61.21, + 59.42100000000001, + 66.87, + 70.78, + 34.812, + 45.928000000000004, + 48.357, + 41.893, + 45.262, + 34.482, + 35.928000000000004, + 34.078, + 66.55, + 67.41, + 37.003, + 30, + 67.5, + 43.148999999999994, + 65.86, + 42.023, + 33.609, + 32.5, + 37.579, + 41.912, + 60.96, + 64.03, + 72.49, + 37.373000000000005, + 37.468, + 44.869, + 45.32, + 66.91, + 65.39, + 65.94, + 58.53, + 63.03, + 43.158, + 42.27, + 50.056000000000004, + 47.453, + 55.565, + 55.928000000000004, + 42.138000000000005, + 38.48, + 42.723, + 36.681, + 36.256, + 48.463, + 33.685, + 40.543, + 50.986000000000004, + 50.788999999999994, + 42.244, + 59.163999999999994, + 42.873000000000005, + 31.285999999999998, + 36.319, + 41.725, + 36.157, + 72.13, + 69.39, + 42.31399999999999, + 37.444, + 36.324, + 72.67, + 37.578, + 43.43600000000001, + 55.191, + 62.648999999999994, + 43.902, + 47.751999999999995, + 61.31, + 59.82, + 64.28, + 52.724, + 61.05, + 40, + 46.471000000000004, + 39.875, + 37.278, + 57.996, + 30.331, + 60.396, + 64.36, + 65.57, + 32.978, + 45.00899999999999, + 64.94, + 57.593, + 38.635, + 41.407, + 71.86, + 69.62, + 45.883, + 58.5, + 41.215, + 50.848, + 38.596, + 59.1, + 44.6, + 43.585, + 39.978, + 69.18, + 68.44, + 66.071, + 55.088, + 40.412, + 43.16, + 32.548, + 42.038000000000004, + 48.451 + ] + } + ], + "frames": [ + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1952
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 28.801, + 55.23, + 43.077, + 30.015, + 62.485, + 69.12, + 66.8, + 50.93899999999999, + 37.484, + 68, + 38.223, + 40.414, + 53.82, + 47.622, + 50.917, + 59.6, + 31.975, + 39.031, + 39.417, + 38.523, + 68.75, + 35.463, + 38.092, + 54.745, + 44, + 50.643, + 40.715, + 39.143, + 42.111000000000004, + 57.206, + 40.477, + 61.21, + 59.42100000000001, + 66.87, + 70.78, + 34.812, + 45.928000000000004, + 48.357, + 41.893, + 45.262, + 34.482, + 35.928000000000004, + 34.078, + 66.55, + 67.41, + 37.003, + 30, + 67.5, + 43.148999999999994, + 65.86, + 42.023, + 33.609, + 32.5, + 37.579, + 41.912, + 60.96, + 64.03, + 72.49, + 37.373000000000005, + 37.468, + 44.869, + 45.32, + 66.91, + 65.39, + 65.94, + 58.53, + 63.03, + 43.158, + 42.27, + 50.056000000000004, + 47.453, + 55.565, + 55.928000000000004, + 42.138000000000005, + 38.48, + 42.723, + 36.681, + 36.256, + 48.463, + 33.685, + 40.543, + 50.986000000000004, + 50.788999999999994, + 42.244, + 59.163999999999994, + 42.873000000000005, + 31.285999999999998, + 36.319, + 41.725, + 36.157, + 72.13, + 69.39, + 42.31399999999999, + 37.444, + 36.324, + 72.67, + 37.578, + 43.43600000000001, + 55.191, + 62.648999999999994, + 43.902, + 47.751999999999995, + 61.31, + 59.82, + 64.28, + 52.724, + 61.05, + 40, + 46.471000000000004, + 39.875, + 37.278, + 57.996, + 30.331, + 60.396, + 64.36, + 65.57, + 32.978, + 45.00899999999999, + 64.94, + 57.593, + 38.635, + 41.407, + 71.86, + 69.62, + 45.883, + 58.5, + 41.215, + 50.848, + 38.596, + 59.1, + 44.6, + 43.585, + 39.978, + 69.18, + 68.44, + 66.071, + 55.088, + 40.412, + 43.16, + 32.548, + 42.038000000000004, + 48.451 + ] + } + ], + "name": "1952" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1957
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 30.331999999999997, + 59.28, + 45.685, + 31.999000000000002, + 64.399, + 70.33, + 67.48, + 53.832, + 39.348, + 69.24, + 40.358000000000004, + 41.89, + 58.45, + 49.618, + 53.285, + 66.61, + 34.906, + 40.533, + 41.36600000000001, + 40.428000000000004, + 69.96, + 37.464, + 39.881, + 56.074, + 50.54896, + 55.118, + 42.46, + 40.652, + 45.053000000000004, + 60.026, + 42.468999999999994, + 64.77, + 62.325, + 69.03, + 71.81, + 37.328, + 49.828, + 51.356, + 44.443999999999996, + 48.57, + 35.983000000000004, + 38.047, + 36.667, + 67.49, + 68.93, + 38.999, + 32.065, + 69.1, + 44.778999999999996, + 67.86, + 44.141999999999996, + 34.558, + 33.489000000000004, + 40.696, + 44.665, + 64.75, + 66.41, + 73.47, + 40.249, + 39.918, + 47.181000000000004, + 48.437, + 68.9, + 67.84, + 67.81, + 62.61, + 65.5, + 45.669, + 44.68600000000001, + 54.081, + 52.681000000000004, + 58.033, + 59.489, + 45.047, + 39.486, + 45.288999999999994, + 38.865, + 37.207, + 52.102, + 35.306999999999995, + 42.338, + 58.089, + 55.19, + 45.248000000000005, + 61.448, + 45.423, + 33.779, + 41.905, + 45.226000000000006, + 37.686, + 72.99, + 70.26, + 45.431999999999995, + 38.598, + 37.802, + 73.44, + 40.08, + 45.556999999999995, + 59.201, + 63.196000000000005, + 46.263000000000005, + 51.333999999999996, + 65.77, + 61.51, + 68.54, + 55.09, + 64.1, + 41.5, + 48.945, + 42.868, + 39.329, + 61.685, + 31.57, + 63.178999999999995, + 67.45, + 67.85, + 34.977, + 47.985, + 66.66, + 61.456, + 39.624, + 43.424, + 72.49, + 70.56, + 48.284, + 62.4, + 42.974, + 53.63, + 41.208, + 61.8, + 47.1, + 48.07899999999999, + 42.571000000000005, + 70.42, + 69.49, + 67.044, + 57.907, + 42.887, + 45.67100000000001, + 33.97, + 44.077, + 50.468999999999994 + ] + } + ], + "name": "1957" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1962
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 31.997, + 64.82, + 48.303000000000004, + 34, + 65.142, + 70.93, + 69.54, + 56.923, + 41.216, + 70.25, + 42.618, + 43.428000000000004, + 61.93, + 51.52, + 55.665, + 69.51, + 37.814, + 42.045, + 43.415, + 42.643, + 71.3, + 39.475, + 41.716, + 57.924, + 44.50136, + 57.863, + 44.467, + 42.122, + 48.435, + 62.842, + 44.93, + 67.13, + 65.24600000000001, + 69.9, + 72.35, + 39.693000000000005, + 53.458999999999996, + 54.64, + 46.992, + 52.306999999999995, + 37.485, + 40.158, + 40.059, + 68.75, + 70.51, + 40.489000000000004, + 33.896, + 70.3, + 46.452, + 69.51, + 46.95399999999999, + 35.753, + 34.488, + 43.59, + 48.041000000000004, + 67.65, + 67.96, + 73.68, + 43.605, + 42.518, + 49.325, + 51.457, + 70.29, + 69.39, + 69.24, + 65.61, + 68.73, + 48.126000000000005, + 47.949, + 56.656000000000006, + 55.292, + 60.47, + 62.093999999999994, + 47.747, + 40.501999999999995, + 47.808, + 40.848, + 38.41, + 55.736999999999995, + 36.936, + 44.248000000000005, + 60.246, + 58.299, + 48.251000000000005, + 63.728, + 47.924, + 36.161, + 45.108000000000004, + 48.386, + 39.393, + 73.23, + 71.24, + 48.632, + 39.486999999999995, + 39.36, + 73.47, + 43.165, + 47.67, + 61.817, + 64.361, + 49.096000000000004, + 54.757, + 67.64, + 64.39, + 69.62, + 57.666000000000004, + 66.8, + 43, + 51.893, + 45.913999999999994, + 41.45399999999999, + 64.531, + 32.766999999999996, + 65.798, + 70.33, + 69.15, + 36.981, + 49.951, + 69.69, + 62.192, + 40.87, + 44.992, + 73.37, + 71.32, + 50.305, + 65.2, + 44.246, + 56.06100000000001, + 43.922, + 64.9, + 49.57899999999999, + 52.098, + 45.343999999999994, + 70.76, + 70.21, + 68.253, + 60.77, + 45.363, + 48.126999999999995, + 35.18, + 46.023, + 52.358000000000004 + ] + } + ], + "name": "1962" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1967
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 34.02, + 66.22, + 51.407, + 35.985, + 65.634, + 71.1, + 70.14, + 59.923, + 43.453, + 70.94, + 44.885, + 45.032, + 64.79, + 53.298, + 57.632, + 70.42, + 40.696999999999996, + 43.548, + 45.415, + 44.799, + 72.13, + 41.478, + 43.601000000000006, + 60.523, + 58.381119999999996, + 59.963, + 46.472, + 44.056000000000004, + 52.04, + 65.42399999999999, + 47.35, + 68.5, + 68.29, + 70.38, + 72.96, + 42.074, + 56.751000000000005, + 56.678000000000004, + 49.293, + 55.855, + 38.986999999999995, + 42.18899999999999, + 42.115, + 69.83, + 71.55, + 44.598, + 35.857, + 70.8, + 48.071999999999996, + 71, + 50.016000000000005, + 37.196999999999996, + 35.492, + 46.243, + 50.924, + 70, + 69.5, + 73.73, + 47.193000000000005, + 45.964, + 52.468999999999994, + 54.458999999999996, + 71.08, + 70.75, + 71.06, + 67.51, + 71.43, + 51.629, + 50.653999999999996, + 59.942, + 57.716, + 64.624, + 63.87, + 48.492, + 41.536, + 50.227, + 42.881, + 39.486999999999995, + 59.371, + 38.486999999999995, + 46.288999999999994, + 61.556999999999995, + 60.11, + 51.253, + 67.178, + 50.335, + 38.113, + 49.379, + 51.159, + 41.472, + 73.82, + 71.52, + 51.88399999999999, + 40.118, + 41.04, + 74.08, + 46.988, + 49.8, + 64.071, + 64.95100000000001, + 51.445, + 56.393, + 69.61, + 66.6, + 71.1, + 60.542, + 66.8, + 44.1, + 54.425, + 49.901, + 43.563, + 66.914, + 34.113, + 67.946, + 70.98, + 69.18, + 38.977, + 51.927, + 71.44, + 64.266, + 42.858000000000004, + 46.633, + 74.16, + 72.77, + 53.655, + 67.5, + 45.757, + 58.285, + 46.769, + 65.4, + 52.053000000000004, + 54.336000000000006, + 48.051, + 71.36, + 70.76, + 68.468, + 63.479, + 47.838, + 51.631, + 36.984, + 47.768, + 53.995 + ] + } + ], + "name": "1967" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1972
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 36.088, + 67.69, + 54.518, + 37.928000000000004, + 67.065, + 71.93, + 70.63, + 63.3, + 45.251999999999995, + 71.44, + 47.013999999999996, + 46.714, + 67.45, + 56.023999999999994, + 59.504, + 70.9, + 43.591, + 44.056999999999995, + 40.317, + 47.049, + 72.88, + 43.457, + 45.568999999999996, + 63.441, + 63.118880000000004, + 61.623000000000005, + 48.943999999999996, + 45.989, + 54.907, + 67.84899999999999, + 49.801, + 69.61, + 70.723, + 70.29, + 73.47, + 44.36600000000001, + 59.631, + 58.79600000000001, + 51.137, + 58.207, + 40.516, + 44.141999999999996, + 43.515, + 70.87, + 72.38, + 48.69, + 38.308, + 71, + 49.875, + 72.34, + 53.738, + 38.842, + 36.486, + 48.042, + 53.88399999999999, + 72, + 69.76, + 74.46, + 50.651, + 49.203, + 55.233999999999995, + 56.95, + 71.28, + 71.63, + 72.19, + 69, + 73.42, + 56.528, + 53.559, + 63.983000000000004, + 62.611999999999995, + 67.712, + 65.421, + 49.766999999999996, + 42.614, + 52.773, + 44.851000000000006, + 41.766000000000005, + 63.01, + 39.977, + 48.437, + 62.943999999999996, + 62.361000000000004, + 53.754, + 70.63600000000001, + 52.861999999999995, + 40.328, + 53.07, + 53.867, + 43.971000000000004, + 73.75, + 71.89, + 55.151, + 40.546, + 42.821000000000005, + 74.34, + 52.143, + 51.928999999999995, + 66.21600000000001, + 65.815, + 55.448, + 58.065, + 70.85, + 69.26, + 72.16, + 64.274, + 69.21, + 44.6, + 56.48, + 53.886, + 45.815, + 68.7, + 35.4, + 69.521, + 70.35, + 69.82, + 40.973, + 53.696000000000005, + 73.06, + 65.042, + 45.083, + 49.552, + 74.72, + 73.78, + 57.29600000000001, + 69.39, + 47.62, + 60.405, + 49.75899999999999, + 65.9, + 55.602, + 57.005, + 51.016000000000005, + 72.01, + 71.34, + 68.673, + 65.712, + 50.254, + 56.532, + 39.848, + 50.107, + 55.635 + ] + } + ], + "name": "1972" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1977
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 38.438, + 68.93, + 58.013999999999996, + 39.483000000000004, + 68.48100000000001, + 73.49, + 72.17, + 65.593, + 46.923, + 72.8, + 49.19, + 50.023, + 69.86, + 59.318999999999996, + 61.489, + 70.81, + 46.137, + 45.91, + 31.22, + 49.355, + 74.21, + 46.775, + 47.383, + 67.05199999999999, + 63.96736, + 63.836999999999996, + 50.93899999999999, + 47.803999999999995, + 55.625, + 70.75, + 52.373999999999995, + 70.64, + 72.649, + 70.71, + 74.69, + 46.519, + 61.788000000000004, + 61.31, + 53.318999999999996, + 56.696000000000005, + 42.023999999999994, + 44.535, + 44.51, + 72.52, + 73.83, + 52.79, + 41.842, + 72.5, + 51.756, + 73.68, + 56.028999999999996, + 40.762, + 37.465, + 49.923, + 57.402, + 73.6, + 69.95, + 76.11, + 54.208, + 52.702, + 57.702, + 60.413000000000004, + 72.03, + 73.06, + 73.48, + 70.11, + 75.38, + 61.13399999999999, + 56.155, + 67.15899999999999, + 64.766, + 69.343, + 66.09899999999999, + 52.208, + 43.763999999999996, + 57.442, + 46.881, + 43.766999999999996, + 65.256, + 41.714, + 50.852, + 64.93, + 65.032, + 55.49100000000001, + 73.066, + 55.73, + 42.495, + 56.059, + 56.437, + 46.748000000000005, + 75.24, + 72.22, + 57.47, + 41.291000000000004, + 44.513999999999996, + 75.37, + 57.367, + 54.043, + 68.681, + 66.35300000000001, + 58.446999999999996, + 60.06, + 70.67, + 70.41, + 73.44, + 67.064, + 69.46, + 45, + 58.55, + 58.69, + 48.879, + 70.3, + 36.788000000000004, + 70.795, + 70.45, + 70.97, + 41.974, + 55.527, + 74.39, + 65.949, + 47.8, + 52.537, + 75.44, + 75.39, + 61.195, + 70.59, + 49.919, + 62.494, + 52.887, + 68.3, + 59.836999999999996, + 59.507, + 50.35, + 72.76, + 73.38, + 69.48100000000001, + 67.456, + 55.763999999999996, + 60.765, + 44.175, + 51.386, + 57.674 + ] + } + ], + "name": "1977" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1982
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 39.854, + 70.42, + 61.368, + 39.942, + 69.942, + 74.74, + 73.18, + 69.05199999999999, + 50.00899999999999, + 73.93, + 50.903999999999996, + 53.858999999999995, + 70.69, + 61.483999999999995, + 63.336000000000006, + 71.08, + 48.122, + 47.471000000000004, + 50.957, + 52.961000000000006, + 75.76, + 48.295, + 49.516999999999996, + 70.565, + 65.525, + 66.653, + 52.933, + 47.784, + 56.695, + 73.45, + 53.983000000000004, + 70.46, + 73.717, + 70.96, + 74.63, + 48.812, + 63.727, + 64.342, + 56.006, + 56.604, + 43.662, + 43.89, + 44.916000000000004, + 74.55, + 74.89, + 56.56399999999999, + 45.58, + 73.8, + 53.744, + 75.24, + 58.137, + 42.891000000000005, + 39.327, + 51.461000000000006, + 60.909, + 75.45, + 69.39, + 76.99, + 56.596000000000004, + 56.159, + 59.62, + 62.038000000000004, + 73.1, + 74.45, + 74.98, + 71.21, + 77.11, + 63.739, + 58.766000000000005, + 69.1, + 67.123, + 71.309, + 66.983, + 55.078, + 44.852, + 62.155, + 48.968999999999994, + 45.641999999999996, + 68, + 43.916000000000004, + 53.599, + 66.711, + 67.405, + 57.489, + 74.101, + 59.65, + 42.795, + 58.056000000000004, + 58.968, + 49.593999999999994, + 76.05, + 73.84, + 59.298, + 42.598, + 45.826, + 75.97, + 62.728, + 56.158, + 70.472, + 66.874, + 61.406000000000006, + 62.082, + 71.32, + 72.77, + 73.75, + 69.885, + 69.66, + 46.218, + 60.351000000000006, + 63.012, + 52.379, + 70.16199999999999, + 38.445, + 71.76, + 70.8, + 71.063, + 42.955, + 58.161, + 76.3, + 68.757, + 50.338, + 55.56100000000001, + 76.42, + 76.21, + 64.59, + 72.16, + 50.608000000000004, + 64.597, + 55.471000000000004, + 68.832, + 64.048, + 61.036, + 49.849, + 74.04, + 74.65, + 70.805, + 68.557, + 58.816, + 64.406, + 49.113, + 51.821000000000005, + 60.363 + ] + } + ], + "name": "1982" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1987
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 40.821999999999996, + 72, + 65.79899999999999, + 39.906, + 70.774, + 76.32, + 74.94, + 70.75, + 52.818999999999996, + 75.35, + 52.336999999999996, + 57.251000000000005, + 71.14, + 63.622, + 65.205, + 71.34, + 49.556999999999995, + 48.211000000000006, + 53.913999999999994, + 54.985, + 76.86, + 50.485, + 51.051, + 72.492, + 67.274, + 67.768, + 54.926, + 47.412, + 57.47, + 74.752, + 54.655, + 71.52, + 74.17399999999999, + 71.58, + 74.8, + 50.04, + 66.046, + 67.23100000000001, + 59.797, + 63.153999999999996, + 45.663999999999994, + 46.453, + 46.684, + 74.83, + 76.34, + 60.19, + 49.265, + 74.847, + 55.729, + 76.67, + 60.782, + 45.552, + 41.245, + 53.636, + 64.492, + 76.2, + 69.58, + 77.23, + 58.553000000000004, + 60.137, + 63.04, + 65.044, + 74.36, + 75.6, + 76.42, + 71.77, + 78.67, + 65.869, + 59.339, + 70.64699999999999, + 69.81, + 74.17399999999999, + 67.926, + 57.18, + 46.027, + 66.234, + 49.35, + 47.457, + 69.5, + 46.364, + 56.145, + 68.74, + 69.498, + 60.222, + 74.865, + 62.677, + 42.861000000000004, + 58.339, + 60.835, + 52.537, + 76.83, + 74.32, + 62.008, + 44.555, + 46.886, + 75.89, + 67.734, + 58.245, + 71.523, + 67.378, + 64.134, + 64.15100000000001, + 70.98, + 74.06, + 74.63, + 71.913, + 69.53, + 44.02, + 61.728, + 66.295, + 55.769, + 71.218, + 40.006, + 73.56, + 71.08, + 72.25, + 44.501000000000005, + 60.833999999999996, + 76.9, + 69.01100000000001, + 51.744, + 57.678000000000004, + 77.19, + 77.41, + 66.97399999999999, + 73.4, + 51.535, + 66.084, + 56.941, + 69.582, + 66.89399999999999, + 63.108000000000004, + 51.50899999999999, + 75.007, + 75.02, + 71.918, + 70.19, + 62.82, + 67.046, + 52.922, + 50.821000000000005, + 62.351000000000006 + ] + } + ], + "name": "1987" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1992
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 41.674, + 71.581, + 67.744, + 40.647, + 71.868, + 77.56, + 76.04, + 72.601, + 56.018, + 76.46, + 53.919, + 59.957, + 72.178, + 62.745, + 67.057, + 71.19, + 50.26, + 44.736000000000004, + 55.803000000000004, + 54.31399999999999, + 77.95, + 49.396, + 51.724, + 74.126, + 68.69, + 68.421, + 57.93899999999999, + 45.548, + 56.433, + 75.71300000000001, + 52.044, + 72.527, + 74.414, + 72.4, + 75.33, + 51.604, + 68.457, + 69.613, + 63.674, + 66.798, + 47.545, + 49.99100000000001, + 48.091, + 75.7, + 77.46, + 61.36600000000001, + 52.644, + 76.07, + 57.501000000000005, + 77.03, + 63.373000000000005, + 48.576, + 43.266000000000005, + 55.089, + 66.399, + 77.601, + 69.17, + 78.77, + 60.223, + 62.681000000000004, + 65.742, + 59.461000000000006, + 75.467, + 76.93, + 77.44, + 71.766, + 79.36, + 68.015, + 59.285, + 69.97800000000001, + 72.244, + 75.19, + 69.292, + 59.685, + 40.802, + 68.755, + 52.214, + 49.42, + 70.693, + 48.388000000000005, + 58.333, + 69.745, + 71.455, + 61.271, + 75.435, + 65.393, + 44.284, + 59.32, + 61.998999999999995, + 55.727, + 77.42, + 76.33, + 65.843, + 47.391000000000005, + 47.472, + 77.32, + 71.197, + 60.838, + 72.462, + 68.225, + 66.458, + 66.458, + 70.99, + 74.86, + 73.911, + 73.615, + 69.36, + 23.599, + 62.742, + 68.768, + 58.196000000000005, + 71.65899999999999, + 38.333, + 75.788, + 71.38, + 73.64, + 39.658, + 61.888000000000005, + 77.57, + 70.37899999999999, + 53.556000000000004, + 58.474, + 78.16, + 78.03, + 69.249, + 74.26, + 50.44, + 67.298, + 58.06100000000001, + 69.862, + 70.001, + 66.146, + 48.825, + 76.42, + 76.09, + 72.752, + 71.15, + 67.66199999999999, + 69.718, + 55.599, + 46.1, + 60.376999999999995 + ] + } + ], + "name": "1992" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=1997
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 41.763000000000005, + 72.95, + 69.152, + 40.963, + 73.275, + 78.83, + 77.51, + 73.925, + 59.412, + 77.53, + 54.777, + 62.05, + 73.244, + 52.556000000000004, + 69.388, + 70.32, + 50.324, + 45.326, + 56.534, + 52.199, + 78.61, + 46.066, + 51.573, + 75.816, + 70.426, + 70.313, + 60.66, + 42.586999999999996, + 52.961999999999996, + 77.26, + 47.99100000000001, + 73.68, + 76.15100000000001, + 74.01, + 76.11, + 53.157, + 69.957, + 72.312, + 67.217, + 69.535, + 48.245, + 53.378, + 49.402, + 77.13, + 78.64, + 60.461000000000006, + 55.861000000000004, + 77.34, + 58.556000000000004, + 77.869, + 66.322, + 51.455, + 44.873000000000005, + 56.67100000000001, + 67.65899999999999, + 80, + 71.04, + 78.95, + 61.765, + 66.041, + 68.042, + 58.81100000000001, + 76.122, + 78.26899999999999, + 78.82, + 72.262, + 80.69, + 69.77199999999999, + 54.407, + 67.727, + 74.64699999999999, + 76.156, + 70.265, + 55.558, + 42.221000000000004, + 71.555, + 54.978, + 47.495, + 71.938, + 49.903, + 60.43, + 70.736, + 73.67, + 63.625, + 75.445, + 67.66, + 46.343999999999994, + 60.328, + 58.909, + 59.426, + 78.03, + 77.55, + 68.426, + 51.313, + 47.464, + 78.32, + 72.499, + 61.818000000000005, + 73.738, + 69.4, + 68.38600000000001, + 68.564, + 72.75, + 75.97, + 74.917, + 74.77199999999999, + 69.72, + 36.086999999999996, + 63.306000000000004, + 70.533, + 60.187, + 72.232, + 39.897, + 77.158, + 72.71, + 75.13, + 43.795, + 60.236000000000004, + 78.77, + 70.457, + 55.373000000000005, + 54.288999999999994, + 79.39, + 79.37, + 71.527, + 75.25, + 48.466, + 67.521, + 58.39, + 69.465, + 71.973, + 68.835, + 44.578, + 77.218, + 76.81, + 74.223, + 72.146, + 70.672, + 71.096, + 58.02, + 40.238, + 46.809 + ] + } + ], + "name": "1997" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=2002
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 42.129, + 75.65100000000001, + 70.994, + 41.003, + 74.34, + 80.37, + 78.98, + 74.795, + 62.013000000000005, + 78.32, + 54.406000000000006, + 63.883, + 74.09, + 46.63399999999999, + 71.006, + 72.14, + 50.65, + 47.36, + 56.751999999999995, + 49.856, + 79.77, + 43.308, + 50.525, + 77.86, + 72.028, + 71.682, + 62.974, + 44.966, + 52.97, + 78.123, + 46.832, + 74.876, + 77.158, + 75.51, + 77.18, + 53.373000000000005, + 70.847, + 74.173, + 69.806, + 70.734, + 49.348, + 55.24, + 50.725, + 78.37, + 79.59, + 56.761, + 58.041000000000004, + 78.67, + 58.453, + 78.256, + 68.97800000000001, + 53.676, + 45.504, + 58.137, + 68.565, + 81.495, + 72.59, + 80.5, + 62.879, + 68.58800000000001, + 69.45100000000001, + 57.04600000000001, + 77.783, + 79.696, + 80.24, + 72.047, + 82, + 71.263, + 50.992, + 66.66199999999999, + 77.045, + 76.904, + 71.028, + 44.593, + 43.753, + 72.737, + 57.286, + 45.00899999999999, + 73.044, + 51.818000000000005, + 62.247, + 71.954, + 74.902, + 65.033, + 73.98100000000001, + 69.615, + 44.026, + 59.908, + 51.479, + 61.34, + 78.53, + 79.11, + 70.836, + 54.496, + 46.608000000000004, + 79.05, + 74.193, + 63.61, + 74.712, + 70.755, + 69.906, + 70.303, + 74.67, + 77.29, + 77.778, + 75.744, + 71.322, + 43.413000000000004, + 64.337, + 71.626, + 61.6, + 73.21300000000001, + 41.012, + 78.77, + 73.8, + 76.66, + 45.93600000000001, + 53.365, + 79.78, + 70.815, + 56.369, + 43.869, + 80.04, + 80.62, + 73.053, + 76.99, + 49.651, + 68.564, + 57.56100000000001, + 68.976, + 73.042, + 70.845, + 47.813, + 78.471, + 77.31, + 75.307, + 72.766, + 73.017, + 72.37, + 60.308, + 39.193000000000005, + 39.989000000000004 + ] + } + ], + "name": "2002" + }, + { + "data": [ + { + "coloraxis": "coloraxis", + "geo": "geo", + "hovertemplate": "%{hovertext}

year=2007
iso_alpha=%{location}
lifeExp=%{z}", + "hovertext": [ + "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" + ], + "locations": [ + "AFG", + "ALB", + "DZA", + "AGO", + "ARG", + "AUS", + "AUT", + "BHR", + "BGD", + "BEL", + "BEN", + "BOL", + "BIH", + "BWA", + "BRA", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CAF", + "TCD", + "CHL", + "CHN", + "COL", + "COM", + "COD", + "COG", + "CRI", + "CIV", + "HRV", + "CUB", + "CZE", + "DNK", + "DJI", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "ETH", + "FIN", + "FRA", + "GAB", + "GMB", + "DEU", + "GHA", + "GRC", + "GTM", + "GIN", + "GNB", + "HTI", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KEN", + "KOR", + "KOR", + "KWT", + "LBN", + "LSO", + "LBR", + "LBY", + "MDG", + "MWI", + "MYS", + "MLI", + "MRT", + "MUS", + "MEX", + "MNG", + "MNE", + "MAR", + "MOZ", + "MMR", + "NAM", + "NPL", + "NLD", + "NZL", + "NIC", + "NER", + "NGA", + "NOR", + "OMN", + "PAK", + "PAN", + "PRY", + "PER", + "PHL", + "POL", + "PRT", + "PRI", + "REU", + "ROU", + "RWA", + "STP", + "SAU", + "SEN", + "SRB", + "SLE", + "SGP", + "SVK", + "SVN", + "SOM", + "ZAF", + "ESP", + "LKA", + "SDN", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TZA", + "THA", + "TGO", + "TTO", + "TUN", + "TUR", + "UGA", + "GBR", + "USA", + "URY", + "VEN", + "VNM", + "PSE", + "YEM", + "ZMB", + "ZWE" + ], + "name": "", + "type": "choropleth", + "z": [ + 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.461999999999996, + 55.321999999999996, + 78.782, + 48.328, + 75.748, + 78.273, + 76.486, + 78.332, + 54.791000000000004, + 72.235, + 74.994, + 71.33800000000001, + 71.878, + 51.57899999999999, + 58.04, + 52.946999999999996, + 79.313, + 80.657, + 56.735, + 59.448, + 79.406, + 60.022, + 79.483, + 70.259, + 56.007, + 46.388000000000005, + 60.916000000000004, + 70.19800000000001, + 82.208, + 73.33800000000001, + 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.58800000000001, + 71.993, + 42.592, + 45.678000000000004, + 73.952, + 59.443000000000005, + 48.303000000000004, + 74.241, + 54.467, + 64.164, + 72.801, + 76.195, + 66.803, + 74.543, + 71.164, + 42.082, + 62.068999999999996, + 52.906000000000006, + 63.785, + 79.762, + 80.204, + 72.899, + 56.867, + 46.858999999999995, + 80.196, + 75.64, + 65.483, + 75.53699999999999, + 71.752, + 71.421, + 71.688, + 75.563, + 78.098, + 78.74600000000001, + 76.442, + 72.476, + 46.242, + 65.528, + 72.777, + 63.062, + 74.002, + 42.568000000000005, + 79.972, + 74.663, + 77.926, + 48.159, + 49.339, + 80.941, + 72.396, + 58.556000000000004, + 39.613, + 80.884, + 81.70100000000001, + 74.143, + 78.4, + 52.516999999999996, + 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.486999999999995 + ] + } + ], + "name": "2007" + } + ], + "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" + ] + ] + }, + "geo": { + "center": {}, + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "projection": { + "type": "natural earth" + } + }, + "legend": { + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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" + } + ] + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.choropleth(gapminder, locations='iso_alpha', color='lifeExp',\n", + " hover_name='country', animation_frame='year',\n", + " color_continuous_scale=px.colors.sequential.Plasma,\n", + " projection='natural earth')" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "species=setosa
sepal_width=%{x}
sepal_length=%{y}", + "legendgroup": "setosa", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "setosa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 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 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "species=setosa
sepal_width=%{x}", + "legendgroup": "setosa", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "name": "setosa", + "notched": true, + "offsetgroup": "setosa", + "showlegend": false, + "type": "box", + "x": [ + 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 + ], + "xaxis": "x3", + "yaxis": "y3" + }, + { + "alignmentgroup": "True", + "bingroup": "y", + "hovertemplate": "species=setosa
sepal_length=%{y}
count=%{x}", + "legendgroup": "setosa", + "marker": { + "color": "#636efa" + }, + "name": "setosa", + "offsetgroup": "setosa", + "opacity": 0.5, + "showlegend": false, + "type": "histogram", + "xaxis": "x2", + "y": [ + 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 + ], + "yaxis": "y2" + }, + { + "hovertemplate": "OLS trendline
sepal_length = 0.690854 * sepal_width + 2.64466
R2=0.557681

species=setosa
sepal_width=%{x}
sepal_length=%{y} (trend)", + "legendgroup": "setosa", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "lines", + "name": "setosa", + "showlegend": false, + "type": "scatter", + "x": [ + 2.3, + 2.9, + 3, + 3, + 3, + 3, + 3, + 3, + 3.1, + 3.1, + 3.1, + 3.1, + 3.1, + 3.2, + 3.2, + 3.2, + 3.2, + 3.2, + 3.3, + 3.3, + 3.4, + 3.4, + 3.4, + 3.4, + 3.4, + 3.4, + 3.4, + 3.4, + 3.4, + 3.5, + 3.5, + 3.5, + 3.5, + 3.5, + 3.5, + 3.6, + 3.6, + 3.7, + 3.7, + 3.7, + 3.8, + 3.8, + 3.8, + 3.8, + 3.9, + 3.9, + 4, + 4.1, + 4.2, + 4.4 + ], + "xaxis": "x", + "y": [ + 4.23362478562793, + 4.648137423036909, + 4.717222862605072, + 4.717222862605072, + 4.717222862605072, + 4.717222862605072, + 4.717222862605072, + 4.717222862605072, + 4.786308302173236, + 4.786308302173236, + 4.786308302173236, + 4.786308302173236, + 4.786308302173236, + 4.855393741741399, + 4.855393741741399, + 4.855393741741399, + 4.855393741741399, + 4.855393741741399, + 4.924479181309563, + 4.924479181309563, + 4.993564620877725, + 4.993564620877725, + 4.993564620877725, + 4.993564620877725, + 4.993564620877725, + 4.993564620877725, + 4.993564620877725, + 4.993564620877725, + 4.993564620877725, + 5.062650060445889, + 5.062650060445889, + 5.062650060445889, + 5.062650060445889, + 5.062650060445889, + 5.062650060445889, + 5.131735500014052, + 5.131735500014052, + 5.200820939582216, + 5.200820939582216, + 5.200820939582216, + 5.269906379150379, + 5.269906379150379, + 5.269906379150379, + 5.269906379150379, + 5.338991818718542, + 5.338991818718542, + 5.408077258286705, + 5.477162697854869, + 5.5462481374230315, + 5.684419016559358 + ], + "yaxis": "y" + }, + { + "hovertemplate": "species=versicolor
sepal_width=%{x}
sepal_length=%{y}", + "legendgroup": "versicolor", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "markers", + "name": "versicolor", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 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 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "species=versicolor
sepal_width=%{x}", + "legendgroup": "versicolor", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "name": "versicolor", + "notched": true, + "offsetgroup": "versicolor", + "showlegend": false, + "type": "box", + "x": [ + 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 + ], + "xaxis": "x3", + "yaxis": "y3" + }, + { + "alignmentgroup": "True", + "bingroup": "y", + "hovertemplate": "species=versicolor
sepal_length=%{y}
count=%{x}", + "legendgroup": "versicolor", + "marker": { + "color": "#EF553B" + }, + "name": "versicolor", + "offsetgroup": "versicolor", + "opacity": 0.5, + "showlegend": false, + "type": "histogram", + "xaxis": "x2", + "y": [ + 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 + ], + "yaxis": "y2" + }, + { + "hovertemplate": "OLS trendline
sepal_length = 0.865078 * sepal_width + 3.53973
R2=0.276582

species=versicolor
sepal_width=%{x}
sepal_length=%{y} (trend)", + "legendgroup": "versicolor", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "lines", + "name": "versicolor", + "showlegend": false, + "type": "scatter", + "x": [ + 2, + 2.2, + 2.2, + 2.3, + 2.3, + 2.3, + 2.4, + 2.4, + 2.4, + 2.5, + 2.5, + 2.5, + 2.5, + 2.6, + 2.6, + 2.6, + 2.7, + 2.7, + 2.7, + 2.7, + 2.7, + 2.8, + 2.8, + 2.8, + 2.8, + 2.8, + 2.8, + 2.9, + 2.9, + 2.9, + 2.9, + 2.9, + 2.9, + 2.9, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3.1, + 3.1, + 3.1, + 3.2, + 3.2, + 3.2, + 3.3, + 3.4 + ], + "xaxis": "x", + "y": [ + 5.269890155440414, + 5.442905699481864, + 5.442905699481864, + 5.52941347150259, + 5.52941347150259, + 5.52941347150259, + 5.6159212435233155, + 5.6159212435233155, + 5.6159212435233155, + 5.70242901554404, + 5.70242901554404, + 5.70242901554404, + 5.70242901554404, + 5.788936787564766, + 5.788936787564766, + 5.788936787564766, + 5.875444559585491, + 5.875444559585491, + 5.875444559585491, + 5.875444559585491, + 5.875444559585491, + 5.961952331606216, + 5.961952331606216, + 5.961952331606216, + 5.961952331606216, + 5.961952331606216, + 5.961952331606216, + 6.048460103626942, + 6.048460103626942, + 6.048460103626942, + 6.048460103626942, + 6.048460103626942, + 6.048460103626942, + 6.048460103626942, + 6.134967875647668, + 6.134967875647668, + 6.134967875647668, + 6.134967875647668, + 6.134967875647668, + 6.134967875647668, + 6.134967875647668, + 6.134967875647668, + 6.221475647668393, + 6.221475647668393, + 6.221475647668393, + 6.307983419689118, + 6.307983419689118, + 6.307983419689118, + 6.394491191709843, + 6.480998963730569 + ], + "yaxis": "y" + }, + { + "hovertemplate": "species=virginica
sepal_width=%{x}
sepal_length=%{y}", + "legendgroup": "virginica", + "marker": { + "color": "#00cc96", + "symbol": "circle" + }, + "mode": "markers", + "name": "virginica", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 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 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "species=virginica
sepal_width=%{x}", + "legendgroup": "virginica", + "marker": { + "color": "#00cc96", + "symbol": "circle" + }, + "name": "virginica", + "notched": true, + "offsetgroup": "virginica", + "showlegend": false, + "type": "box", + "x": [ + 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 + ], + "xaxis": "x3", + "yaxis": "y3" + }, + { + "alignmentgroup": "True", + "bingroup": "y", + "hovertemplate": "species=virginica
sepal_length=%{y}
count=%{x}", + "legendgroup": "virginica", + "marker": { + "color": "#00cc96" + }, + "name": "virginica", + "offsetgroup": "virginica", + "opacity": 0.5, + "showlegend": false, + "type": "histogram", + "xaxis": "x2", + "y": [ + 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 + ], + "yaxis": "y2" + }, + { + "hovertemplate": "OLS trendline
sepal_length = 0.901534 * sepal_width + 3.90684
R2=0.209057

species=virginica
sepal_width=%{x}
sepal_length=%{y} (trend)", + "legendgroup": "virginica", + "marker": { + "color": "#00cc96", + "symbol": "circle" + }, + "mode": "lines", + "name": "virginica", + "showlegend": false, + "type": "scatter", + "x": [ + 2.2, + 2.5, + 2.5, + 2.5, + 2.5, + 2.6, + 2.6, + 2.7, + 2.7, + 2.7, + 2.7, + 2.8, + 2.8, + 2.8, + 2.8, + 2.8, + 2.8, + 2.8, + 2.8, + 2.9, + 2.9, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3.1, + 3.1, + 3.1, + 3.1, + 3.2, + 3.2, + 3.2, + 3.2, + 3.2, + 3.3, + 3.3, + 3.3, + 3.4, + 3.4, + 3.6, + 3.8, + 3.8 + ], + "xaxis": "x", + "y": [ + 5.8902123150582755, + 6.160672658058943, + 6.160672658058943, + 6.160672658058943, + 6.160672658058943, + 6.2508261057258325, + 6.2508261057258325, + 6.340979553392722, + 6.340979553392722, + 6.340979553392722, + 6.340979553392722, + 6.431133001059611, + 6.431133001059611, + 6.431133001059611, + 6.431133001059611, + 6.431133001059611, + 6.431133001059611, + 6.431133001059611, + 6.431133001059611, + 6.5212864487265, + 6.5212864487265, + 6.61143989639339, + 6.61143989639339, + 6.61143989639339, + 6.61143989639339, + 6.61143989639339, + 6.61143989639339, + 6.61143989639339, + 6.61143989639339, + 6.61143989639339, + 6.61143989639339, + 6.61143989639339, + 6.61143989639339, + 6.70159334406028, + 6.70159334406028, + 6.70159334406028, + 6.70159334406028, + 6.791746791727169, + 6.791746791727169, + 6.791746791727169, + 6.791746791727169, + 6.791746791727169, + 6.881900239394057, + 6.881900239394057, + 6.881900239394057, + 6.972053687060947, + 6.972053687060947, + 7.152360582394726, + 7.332667477728504, + 7.332667477728504 + ], + "yaxis": "y" + } + ], + "layout": { + "barmode": "overlay", + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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, + 0.7363 + ], + "title": { + "text": "sepal_width" + } + }, + "xaxis2": { + "anchor": "y2", + "domain": [ + 0.7413, + 1 + ], + "matches": "x2", + "showgrid": true, + "showline": false, + "showticklabels": false, + "ticks": "" + }, + "xaxis3": { + "anchor": "y3", + "domain": [ + 0, + 0.7363 + ], + "matches": "x", + "showgrid": true, + "showticklabels": false + }, + "xaxis4": { + "anchor": "y4", + "domain": [ + 0.7413, + 1 + ], + "matches": "x2", + "showgrid": true, + "showline": false, + "showticklabels": false, + "ticks": "" + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 0.7326 + ], + "title": { + "text": "sepal_length" + } + }, + "yaxis2": { + "anchor": "x2", + "domain": [ + 0, + 0.7326 + ], + "matches": "y", + "showgrid": true, + "showticklabels": false + }, + "yaxis3": { + "anchor": "x3", + "domain": [ + 0.7426, + 1 + ], + "matches": "y3", + "showgrid": false, + "showline": false, + "showticklabels": false, + "ticks": "" + }, + "yaxis4": { + "anchor": "x4", + "domain": [ + 0.7426, + 1 + ], + "matches": "y3", + "showgrid": true, + "showline": false, + "showticklabels": false, + "ticks": "" + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "iris = px.data.iris()\n", + "\n", + "px.scatter(iris, x='sepal_width', y='sepal_length', \n", + " color='species', marginal_y='histogram',\n", + " marginal_x='box', trendline='ols')" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "smoker=No
time=Lunch
day=Thur
total_bill=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "No", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 27.2, + 22.76, + 17.29, + 16.66, + 10.07, + 15.98, + 34.83, + 13.03, + 18.28, + 24.71, + 21.16, + 10.65, + 12.43, + 24.08, + 11.69, + 13.42, + 14.26, + 15.95, + 12.48, + 29.8, + 8.52, + 14.52, + 11.38, + 22.82, + 19.08, + 20.27, + 11.17, + 12.26, + 18.26, + 8.51, + 10.33, + 14.15, + 13.16, + 17.47, + 34.3, + 41.19, + 27.05, + 16.43, + 8.35, + 18.64, + 11.87, + 9.78, + 7.51, + 7.56 + ], + "xaxis": "x5", + "y": [ + 4, + 3, + 2.71, + 3.4, + 1.83, + 2.03, + 5.17, + 2, + 4, + 5.85, + 3, + 1.5, + 1.8, + 2.92, + 2.31, + 1.68, + 2.5, + 2, + 2.52, + 4.2, + 1.48, + 2, + 2, + 2.18, + 1.5, + 2.83, + 1.5, + 2, + 3.25, + 1.25, + 2, + 2, + 2.75, + 3.5, + 6.7, + 5, + 5, + 2.3, + 1.5, + 1.36, + 1.63, + 1.73, + 2, + 1.44 + ], + "yaxis": "y5" + }, + { + "hovertemplate": "OLS trendline
tip = 0.139041 * total_bill + 0.292202
R2=0.700600

smoker=No
time=Lunch
day=Thur
total_bill=%{x}
tip=%{y} (trend)", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "lines", + "name": "No", + "showlegend": false, + "type": "scatter", + "x": [ + 7.51, + 7.56, + 8.35, + 8.51, + 8.52, + 9.78, + 10.07, + 10.33, + 10.65, + 11.17, + 11.38, + 11.69, + 11.87, + 12.26, + 12.43, + 12.48, + 13.03, + 13.16, + 13.42, + 14.15, + 14.26, + 14.52, + 15.95, + 15.98, + 16.43, + 16.66, + 17.29, + 17.47, + 18.26, + 18.28, + 18.64, + 19.08, + 20.27, + 21.16, + 22.76, + 22.82, + 24.08, + 24.71, + 27.05, + 27.2, + 29.8, + 34.3, + 34.83, + 41.19 + ], + "xaxis": "x5", + "y": [ + 1.3364023693233609, + 1.3433544324010063, + 1.4531970290278031, + 1.4754436308762682, + 1.4768340434917973, + 1.6520260330484606, + 1.6923479988988037, + 1.7284987269025598, + 1.7729919305994901, + 1.8452933866070018, + 1.8744920515331125, + 1.9175948426145137, + 1.942622269694037, + 1.9968483616996708, + 2.0204853761636654, + 2.027437439241311, + 2.1039101330954098, + 2.121985497097288, + 2.1581362251010434, + 2.259636346034666, + 2.2749308848054857, + 2.3110816128092417, + 2.5099106168298992, + 2.5140818546764865, + 2.5766504223752946, + 2.6086299125324635, + 2.696225907310795, + 2.7212533343903185, + 2.8310959310171153, + 2.8338767562481735, + 2.8839316104072203, + 2.945109765490499, + 3.110568866738459, + 3.2343155895205467, + 3.4567816080051985, + 3.465124083698373, + 3.6403160732550357, + 3.7279120680333677, + 4.053268620067171, + 4.074124809300106, + 4.435632089337666, + 5.0613177663257485, + 5.13500963494879, + 6.01931205842528 + ], + "yaxis": "y5" + }, + { + "hovertemplate": "smoker=No
time=Lunch
day=Fri
total_bill=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "No", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 15.98 + ], + "xaxis": "x6", + "y": [ + 3 + ], + "yaxis": "y6" + }, + { + "hovertemplate": "smoker=No
time=Lunch
day=Fri", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "lines", + "name": "No", + "showlegend": false, + "type": "scatter", + "xaxis": "x6", + "yaxis": "y6" + }, + { + "hovertemplate": "smoker=No
time=Dinner
day=Thur
total_bill=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "No", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 18.78 + ], + "xaxis": "x", + "y": [ + 3 + ], + "yaxis": "y" + }, + { + "hovertemplate": "smoker=No
time=Dinner
day=Thur", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "lines", + "name": "No", + "showlegend": false, + "type": "scatter", + "xaxis": "x", + "yaxis": "y" + }, + { + "hovertemplate": "smoker=No
time=Dinner
day=Fri
total_bill=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "No", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 22.49, + 22.75, + 12.46 + ], + "xaxis": "x2", + "y": [ + 3.5, + 3.25, + 1.5 + ], + "yaxis": "y2" + }, + { + "hovertemplate": "OLS trendline
tip = 0.183985 * total_bill + -0.788637
R2=0.981316

smoker=No
time=Dinner
day=Fri
total_bill=%{x}
tip=%{y} (trend)", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "lines", + "name": "No", + "showlegend": false, + "type": "scatter", + "x": [ + 12.46, + 22.49, + 22.75 + ], + "xaxis": "x2", + "y": [ + 1.5038108936900314, + 3.3491765535752136, + 3.39701255273475 + ], + "yaxis": "y2" + }, + { + "hovertemplate": "smoker=No
time=Dinner
day=Sat
total_bill=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "No", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 20.65, + 17.92, + 20.29, + 15.77, + 39.42, + 19.82, + 17.81, + 13.37, + 12.69, + 21.7, + 19.65, + 9.55, + 18.35, + 15.06, + 20.69, + 17.78, + 24.06, + 16.31, + 16.93, + 18.69, + 31.27, + 16.04, + 26.41, + 48.27, + 17.59, + 20.08, + 16.45, + 20.23, + 12.02, + 17.07, + 14.73, + 10.51, + 20.92, + 18.24, + 14, + 7.25, + 48.33, + 20.45, + 13.28, + 11.61, + 10.77, + 10.07, + 35.83, + 29.03, + 17.82 + ], + "xaxis": "x3", + "y": [ + 3.35, + 4.08, + 2.75, + 2.23, + 7.58, + 3.18, + 2.34, + 2, + 2, + 4.3, + 3, + 1.45, + 2.5, + 3, + 2.45, + 3.27, + 3.6, + 2, + 3.07, + 2.31, + 5, + 2.24, + 1.5, + 6.73, + 2.64, + 3.15, + 2.47, + 2.01, + 1.97, + 3, + 2.2, + 1.25, + 4.08, + 3.76, + 3, + 1, + 9, + 3, + 2.72, + 3.39, + 1.47, + 1.25, + 4.67, + 5.92, + 1.75 + ], + "yaxis": "y3" + }, + { + "hovertemplate": "OLS trendline
tip = 0.16093 * total_bill + -0.0612781
R2=0.767496

smoker=No
time=Dinner
day=Sat
total_bill=%{x}
tip=%{y} (trend)", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "lines", + "name": "No", + "showlegend": false, + "type": "scatter", + "x": [ + 7.25, + 9.55, + 10.07, + 10.51, + 10.77, + 11.61, + 12.02, + 12.69, + 13.28, + 13.37, + 14, + 14.73, + 15.06, + 15.77, + 16.04, + 16.31, + 16.45, + 16.93, + 17.07, + 17.59, + 17.78, + 17.81, + 17.82, + 17.92, + 18.24, + 18.35, + 18.69, + 19.65, + 19.82, + 20.08, + 20.23, + 20.29, + 20.45, + 20.65, + 20.69, + 20.92, + 21.7, + 24.06, + 26.41, + 29.03, + 31.27, + 35.83, + 39.42, + 48.27, + 48.33 + ], + "xaxis": "x3", + "y": [ + 1.1054633239385223, + 1.4756019843011938, + 1.5592855075136238, + 1.630094642539526, + 1.671936404145741, + 1.8071174801042817, + 1.8730987195602364, + 1.9809217206224057, + 2.0758703334980475, + 2.0903540202078914, + 2.191739827176797, + 2.3092186193788624, + 2.362325470648289, + 2.4765856658037224, + 2.5200367259332532, + 2.563487786062784, + 2.5860179653892077, + 2.663264294508374, + 2.6857944738347976, + 2.7694779970472276, + 2.800054668990231, + 2.8048825645601787, + 2.8064918630834947, + 2.8225848483166547, + 2.874082401062765, + 2.891784684819241, + 2.946500834611984, + 3.1009934928503156, + 3.1283515677466873, + 3.170193329352902, + 3.194332807202642, + 3.203988598342537, + 3.229737374715593, + 3.261923345181912, + 3.268360539275176, + 3.3053744053114436, + 3.430899690130088, + 3.810694141632655, + 4.1888792946119064, + 4.610515507720689, + 4.970998376943465, + 5.704838503575544, + 6.282576673445974, + 7.706805866580601, + 7.7164616577204965 + ], + "yaxis": "y3" + }, + { + "hovertemplate": "smoker=No
time=Dinner
day=Sun
total_bill=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "No", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 16.99, + 10.34, + 21.01, + 23.68, + 24.59, + 25.29, + 8.77, + 26.88, + 15.04, + 14.78, + 10.27, + 35.26, + 15.42, + 18.43, + 14.83, + 21.58, + 10.33, + 16.29, + 16.97, + 17.46, + 13.94, + 9.68, + 30.4, + 18.29, + 22.23, + 32.4, + 28.55, + 18.04, + 12.54, + 10.29, + 34.81, + 9.94, + 25.56, + 19.49, + 38.07, + 23.95, + 25.71, + 17.31, + 29.93, + 14.07, + 13.13, + 17.26, + 24.55, + 19.77, + 29.85, + 48.17, + 25, + 13.39, + 16.49, + 21.5, + 12.66, + 16.21, + 13.81, + 24.52, + 20.76, + 31.71, + 20.69 + ], + "xaxis": "x4", + "y": [ + 1.01, + 1.66, + 3.5, + 3.31, + 3.61, + 4.71, + 2, + 3.12, + 1.96, + 3.23, + 1.71, + 5, + 1.57, + 3, + 3.02, + 3.92, + 1.67, + 3.71, + 3.5, + 2.54, + 3.06, + 1.32, + 5.6, + 3, + 5, + 6, + 2.05, + 3, + 2.5, + 2.6, + 5.2, + 1.56, + 4.34, + 3.51, + 4, + 2.55, + 4, + 3.5, + 5.07, + 2.5, + 2, + 2.74, + 2, + 2, + 5.14, + 5, + 3.75, + 2.61, + 2, + 3.5, + 2.5, + 2, + 2, + 3.48, + 2.24, + 4.5, + 5 + ], + "yaxis": "y4" + }, + { + "hovertemplate": "OLS trendline
tip = 0.111709 * total_bill + 0.877124
R2=0.549863

smoker=No
time=Dinner
day=Sun
total_bill=%{x}
tip=%{y} (trend)", + "legendgroup": "No", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "lines", + "name": "No", + "showlegend": false, + "type": "scatter", + "x": [ + 8.77, + 9.68, + 9.94, + 10.27, + 10.29, + 10.33, + 10.34, + 12.54, + 12.66, + 13.13, + 13.39, + 13.81, + 13.94, + 14.07, + 14.78, + 14.83, + 15.04, + 15.42, + 16.21, + 16.29, + 16.49, + 16.97, + 16.99, + 17.26, + 17.31, + 17.46, + 18.04, + 18.29, + 18.43, + 19.49, + 19.77, + 20.69, + 20.76, + 21.01, + 21.5, + 21.58, + 22.23, + 23.68, + 23.95, + 24.52, + 24.55, + 24.59, + 25, + 25.29, + 25.56, + 25.71, + 26.88, + 28.55, + 29.85, + 29.93, + 30.4, + 31.71, + 32.4, + 34.81, + 35.26, + 38.07, + 48.17 + ], + "xaxis": "x4", + "y": [ + 1.856808538018798, + 1.9584633327585774, + 1.9875075598270857, + 2.024371386490962, + 2.026605557803924, + 2.031073900429848, + 2.0321909860863294, + 2.2779498305121697, + 2.291354858389943, + 2.343857884244554, + 2.3729021113130626, + 2.419819708885268, + 2.4343418224195226, + 2.448863935953777, + 2.528177017563934, + 2.5337624458463397, + 2.5572212446324425, + 2.599670499578724, + 2.6879202664407305, + 2.6968569516925793, + 2.719198664822201, + 2.772818776333293, + 2.7750529476462553, + 2.805214260371245, + 2.8107996886536504, + 2.827555973500867, + 2.89234694157677, + 2.920274082988797, + 2.9359132821795324, + 3.054324361766528, + 3.0856027601479994, + 3.18837464054426, + 3.1961942401396275, + 3.2241213815516545, + 3.2788585787192277, + 3.287795263971076, + 3.360405831642348, + 3.522383251832106, + 3.5525445645570954, + 3.616218446976518, + 3.6195697039459613, + 3.6240380465718856, + 3.6698385584876103, + 3.7022340425255615, + 3.732395355250551, + 3.749151640097768, + 3.8798506619060555, + 4.066403966538398, + 4.21162510188094, + 4.220561787132788, + 4.2730648129874, + 4.4194030339864225, + 4.496481944283618, + 4.765699587495561, + 4.81596844203721, + 5.129869511508398, + 6.258126024554301 + ], + "yaxis": "y4" + }, + { + "hovertemplate": "smoker=Yes
time=Lunch
day=Thur
total_bill=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "markers", + "name": "Yes", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 19.44, + 32.68, + 16, + 19.81, + 28.44, + 15.48, + 16.58, + 10.34, + 43.11, + 13, + 13.51, + 18.71, + 12.74, + 13, + 16.4, + 20.53, + 16.47 + ], + "xaxis": "x5", + "y": [ + 3, + 5, + 2, + 4.19, + 2.56, + 2.02, + 4, + 2, + 5, + 2, + 2, + 4, + 2.01, + 2, + 2.5, + 4, + 3.23 + ], + "yaxis": "y5" + }, + { + "hovertemplate": "OLS trendline
tip = 0.0990461 * total_bill + 1.12925
R2=0.552344

smoker=Yes
time=Lunch
day=Thur
total_bill=%{x}
tip=%{y} (trend)", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "lines", + "name": "Yes", + "showlegend": false, + "type": "scatter", + "x": [ + 10.34, + 12.74, + 13, + 13, + 13.51, + 15.48, + 16, + 16.4, + 16.47, + 16.58, + 18.71, + 19.44, + 19.81, + 20.53, + 28.44, + 32.68, + 43.11 + ], + "xaxis": "x5", + "y": [ + 2.1533836248599556, + 2.3910942994958306, + 2.416846289248051, + 2.416846289248051, + 2.467359807608174, + 2.662480653038455, + 2.7139846325428945, + 2.75360307831554, + 2.7605363063257533, + 2.7714313789132308, + 2.98239960265257, + 3.0547032661876488, + 3.091350328527346, + 3.162663530918109, + 3.9461182960721803, + 4.366073821262226, + 5.399124794783967 + ], + "yaxis": "y5" + }, + { + "hovertemplate": "smoker=Yes
time=Lunch
day=Fri
total_bill=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "markers", + "name": "Yes", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 12.16, + 13.42, + 8.58, + 13.42, + 16.27, + 10.09 + ], + "xaxis": "x6", + "y": [ + 2.2, + 3.48, + 1.92, + 1.58, + 2.5, + 2 + ], + "yaxis": "y6" + }, + { + "hovertemplate": "OLS trendline
tip = 0.091941 * total_bill + 1.14698
R2=0.142666

smoker=Yes
time=Lunch
day=Fri
total_bill=%{x}
tip=%{y} (trend)", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "lines", + "name": "Yes", + "showlegend": false, + "type": "scatter", + "x": [ + 8.58, + 10.09, + 12.16, + 13.42, + 13.42, + 16.27 + ], + "xaxis": "x6", + "y": [ + 1.9358343481143083, + 2.0746651943335586, + 2.2649829768990206, + 2.3808285836779977, + 2.3808285836779977, + 2.6428603132971125 + ], + "yaxis": "y6" + }, + { + "hovertemplate": "smoker=Yes
time=Dinner
day=Fri
total_bill=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "markers", + "name": "Yes", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 28.97, + 5.75, + 16.32, + 40.17, + 27.28, + 12.03, + 21.01, + 11.35, + 15.38 + ], + "xaxis": "x2", + "y": [ + 3, + 1, + 4.3, + 4.73, + 4, + 1.5, + 3, + 2.5, + 3 + ], + "yaxis": "y2" + }, + { + "hovertemplate": "OLS trendline
tip = 0.089588 * total_bill + 1.22889
R2=0.604292

smoker=Yes
time=Dinner
day=Fri
total_bill=%{x}
tip=%{y} (trend)", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "lines", + "name": "Yes", + "showlegend": false, + "type": "scatter", + "x": [ + 5.75, + 11.35, + 12.03, + 15.38, + 16.32, + 21.01, + 27.28, + 28.97, + 40.17 + ], + "xaxis": "x2", + "y": [ + 1.7440246950916154, + 2.2457174890793046, + 2.306637328349238, + 2.606757124752588, + 2.690969843743378, + 3.111137558708068, + 3.672854311976427, + 3.8242580301619977, + 4.827643618137375 + ], + "yaxis": "y2" + }, + { + "hovertemplate": "smoker=Yes
time=Dinner
day=Sat
total_bill=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "markers", + "name": "Yes", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 38.01, + 11.24, + 20.29, + 13.81, + 11.02, + 18.29, + 3.07, + 15.01, + 26.86, + 25.28, + 17.92, + 44.3, + 22.42, + 15.36, + 20.49, + 25.21, + 14.31, + 10.59, + 10.63, + 50.81, + 15.81, + 26.59, + 38.73, + 24.27, + 12.76, + 30.06, + 25.89, + 13.27, + 28.17, + 12.9, + 28.15, + 11.59, + 7.74, + 30.14, + 22.12, + 24.01, + 15.69, + 15.53, + 12.6, + 32.83, + 27.18, + 22.67 + ], + "xaxis": "x3", + "y": [ + 3, + 1.76, + 3.21, + 2, + 1.98, + 3.76, + 1, + 2.09, + 3.14, + 5, + 3.08, + 2.5, + 3.48, + 1.64, + 4.06, + 4.29, + 4, + 1.61, + 2, + 10, + 3.16, + 3.41, + 3, + 2.03, + 2.23, + 2, + 5.16, + 2.5, + 6.5, + 1.1, + 3, + 1.5, + 1.44, + 3.09, + 2.88, + 2, + 3, + 3, + 1, + 1.17, + 2, + 2 + ], + "yaxis": "y3" + }, + { + "hovertemplate": "OLS trendline
tip = 0.0908935 * total_bill + 0.941566
R2=0.315040

smoker=Yes
time=Dinner
day=Sat
total_bill=%{x}
tip=%{y} (trend)", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "lines", + "name": "Yes", + "showlegend": false, + "type": "scatter", + "x": [ + 3.07, + 7.74, + 10.59, + 10.63, + 11.02, + 11.24, + 11.59, + 12.6, + 12.76, + 12.9, + 13.27, + 13.81, + 14.31, + 15.01, + 15.36, + 15.53, + 15.69, + 15.81, + 17.92, + 18.29, + 20.29, + 20.49, + 22.12, + 22.42, + 22.67, + 24.01, + 24.27, + 25.21, + 25.28, + 25.89, + 26.59, + 26.86, + 27.18, + 28.15, + 28.17, + 30.06, + 30.14, + 32.83, + 38.01, + 38.73, + 44.3, + 50.81 + ], + "xaxis": "x3", + "y": [ + 1.2206090488624524, + 1.6450815617516592, + 1.904127956127299, + 1.907763694995729, + 1.943212148962922, + 1.9632087127392874, + 1.9950214278380498, + 2.0868238342659082, + 2.1013667897396284, + 2.114091875779134, + 2.1477224603121114, + 2.196804935035917, + 2.2422516708912923, + 2.305877101088818, + 2.3376898161875808, + 2.3531417063784086, + 2.367684661852129, + 2.378591878457419, + 2.5703771037671035, + 2.604007688300081, + 2.7857946317215827, + 2.803973326063733, + 2.952129684952257, + 2.979397726465482, + 3.00212109439317, + 3.123918346485576, + 3.147550649130371, + 3.232990512538477, + 3.2393530555582295, + 3.294798073301788, + 3.358423503499313, + 3.382964740861216, + 3.412050651808656, + 3.5002173193680846, + 3.5020351888023, + 3.673823850335619, + 3.681095328072479, + 3.9255987669743986, + 4.396426950436089, + 4.461870250067829, + 4.968146887496712, + 5.5598633883337 + ], + "yaxis": "y3" + }, + { + "hovertemplate": "smoker=Yes
time=Dinner
day=Sun
total_bill=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "markers", + "name": "Yes", + "orientation": "v", + "showlegend": false, + "type": "scatter", + "x": [ + 17.51, + 7.25, + 31.85, + 16.82, + 32.9, + 17.89, + 14.48, + 9.6, + 34.63, + 34.65, + 23.33, + 45.35, + 23.17, + 40.55, + 20.9, + 30.46, + 18.15, + 23.1, + 15.69 + ], + "xaxis": "x4", + "y": [ + 3, + 5.15, + 3.18, + 4, + 3.11, + 2, + 2, + 4, + 3.55, + 3.68, + 5.65, + 3.5, + 6.5, + 3, + 3.5, + 2, + 3.5, + 4, + 1.5 + ], + "yaxis": "y4" + }, + { + "hovertemplate": "OLS trendline
tip = -0.0107171 * total_bill + 3.77534
R2=0.007875

smoker=Yes
time=Dinner
day=Sun
total_bill=%{x}
tip=%{y} (trend)", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "lines", + "name": "Yes", + "showlegend": false, + "type": "scatter", + "x": [ + 7.25, + 9.6, + 14.48, + 15.69, + 16.82, + 17.51, + 17.89, + 18.15, + 20.9, + 23.1, + 23.17, + 23.33, + 30.46, + 31.85, + 32.9, + 34.63, + 34.65, + 40.55, + 45.35 + ], + "xaxis": "x4", + "y": [ + 3.6976401621288417, + 3.672454896353243, + 3.6201552806149775, + 3.6071875480241373, + 3.595077186183105, + 3.5876823634660138, + 3.5836098524044275, + 3.5808233974675527, + 3.5513512779429157, + 3.527773582323206, + 3.5270233829171245, + 3.525308641417509, + 3.4488954733409045, + 3.433998656562997, + 3.422745665471772, + 3.404205023007182, + 3.40399068031973, + 3.3407595875214176, + 3.2893173425329603 + ], + "yaxis": "y4" + } + ], + "layout": { + "annotations": [ + { + "font": {}, + "showarrow": false, + "text": "day=Thur", + "x": 0.11499999999999999, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Fri", + "x": 0.365, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Sat", + "x": 0.615, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Sun", + "x": 0.865, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "time=Dinner", + "textangle": 90, + "x": 0.98, + "xanchor": "left", + "xref": "paper", + "y": 0.2425, + "yanchor": "middle", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "time=Lunch", + "textangle": 90, + "x": 0.98, + "xanchor": "left", + "xref": "paper", + "y": 0.7575000000000001, + "yanchor": "middle", + "yref": "paper" + } + ], + "legend": { + "title": { + "text": "smoker" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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, + 0.22999999999999998 + ], + "title": { + "text": "total_bill" + } + }, + "xaxis2": { + "anchor": "y2", + "domain": [ + 0.24999999999999997, + 0.48 + ], + "matches": "x", + "title": { + "text": "total_bill" + } + }, + "xaxis3": { + "anchor": "y3", + "domain": [ + 0.49999999999999994, + 0.73 + ], + "matches": "x", + "title": { + "text": "total_bill" + } + }, + "xaxis4": { + "anchor": "y4", + "domain": [ + 0.75, + 0.98 + ], + "matches": "x", + "title": { + "text": "total_bill" + } + }, + "xaxis5": { + "anchor": "y5", + "domain": [ + 0, + 0.22999999999999998 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis6": { + "anchor": "y6", + "domain": [ + 0.24999999999999997, + 0.48 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis7": { + "anchor": "y7", + "domain": [ + 0.49999999999999994, + 0.73 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis8": { + "anchor": "y8", + "domain": [ + 0.75, + 0.98 + ], + "matches": "x", + "showticklabels": false + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 0.485 + ], + "title": { + "text": "tip" + } + }, + "yaxis2": { + "anchor": "x2", + "domain": [ + 0, + 0.485 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis3": { + "anchor": "x3", + "domain": [ + 0, + 0.485 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis4": { + "anchor": "x4", + "domain": [ + 0, + 0.485 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis5": { + "anchor": "x5", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "title": { + "text": "tip" + } + }, + "yaxis6": { + "anchor": "x6", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis7": { + "anchor": "x7", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis8": { + "anchor": "x8", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "showticklabels": false + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "tips = px.data.tips()\n", + "\n", + "px.scatter(tips, x='total_bill', y='tip',facet_row='time',\n", + " facet_col='day',color='smoker',trendline='ols',\n", + " category_orders={'day':['Thur', 'Fri', 'Sat', 'Sun'], 'time':['Lunch', 'Dinner']})" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "dimensions": [ + { + "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, + 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, + 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 + ] + }, + { + "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, + 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, + 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 + ] + }, + { + "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, + 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, + 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 + ] + }, + { + "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, + 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, + 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 + ] + }, + { + "label": "species_id", + "values": [ + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3 + ] + } + ], + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "line": { + "color": [ + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3 + ], + "coloraxis": "coloraxis" + }, + "name": "", + "type": "parcoords" + } + ], + "layout": { + "coloraxis": { + "cmid": 2, + "colorbar": { + "title": { + "text": "species_id" + } + }, + "colorscale": [ + [ + 0, + "rgb(0, 147, 146)" + ], + [ + 0.16666666666666666, + "rgb(114, 170, 161)" + ], + [ + 0.3333333333333333, + "rgb(177, 199, 179)" + ], + [ + 0.5, + "rgb(241, 234, 200)" + ], + [ + 0.6666666666666666, + "rgb(229, 185, 173)" + ], + [ + 0.8333333333333334, + "rgb(217, 137, 148)" + ], + [ + 1, + "rgb(208, 88, 126)" + ] + ] + }, + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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 + } + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.parallel_coordinates(iris, color='species_id',\n", + " color_continuous_scale=px.colors.diverging.Tealrose,\n", + " color_continuous_midpoint=2)" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "dimensions": [ + { + "label": "sex", + "values": [ + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Male", + "Female", + "Female", + "Female", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Male", + "Female", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Female", + "Female", + "Female", + "Female", + "Male", + "Female", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Female", + "Male", + "Female", + "Female", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male", + "Female" + ] + }, + { + "label": "smoker", + "values": [ + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "Yes", + "No", + "Yes", + "No", + "Yes", + "Yes", + "Yes", + "Yes", + "No", + "No", + "No", + "Yes", + "No", + "Yes", + "No", + "No", + "Yes", + "Yes", + "No", + "No", + "Yes", + "No", + "No", + "No", + "Yes", + "No", + "No", + "Yes", + "No", + "No", + "No", + "No", + "No", + "No", + "Yes", + "No", + "Yes", + "Yes", + "No", + "Yes", + "Yes", + "Yes", + "Yes", + "No", + "Yes", + "Yes", + "Yes", + "Yes", + "No", + "Yes", + "Yes", + "Yes", + "No", + "Yes", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "Yes", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "No", + "Yes", + "No", + "No", + "No", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "No", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "No", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "No", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "Yes", + "No", + "Yes", + "Yes", + "Yes", + "No", + "No", + "Yes", + "Yes", + "Yes", + "No", + "No", + "Yes", + "No", + "Yes", + "Yes", + "No", + "No", + "Yes", + "Yes", + "No", + "No" + ] + }, + { + "label": "day", + "values": [ + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sat", + "Sat", + "Sat", + "Sat", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Sun", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Thur", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Fri", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Sat", + "Thur" + ] + }, + { + "label": "time", + "values": [ + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Lunch", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner", + "Dinner" + ] + }, + { + "label": "size", + "values": [ + 2, + 3, + 3, + 2, + 4, + 4, + 2, + 4, + 2, + 2, + 2, + 4, + 2, + 4, + 2, + 2, + 3, + 3, + 3, + 3, + 2, + 2, + 2, + 4, + 2, + 4, + 2, + 2, + 2, + 2, + 2, + 4, + 2, + 4, + 2, + 3, + 3, + 3, + 3, + 3, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 4, + 3, + 2, + 2, + 2, + 4, + 2, + 4, + 2, + 4, + 2, + 2, + 4, + 2, + 2, + 2, + 4, + 3, + 3, + 2, + 1, + 2, + 2, + 2, + 3, + 2, + 2, + 2, + 2, + 2, + 4, + 2, + 2, + 2, + 2, + 1, + 2, + 2, + 4, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 4, + 2, + 2, + 2, + 2, + 2, + 2, + 3, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 1, + 3, + 2, + 3, + 2, + 4, + 2, + 2, + 4, + 2, + 2, + 2, + 2, + 2, + 6, + 2, + 2, + 2, + 3, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 6, + 5, + 6, + 2, + 2, + 3, + 2, + 2, + 2, + 2, + 2, + 3, + 4, + 4, + 5, + 6, + 4, + 2, + 4, + 4, + 2, + 3, + 2, + 2, + 3, + 2, + 4, + 2, + 2, + 3, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 4, + 2, + 3, + 4, + 2, + 5, + 3, + 5, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 4, + 2, + 2, + 3, + 2, + 2, + 2, + 4, + 3, + 3, + 4, + 2, + 2, + 3, + 4, + 4, + 2, + 3, + 2, + 5, + 2, + 2, + 4, + 2, + 2, + 1, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 4, + 3, + 2, + 2, + 2, + 2, + 2, + 2, + 3, + 3, + 2, + 2, + 2, + 2 + ] + } + ], + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "line": { + "color": [ + 2, + 3, + 3, + 2, + 4, + 4, + 2, + 4, + 2, + 2, + 2, + 4, + 2, + 4, + 2, + 2, + 3, + 3, + 3, + 3, + 2, + 2, + 2, + 4, + 2, + 4, + 2, + 2, + 2, + 2, + 2, + 4, + 2, + 4, + 2, + 3, + 3, + 3, + 3, + 3, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 4, + 3, + 2, + 2, + 2, + 4, + 2, + 4, + 2, + 4, + 2, + 2, + 4, + 2, + 2, + 2, + 4, + 3, + 3, + 2, + 1, + 2, + 2, + 2, + 3, + 2, + 2, + 2, + 2, + 2, + 4, + 2, + 2, + 2, + 2, + 1, + 2, + 2, + 4, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 4, + 2, + 2, + 2, + 2, + 2, + 2, + 3, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 1, + 3, + 2, + 3, + 2, + 4, + 2, + 2, + 4, + 2, + 2, + 2, + 2, + 2, + 6, + 2, + 2, + 2, + 3, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 6, + 5, + 6, + 2, + 2, + 3, + 2, + 2, + 2, + 2, + 2, + 3, + 4, + 4, + 5, + 6, + 4, + 2, + 4, + 4, + 2, + 3, + 2, + 2, + 3, + 2, + 4, + 2, + 2, + 3, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 4, + 2, + 3, + 4, + 2, + 5, + 3, + 5, + 3, + 3, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 4, + 2, + 2, + 3, + 2, + 2, + 2, + 4, + 3, + 3, + 4, + 2, + 2, + 3, + 4, + 4, + 2, + 3, + 2, + 5, + 2, + 2, + 4, + 2, + 2, + 1, + 3, + 2, + 2, + 2, + 4, + 2, + 2, + 4, + 3, + 2, + 2, + 2, + 2, + 2, + 2, + 3, + 3, + 2, + 2, + 2, + 2 + ], + "coloraxis": "coloraxis" + }, + "name": "", + "type": "parcats" + } + ], + "layout": { + "coloraxis": { + "colorbar": { + "title": { + "text": "size" + } + }, + "colorscale": [ + [ + 0, + "#000004" + ], + [ + 0.1111111111111111, + "#1b0c41" + ], + [ + 0.2222222222222222, + "#4a0c6b" + ], + [ + 0.3333333333333333, + "#781c6d" + ], + [ + 0.4444444444444444, + "#a52c60" + ], + [ + 0.5555555555555556, + "#cf4446" + ], + [ + 0.6666666666666666, + "#ed6925" + ], + [ + 0.7777777777777778, + "#fb9b06" + ], + [ + 0.8888888888888888, + "#f7d13d" + ], + [ + 1, + "#fcffa4" + ] + ] + }, + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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 + } + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.parallel_categories(tips, color=\"size\", color_continuous_scale=px.colors.sequential.Inferno)" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "contours": { + "coloring": "none" + }, + "hovertemplate": "sepal_width=%{x}
sepal_length=%{y}
count=%{z}", + "legendgroup": "", + "line": { + "color": "#636efa" + }, + "name": "", + "showlegend": false, + "type": "histogram2dcontour", + "x": [ + 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, + 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, + 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 + ], + "xaxis": "x", + "xbingroup": "x", + "y": [ + 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, + 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, + 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 + ], + "yaxis": "y", + "ybingroup": "y" + } + ], + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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_width" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "sepal_length" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.density_contour(iris, x=\"sepal_width\", y=\"sepal_length\")" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "contours": { + "coloring": "none" + }, + "hovertemplate": "species=setosa
sepal_width=%{x}
sepal_length=%{y}
count=%{z}", + "legendgroup": "setosa", + "line": { + "color": "#636efa" + }, + "name": "setosa", + "showlegend": true, + "type": "histogram2dcontour", + "x": [ + 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 + ], + "xaxis": "x", + "xbingroup": "x", + "y": [ + 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 + ], + "yaxis": "y", + "ybingroup": "y" + }, + { + "contours": { + "coloring": "none" + }, + "hovertemplate": "species=versicolor
sepal_width=%{x}
sepal_length=%{y}
count=%{z}", + "legendgroup": "versicolor", + "line": { + "color": "#EF553B" + }, + "name": "versicolor", + "showlegend": true, + "type": "histogram2dcontour", + "x": [ + 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 + ], + "xaxis": "x", + "xbingroup": "x", + "y": [ + 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 + ], + "yaxis": "y", + "ybingroup": "y" + }, + { + "contours": { + "coloring": "none" + }, + "hovertemplate": "species=virginica
sepal_width=%{x}
sepal_length=%{y}
count=%{z}", + "legendgroup": "virginica", + "line": { + "color": "#00cc96" + }, + "name": "virginica", + "showlegend": true, + "type": "histogram2dcontour", + "x": [ + 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 + ], + "xaxis": "x", + "xbingroup": "x", + "y": [ + 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 + ], + "yaxis": "y", + "ybingroup": "y" + } + ], + "layout": { + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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_width" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "sepal_length" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.density_contour(iris, x=\"sepal_width\", y=\"sepal_length\", color=\"species\")" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=No
day=Sun
time=Dinner
total_bill=%{x}
count=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "showlegend": true, + "type": "histogram", + "x": [ + 16.99, + 10.34, + 21.01, + 23.68, + 24.59, + 25.29, + 8.77, + 26.88, + 15.04, + 14.78, + 10.27, + 35.26, + 15.42, + 18.43, + 14.83, + 21.58, + 10.33, + 16.29, + 16.97, + 17.46, + 13.94, + 9.68, + 30.4, + 18.29, + 22.23, + 32.4, + 28.55, + 18.04, + 12.54, + 10.29, + 34.81, + 9.94, + 25.56, + 19.49, + 38.07, + 23.95, + 25.71, + 17.31, + 29.93, + 14.07, + 13.13, + 17.26, + 24.55, + 19.77, + 29.85, + 48.17, + 25, + 13.39, + 16.49, + 21.5, + 12.66, + 16.21, + 13.81, + 24.52, + 20.76, + 31.71, + 20.69 + ], + "xaxis": "x7", + "yaxis": "y7" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=No
day=Sat
time=Dinner
total_bill=%{x}
count=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "showlegend": false, + "type": "histogram", + "x": [ + 20.65, + 17.92, + 20.29, + 15.77, + 39.42, + 19.82, + 17.81, + 13.37, + 12.69, + 21.7, + 19.65, + 9.55, + 18.35, + 15.06, + 20.69, + 17.78, + 24.06, + 16.31, + 16.93, + 18.69, + 31.27, + 16.04, + 26.41, + 48.27, + 17.59, + 20.08, + 16.45, + 20.23, + 12.02, + 17.07, + 14.73, + 10.51, + 20.92, + 18.24, + 14, + 7.25, + 48.33, + 20.45, + 13.28, + 11.61, + 10.77, + 10.07, + 35.83, + 29.03, + 17.82 + ], + "xaxis": "x5", + "yaxis": "y5" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=No
day=Thur
time=Dinner
total_bill=%{x}
count=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "showlegend": false, + "type": "histogram", + "x": [ + 18.78 + ], + "xaxis": "x3", + "yaxis": "y3" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=No
day=Thur
time=Lunch
total_bill=%{x}
count=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "showlegend": false, + "type": "histogram", + "x": [ + 27.2, + 22.76, + 17.29, + 16.66, + 10.07, + 15.98, + 34.83, + 13.03, + 18.28, + 24.71, + 21.16, + 10.65, + 12.43, + 24.08, + 11.69, + 13.42, + 14.26, + 15.95, + 12.48, + 29.8, + 8.52, + 14.52, + 11.38, + 22.82, + 19.08, + 20.27, + 11.17, + 12.26, + 18.26, + 8.51, + 10.33, + 14.15, + 13.16, + 17.47, + 34.3, + 41.19, + 27.05, + 16.43, + 8.35, + 18.64, + 11.87, + 9.78, + 7.51, + 7.56 + ], + "xaxis": "x4", + "yaxis": "y4" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=No
day=Fri
time=Dinner
total_bill=%{x}
count=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "showlegend": false, + "type": "histogram", + "x": [ + 22.49, + 22.75, + 12.46 + ], + "xaxis": "x", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=No
day=Fri
time=Lunch
total_bill=%{x}
count=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "showlegend": false, + "type": "histogram", + "x": [ + 15.98 + ], + "xaxis": "x2", + "yaxis": "y2" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=Yes
day=Sun
time=Dinner
total_bill=%{x}
count=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "offsetgroup": "Yes", + "orientation": "v", + "showlegend": true, + "type": "histogram", + "x": [ + 17.51, + 7.25, + 31.85, + 16.82, + 32.9, + 17.89, + 14.48, + 9.6, + 34.63, + 34.65, + 23.33, + 45.35, + 23.17, + 40.55, + 20.9, + 30.46, + 18.15, + 23.1, + 15.69 + ], + "xaxis": "x7", + "yaxis": "y7" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=Yes
day=Sat
time=Dinner
total_bill=%{x}
count=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "offsetgroup": "Yes", + "orientation": "v", + "showlegend": false, + "type": "histogram", + "x": [ + 38.01, + 11.24, + 20.29, + 13.81, + 11.02, + 18.29, + 3.07, + 15.01, + 26.86, + 25.28, + 17.92, + 44.3, + 22.42, + 15.36, + 20.49, + 25.21, + 14.31, + 10.59, + 10.63, + 50.81, + 15.81, + 26.59, + 38.73, + 24.27, + 12.76, + 30.06, + 25.89, + 13.27, + 28.17, + 12.9, + 28.15, + 11.59, + 7.74, + 30.14, + 22.12, + 24.01, + 15.69, + 15.53, + 12.6, + 32.83, + 27.18, + 22.67 + ], + "xaxis": "x5", + "yaxis": "y5" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=Yes
day=Thur
time=Lunch
total_bill=%{x}
count=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "offsetgroup": "Yes", + "orientation": "v", + "showlegend": false, + "type": "histogram", + "x": [ + 19.44, + 32.68, + 16, + 19.81, + 28.44, + 15.48, + 16.58, + 10.34, + 43.11, + 13, + 13.51, + 18.71, + 12.74, + 13, + 16.4, + 20.53, + 16.47 + ], + "xaxis": "x4", + "yaxis": "y4" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=Yes
day=Fri
time=Dinner
total_bill=%{x}
count=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "offsetgroup": "Yes", + "orientation": "v", + "showlegend": false, + "type": "histogram", + "x": [ + 28.97, + 5.75, + 16.32, + 40.17, + 27.28, + 12.03, + 21.01, + 11.35, + 15.38 + ], + "xaxis": "x", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "bingroup": "x", + "hovertemplate": "smoker=Yes
day=Fri
time=Lunch
total_bill=%{x}
count=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "offsetgroup": "Yes", + "orientation": "v", + "showlegend": false, + "type": "histogram", + "x": [ + 12.16, + 13.42, + 8.58, + 13.42, + 16.27, + 10.09 + ], + "xaxis": "x2", + "yaxis": "y2" + } + ], + "layout": { + "annotations": [ + { + "font": {}, + "showarrow": false, + "text": "time=Dinner", + "x": 0.24, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "time=Lunch", + "x": 0.74, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Fri", + "textangle": 90, + "x": 0.98, + "xanchor": "left", + "xref": "paper", + "y": 0.11375, + "yanchor": "middle", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Thur", + "textangle": 90, + "x": 0.98, + "xanchor": "left", + "xref": "paper", + "y": 0.37124999999999997, + "yanchor": "middle", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Sat", + "textangle": 90, + "x": 0.98, + "xanchor": "left", + "xref": "paper", + "y": 0.62875, + "yanchor": "middle", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Sun", + "textangle": 90, + "x": 0.98, + "xanchor": "left", + "xref": "paper", + "y": 0.88625, + "yanchor": "middle", + "yref": "paper" + } + ], + "barmode": "relative", + "legend": { + "title": { + "text": "smoker" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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, + 0.48 + ], + "title": { + "text": "total_bill" + } + }, + "xaxis2": { + "anchor": "y2", + "domain": [ + 0.5, + 0.98 + ], + "matches": "x", + "title": { + "text": "total_bill" + } + }, + "xaxis3": { + "anchor": "y3", + "domain": [ + 0, + 0.48 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis4": { + "anchor": "y4", + "domain": [ + 0.5, + 0.98 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis5": { + "anchor": "y5", + "domain": [ + 0, + 0.48 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis6": { + "anchor": "y6", + "domain": [ + 0.5, + 0.98 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis7": { + "anchor": "y7", + "domain": [ + 0, + 0.48 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis8": { + "anchor": "y8", + "domain": [ + 0.5, + 0.98 + ], + "matches": "x", + "showticklabels": false + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 0.2275 + ], + "title": { + "text": "count" + } + }, + "yaxis2": { + "anchor": "x2", + "domain": [ + 0, + 0.2275 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis3": { + "anchor": "x3", + "domain": [ + 0.2575, + 0.485 + ], + "matches": "y", + "title": { + "text": "count" + } + }, + "yaxis4": { + "anchor": "x4", + "domain": [ + 0.2575, + 0.485 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis5": { + "anchor": "x5", + "domain": [ + 0.515, + 0.7425 + ], + "matches": "y", + "title": { + "text": "count" + } + }, + "yaxis6": { + "anchor": "x6", + "domain": [ + 0.515, + 0.7425 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis7": { + "anchor": "x7", + "domain": [ + 0.7725, + 1 + ], + "matches": "y", + "title": { + "text": "count" + } + }, + "yaxis8": { + "anchor": "x8", + "domain": [ + 0.7725, + 1 + ], + "matches": "y", + "showticklabels": false + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.histogram(tips, x=\"total_bill\", color=\"smoker\", facet_row=\"day\", facet_col=\"time\")" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "hovertemplate": "smoker=No
time=Lunch
day=Thur
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "notched": false, + "offsetgroup": "No", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Male", + "Female", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Female", + "Female", + "Female", + "Female", + "Female", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male" + ], + "x0": " ", + "xaxis": "x5", + "y": [ + 4, + 3, + 2.71, + 3.4, + 1.83, + 2.03, + 5.17, + 2, + 4, + 5.85, + 3, + 1.5, + 1.8, + 2.92, + 2.31, + 1.68, + 2.5, + 2, + 2.52, + 4.2, + 1.48, + 2, + 2, + 2.18, + 1.5, + 2.83, + 1.5, + 2, + 3.25, + 1.25, + 2, + 2, + 2.75, + 3.5, + 6.7, + 5, + 5, + 2.3, + 1.5, + 1.36, + 1.63, + 1.73, + 2, + 1.44 + ], + "y0": " ", + "yaxis": "y5" + }, + { + "alignmentgroup": "True", + "hovertemplate": "smoker=No
time=Lunch
day=Fri
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "notched": false, + "offsetgroup": "No", + "orientation": "v", + "showlegend": false, + "type": "box", + "x": [ + "Female" + ], + "x0": " ", + "xaxis": "x6", + "y": [ + 3 + ], + "y0": " ", + "yaxis": "y6" + }, + { + "alignmentgroup": "True", + "hovertemplate": "smoker=No
time=Dinner
day=Thur
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "notched": false, + "offsetgroup": "No", + "orientation": "v", + "showlegend": false, + "type": "box", + "x": [ + "Female" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 3 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "hovertemplate": "smoker=No
time=Dinner
day=Fri
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "notched": false, + "offsetgroup": "No", + "orientation": "v", + "showlegend": false, + "type": "box", + "x": [ + "Male", + "Female", + "Male" + ], + "x0": " ", + "xaxis": "x2", + "y": [ + 3.5, + 3.25, + 1.5 + ], + "y0": " ", + "yaxis": "y2" + }, + { + "alignmentgroup": "True", + "hovertemplate": "smoker=No
time=Dinner
day=Sat
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "notched": false, + "offsetgroup": "No", + "orientation": "v", + "showlegend": false, + "type": "box", + "x": [ + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Male", + "Female", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male" + ], + "x0": " ", + "xaxis": "x3", + "y": [ + 3.35, + 4.08, + 2.75, + 2.23, + 7.58, + 3.18, + 2.34, + 2, + 2, + 4.3, + 3, + 1.45, + 2.5, + 3, + 2.45, + 3.27, + 3.6, + 2, + 3.07, + 2.31, + 5, + 2.24, + 1.5, + 6.73, + 2.64, + 3.15, + 2.47, + 2.01, + 1.97, + 3, + 2.2, + 1.25, + 4.08, + 3.76, + 3, + 1, + 9, + 3, + 2.72, + 3.39, + 1.47, + 1.25, + 4.67, + 5.92, + 1.75 + ], + "y0": " ", + "yaxis": "y3" + }, + { + "alignmentgroup": "True", + "hovertemplate": "smoker=No
time=Dinner
day=Sun
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "notched": false, + "offsetgroup": "No", + "orientation": "v", + "showlegend": false, + "type": "box", + "x": [ + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male" + ], + "x0": " ", + "xaxis": "x4", + "y": [ + 1.01, + 1.66, + 3.5, + 3.31, + 3.61, + 4.71, + 2, + 3.12, + 1.96, + 3.23, + 1.71, + 5, + 1.57, + 3, + 3.02, + 3.92, + 1.67, + 3.71, + 3.5, + 2.54, + 3.06, + 1.32, + 5.6, + 3, + 5, + 6, + 2.05, + 3, + 2.5, + 2.6, + 5.2, + 1.56, + 4.34, + 3.51, + 4, + 2.55, + 4, + 3.5, + 5.07, + 2.5, + 2, + 2.74, + 2, + 2, + 5.14, + 5, + 3.75, + 2.61, + 2, + 3.5, + 2.5, + 2, + 2, + 3.48, + 2.24, + 4.5, + 5 + ], + "y0": " ", + "yaxis": "y4" + }, + { + "alignmentgroup": "True", + "hovertemplate": "smoker=Yes
time=Lunch
day=Thur
sex=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "notched": false, + "offsetgroup": "Yes", + "orientation": "v", + "showlegend": true, + "type": "box", + "x": [ + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Female" + ], + "x0": " ", + "xaxis": "x5", + "y": [ + 3, + 5, + 2, + 4.19, + 2.56, + 2.02, + 4, + 2, + 5, + 2, + 2, + 4, + 2.01, + 2, + 2.5, + 4, + 3.23 + ], + "y0": " ", + "yaxis": "y5" + }, + { + "alignmentgroup": "True", + "hovertemplate": "smoker=Yes
time=Lunch
day=Fri
sex=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "notched": false, + "offsetgroup": "Yes", + "orientation": "v", + "showlegend": false, + "type": "box", + "x": [ + "Male", + "Female", + "Male", + "Male", + "Female", + "Female" + ], + "x0": " ", + "xaxis": "x6", + "y": [ + 2.2, + 3.48, + 1.92, + 1.58, + 2.5, + 2 + ], + "y0": " ", + "yaxis": "y6" + }, + { + "alignmentgroup": "True", + "hovertemplate": "smoker=Yes
time=Dinner
day=Fri
sex=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "notched": false, + "offsetgroup": "Yes", + "orientation": "v", + "showlegend": false, + "type": "box", + "x": [ + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female" + ], + "x0": " ", + "xaxis": "x2", + "y": [ + 3, + 1, + 4.3, + 4.73, + 4, + 1.5, + 3, + 2.5, + 3 + ], + "y0": " ", + "yaxis": "y2" + }, + { + "alignmentgroup": "True", + "hovertemplate": "smoker=Yes
time=Dinner
day=Sat
sex=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "notched": false, + "offsetgroup": "Yes", + "orientation": "v", + "showlegend": false, + "type": "box", + "x": [ + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Female", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male" + ], + "x0": " ", + "xaxis": "x3", + "y": [ + 3, + 1.76, + 3.21, + 2, + 1.98, + 3.76, + 1, + 2.09, + 3.14, + 5, + 3.08, + 2.5, + 3.48, + 1.64, + 4.06, + 4.29, + 4, + 1.61, + 2, + 10, + 3.16, + 3.41, + 3, + 2.03, + 2.23, + 2, + 5.16, + 2.5, + 6.5, + 1.1, + 3, + 1.5, + 1.44, + 3.09, + 2.88, + 2, + 3, + 3, + 1, + 1.17, + 2, + 2 + ], + "y0": " ", + "yaxis": "y3" + }, + { + "alignmentgroup": "True", + "hovertemplate": "smoker=Yes
time=Dinner
day=Sun
sex=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "notched": false, + "offsetgroup": "Yes", + "orientation": "v", + "showlegend": false, + "type": "box", + "x": [ + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male" + ], + "x0": " ", + "xaxis": "x4", + "y": [ + 3, + 5.15, + 3.18, + 4, + 3.11, + 2, + 2, + 4, + 3.55, + 3.68, + 5.65, + 3.5, + 6.5, + 3, + 3.5, + 2, + 3.5, + 4, + 1.5 + ], + "y0": " ", + "yaxis": "y4" + } + ], + "layout": { + "annotations": [ + { + "font": {}, + "showarrow": false, + "text": "day=Thur", + "x": 0.11499999999999999, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Fri", + "x": 0.365, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Sat", + "x": 0.615, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Sun", + "x": 0.865, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "time=Dinner", + "textangle": 90, + "x": 0.98, + "xanchor": "left", + "xref": "paper", + "y": 0.2425, + "yanchor": "middle", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "time=Lunch", + "textangle": 90, + "x": 0.98, + "xanchor": "left", + "xref": "paper", + "y": 0.7575000000000001, + "yanchor": "middle", + "yref": "paper" + } + ], + "boxmode": "group", + "legend": { + "title": { + "text": "smoker" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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, + 0.22999999999999998 + ], + "title": { + "text": "sex" + } + }, + "xaxis2": { + "anchor": "y2", + "domain": [ + 0.24999999999999997, + 0.48 + ], + "matches": "x", + "title": { + "text": "sex" + } + }, + "xaxis3": { + "anchor": "y3", + "domain": [ + 0.49999999999999994, + 0.73 + ], + "matches": "x", + "title": { + "text": "sex" + } + }, + "xaxis4": { + "anchor": "y4", + "domain": [ + 0.75, + 0.98 + ], + "matches": "x", + "title": { + "text": "sex" + } + }, + "xaxis5": { + "anchor": "y5", + "domain": [ + 0, + 0.22999999999999998 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis6": { + "anchor": "y6", + "domain": [ + 0.24999999999999997, + 0.48 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis7": { + "anchor": "y7", + "domain": [ + 0.49999999999999994, + 0.73 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis8": { + "anchor": "y8", + "domain": [ + 0.75, + 0.98 + ], + "matches": "x", + "showticklabels": false + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 0.485 + ], + "title": { + "text": "tip" + } + }, + "yaxis2": { + "anchor": "x2", + "domain": [ + 0, + 0.485 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis3": { + "anchor": "x3", + "domain": [ + 0, + 0.485 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis4": { + "anchor": "x4", + "domain": [ + 0, + 0.485 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis5": { + "anchor": "x5", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "title": { + "text": "tip" + } + }, + "yaxis6": { + "anchor": "x6", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis7": { + "anchor": "x7", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis8": { + "anchor": "x8", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "showticklabels": false + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.box(tips, y=\"tip\", x=\"sex\", color=\"smoker\", facet_col=\"day\", facet_row=\"time\", \n", + " category_orders={\"day\": [\"Thur\", \"Fri\", \"Sat\", \"Sun\"], \"time\": [\"Lunch\", \"Dinner\"]})" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=No
time=Lunch
day=Thur
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "scalegroup": "True", + "showlegend": true, + "type": "violin", + "x": [ + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Male", + "Female", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Female", + "Female", + "Female", + "Female", + "Female", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male" + ], + "x0": " ", + "xaxis": "x5", + "y": [ + 4, + 3, + 2.71, + 3.4, + 1.83, + 2.03, + 5.17, + 2, + 4, + 5.85, + 3, + 1.5, + 1.8, + 2.92, + 2.31, + 1.68, + 2.5, + 2, + 2.52, + 4.2, + 1.48, + 2, + 2, + 2.18, + 1.5, + 2.83, + 1.5, + 2, + 3.25, + 1.25, + 2, + 2, + 2.75, + 3.5, + 6.7, + 5, + 5, + 2.3, + 1.5, + 1.36, + 1.63, + 1.73, + 2, + 1.44 + ], + "y0": " ", + "yaxis": "y5" + }, + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=No
time=Lunch
day=Fri
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "scalegroup": "True", + "showlegend": false, + "type": "violin", + "x": [ + "Female" + ], + "x0": " ", + "xaxis": "x6", + "y": [ + 3 + ], + "y0": " ", + "yaxis": "y6" + }, + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=No
time=Dinner
day=Thur
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "scalegroup": "True", + "showlegend": false, + "type": "violin", + "x": [ + "Female" + ], + "x0": " ", + "xaxis": "x", + "y": [ + 3 + ], + "y0": " ", + "yaxis": "y" + }, + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=No
time=Dinner
day=Fri
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "scalegroup": "True", + "showlegend": false, + "type": "violin", + "x": [ + "Male", + "Female", + "Male" + ], + "x0": " ", + "xaxis": "x2", + "y": [ + 3.5, + 3.25, + 1.5 + ], + "y0": " ", + "yaxis": "y2" + }, + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=No
time=Dinner
day=Sat
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "scalegroup": "True", + "showlegend": false, + "type": "violin", + "x": [ + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Male", + "Female", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male" + ], + "x0": " ", + "xaxis": "x3", + "y": [ + 3.35, + 4.08, + 2.75, + 2.23, + 7.58, + 3.18, + 2.34, + 2, + 2, + 4.3, + 3, + 1.45, + 2.5, + 3, + 2.45, + 3.27, + 3.6, + 2, + 3.07, + 2.31, + 5, + 2.24, + 1.5, + 6.73, + 2.64, + 3.15, + 2.47, + 2.01, + 1.97, + 3, + 2.2, + 1.25, + 4.08, + 3.76, + 3, + 1, + 9, + 3, + 2.72, + 3.39, + 1.47, + 1.25, + 4.67, + 5.92, + 1.75 + ], + "y0": " ", + "yaxis": "y3" + }, + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=No
time=Dinner
day=Sun
sex=%{x}
tip=%{y}", + "legendgroup": "No", + "marker": { + "color": "#636efa" + }, + "name": "No", + "offsetgroup": "No", + "orientation": "v", + "scalegroup": "True", + "showlegend": false, + "type": "violin", + "x": [ + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male" + ], + "x0": " ", + "xaxis": "x4", + "y": [ + 1.01, + 1.66, + 3.5, + 3.31, + 3.61, + 4.71, + 2, + 3.12, + 1.96, + 3.23, + 1.71, + 5, + 1.57, + 3, + 3.02, + 3.92, + 1.67, + 3.71, + 3.5, + 2.54, + 3.06, + 1.32, + 5.6, + 3, + 5, + 6, + 2.05, + 3, + 2.5, + 2.6, + 5.2, + 1.56, + 4.34, + 3.51, + 4, + 2.55, + 4, + 3.5, + 5.07, + 2.5, + 2, + 2.74, + 2, + 2, + 5.14, + 5, + 3.75, + 2.61, + 2, + 3.5, + 2.5, + 2, + 2, + 3.48, + 2.24, + 4.5, + 5 + ], + "y0": " ", + "yaxis": "y4" + }, + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=Yes
time=Lunch
day=Thur
sex=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "offsetgroup": "Yes", + "orientation": "v", + "scalegroup": "True", + "showlegend": true, + "type": "violin", + "x": [ + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Female" + ], + "x0": " ", + "xaxis": "x5", + "y": [ + 3, + 5, + 2, + 4.19, + 2.56, + 2.02, + 4, + 2, + 5, + 2, + 2, + 4, + 2.01, + 2, + 2.5, + 4, + 3.23 + ], + "y0": " ", + "yaxis": "y5" + }, + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=Yes
time=Lunch
day=Fri
sex=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "offsetgroup": "Yes", + "orientation": "v", + "scalegroup": "True", + "showlegend": false, + "type": "violin", + "x": [ + "Male", + "Female", + "Male", + "Male", + "Female", + "Female" + ], + "x0": " ", + "xaxis": "x6", + "y": [ + 2.2, + 3.48, + 1.92, + 1.58, + 2.5, + 2 + ], + "y0": " ", + "yaxis": "y6" + }, + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=Yes
time=Dinner
day=Fri
sex=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "offsetgroup": "Yes", + "orientation": "v", + "scalegroup": "True", + "showlegend": false, + "type": "violin", + "x": [ + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Female", + "Female" + ], + "x0": " ", + "xaxis": "x2", + "y": [ + 3, + 1, + 4.3, + 4.73, + 4, + 1.5, + 3, + 2.5, + 3 + ], + "y0": " ", + "yaxis": "y2" + }, + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=Yes
time=Dinner
day=Sat
sex=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "offsetgroup": "Yes", + "orientation": "v", + "scalegroup": "True", + "showlegend": false, + "type": "violin", + "x": [ + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Female", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Female", + "Female", + "Female", + "Male", + "Male", + "Male", + "Female", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male" + ], + "x0": " ", + "xaxis": "x3", + "y": [ + 3, + 1.76, + 3.21, + 2, + 1.98, + 3.76, + 1, + 2.09, + 3.14, + 5, + 3.08, + 2.5, + 3.48, + 1.64, + 4.06, + 4.29, + 4, + 1.61, + 2, + 10, + 3.16, + 3.41, + 3, + 2.03, + 2.23, + 2, + 5.16, + 2.5, + 6.5, + 1.1, + 3, + 1.5, + 1.44, + 3.09, + 2.88, + 2, + 3, + 3, + 1, + 1.17, + 2, + 2 + ], + "y0": " ", + "yaxis": "y3" + }, + { + "alignmentgroup": "True", + "box": { + "visible": false + }, + "hovertemplate": "smoker=Yes
time=Dinner
day=Sun
sex=%{x}
tip=%{y}", + "legendgroup": "Yes", + "marker": { + "color": "#EF553B" + }, + "name": "Yes", + "offsetgroup": "Yes", + "orientation": "v", + "scalegroup": "True", + "showlegend": false, + "type": "violin", + "x": [ + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Male", + "Male", + "Male", + "Male", + "Male", + "Female", + "Male", + "Female", + "Male", + "Male" + ], + "x0": " ", + "xaxis": "x4", + "y": [ + 3, + 5.15, + 3.18, + 4, + 3.11, + 2, + 2, + 4, + 3.55, + 3.68, + 5.65, + 3.5, + 6.5, + 3, + 3.5, + 2, + 3.5, + 4, + 1.5 + ], + "y0": " ", + "yaxis": "y4" + } + ], + "layout": { + "annotations": [ + { + "font": {}, + "showarrow": false, + "text": "day=Thur", + "x": 0.11499999999999999, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Fri", + "x": 0.365, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Sat", + "x": 0.615, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "day=Sun", + "x": 0.865, + "xanchor": "center", + "xref": "paper", + "y": 1, + "yanchor": "bottom", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "time=Dinner", + "textangle": 90, + "x": 0.98, + "xanchor": "left", + "xref": "paper", + "y": 0.2425, + "yanchor": "middle", + "yref": "paper" + }, + { + "font": {}, + "showarrow": false, + "text": "time=Lunch", + "textangle": 90, + "x": 0.98, + "xanchor": "left", + "xref": "paper", + "y": 0.7575000000000001, + "yanchor": "middle", + "yref": "paper" + } + ], + "legend": { + "title": { + "text": "smoker" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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 + } + } + }, + "violinmode": "group", + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 0.22999999999999998 + ], + "title": { + "text": "sex" + } + }, + "xaxis2": { + "anchor": "y2", + "domain": [ + 0.24999999999999997, + 0.48 + ], + "matches": "x", + "title": { + "text": "sex" + } + }, + "xaxis3": { + "anchor": "y3", + "domain": [ + 0.49999999999999994, + 0.73 + ], + "matches": "x", + "title": { + "text": "sex" + } + }, + "xaxis4": { + "anchor": "y4", + "domain": [ + 0.75, + 0.98 + ], + "matches": "x", + "title": { + "text": "sex" + } + }, + "xaxis5": { + "anchor": "y5", + "domain": [ + 0, + 0.22999999999999998 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis6": { + "anchor": "y6", + "domain": [ + 0.24999999999999997, + 0.48 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis7": { + "anchor": "y7", + "domain": [ + 0.49999999999999994, + 0.73 + ], + "matches": "x", + "showticklabels": false + }, + "xaxis8": { + "anchor": "y8", + "domain": [ + 0.75, + 0.98 + ], + "matches": "x", + "showticklabels": false + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 0.485 + ], + "title": { + "text": "tip" + } + }, + "yaxis2": { + "anchor": "x2", + "domain": [ + 0, + 0.485 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis3": { + "anchor": "x3", + "domain": [ + 0, + 0.485 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis4": { + "anchor": "x4", + "domain": [ + 0, + 0.485 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis5": { + "anchor": "x5", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "title": { + "text": "tip" + } + }, + "yaxis6": { + "anchor": "x6", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis7": { + "anchor": "x7", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "showticklabels": false + }, + "yaxis8": { + "anchor": "x8", + "domain": [ + 0.515, + 1 + ], + "matches": "y", + "showticklabels": false + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.violin(tips, y=\"tip\", x=\"sex\", color=\"smoker\", facet_col=\"day\", facet_row=\"time\",\n", + " category_orders={\"day\": [\"Thur\", \"Fri\", \"Sat\", \"Sun\"], \"time\": [\"Lunch\", \"Dinner\"]})" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "a": [ + 3024, + 2675, + 3578, + 2849, + 1894, + 2282, + 1636, + 3262, + 2648, + 1266, + 1908, + 690 + ], + "b": [ + 2481, + 2525, + 2432, + 2476, + 1451, + 1906, + 1548, + 1773, + 2040, + 1165, + 1325, + 518 + ], + "c": [ + 1829, + 1163, + 3368, + 2631, + 754, + 2169, + 1503, + 2653, + 1437, + 832, + 1205, + 224 + ], + "hovertemplate": "%{hovertext}

winner=Joly
result=plurality
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", + "hovertext": [ + "101-Bois-de-Liesse", + "102-Cap-Saint-Jacques", + "161-Saint-HenriPetite-BourgognePointe-Saint-Charles", + "172-Desmarchais-Crawford", + "181-Peter-McGill", + "182-Saint-Jacques", + "33-Snowdon", + "34-Notre-Dame-de-Grâce", + "35-Loyola", + "41-du Canal", + "43-Fort-Rolland", + "63-Jacques-Bizard" + ], + "legendgroup": "Joly, plurality", + "marker": { + "color": "blue", + "size": [ + 7334, + 6363, + 9378, + 7956, + 4099, + 6357, + 4687, + 7688, + 6125, + 3263, + 4438, + 1432 + ], + "sizemode": "area", + "sizeref": 49.111111111111114, + "symbol": "circle" + }, + "mode": "markers", + "name": "Joly, plurality", + "showlegend": true, + "subplot": "ternary", + "type": "scatterternary" + }, + { + "a": [ + 998, + 1068 + ], + "b": [ + 631, + 595 + ], + "c": [ + 258, + 226 + ], + "hovertemplate": "%{hovertext}

winner=Joly
result=majority
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", + "hovertext": [ + "61-Pierre-Foretier", + "62-Denis-Benjamin-Viger" + ], + "legendgroup": "Joly, majority", + "marker": { + "color": "blue", + "size": [ + 1887, + 1889 + ], + "sizemode": "area", + "sizeref": 49.111111111111114, + "symbol": "diamond" + }, + "mode": "markers", + "name": "Joly, majority", + "showlegend": true, + "subplot": "ternary", + "type": "scatterternary" + }, + { + "a": [ + 2532, + 2543, + 2431, + 2081, + 3959, + 2822, + 2438, + 3291, + 2039, + 1402, + 1172, + 1232, + 1157, + 3717, + 2943, + 326, + 3454, + 2338, + 423 + ], + "b": [ + 3348, + 3252, + 3673, + 3612, + 4308, + 4104, + 2566, + 3347, + 2878, + 2420, + 1589, + 1873, + 1193, + 4201, + 3536, + 332, + 3694, + 3509, + 996 + ], + "c": [ + 2770, + 2521, + 3155, + 1554, + 1320, + 1459, + 2092, + 2562, + 2666, + 1793, + 708, + 1182, + 653, + 1642, + 1330, + 131, + 2589, + 2178, + 643 + ], + "hovertemplate": "%{hovertext}

winner=Coderre
result=plurality
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", + "hovertext": [ + "11-Sault-au-Récollet", + "12-Saint-Sulpice", + "134-Marie-Victorin", + "14-Bordeaux-Cartierville", + "141-Côte-de-Liesse", + "142-Norman-McLaren", + "162-Saint-PaulÉmard", + "171-ChamplainL'Île-des-Soeurs", + "192-François-Perrault", + "194-Parc-Extension", + "22-Est", + "31-Darlington", + "42-J.-Émery-Provost", + "51-Sault-Saint-Louis", + "52-Cecil-P.-Newman", + "64-Sainte-Geneviève", + "71-Tétreaultville", + "74-Louis-Riel", + "91-Claude-Ryan" + ], + "legendgroup": "Coderre, plurality", + "marker": { + "color": "red", + "size": [ + 8650, + 8316, + 9259, + 7247, + 9587, + 8385, + 7096, + 9200, + 7583, + 5615, + 3469, + 4287, + 3003, + 9560, + 7809, + 789, + 9737, + 8025, + 2062 + ], + "sizemode": "area", + "sizeref": 49.111111111111114, + "symbol": "circle" + }, + "mode": "markers", + "name": "Coderre, plurality", + "showlegend": true, + "subplot": "ternary", + "type": "scatterternary" + }, + { + "a": [ + 3330, + 2852, + 1656, + 1641, + 1908, + 1220, + 1076, + 1286, + 1435, + 1051 + ], + "b": [ + 5456, + 4734, + 5737, + 3931, + 5387, + 3668, + 2184, + 2526, + 6591, + 6229 + ], + "c": [ + 1760, + 1879, + 958, + 882, + 1184, + 984, + 691, + 851, + 1085, + 780 + ], + "hovertemplate": "%{hovertext}

winner=Coderre
result=majority
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", + "hovertext": [ + "121-La Pointe-aux-Prairies", + "122-Pointe-aux-Trembles", + "123-Rivière-des-Prairies", + "151-Saint-Léonard-Est", + "152-Saint-Léonard-Ouest", + "191-Saint-Michel", + "21-Ouest", + "23-Centre", + "81-Marie-Clarac", + "82-Ovide-Clermont" + ], + "legendgroup": "Coderre, majority", + "marker": { + "color": "red", + "size": [ + 10546, + 9465, + 8351, + 6454, + 8479, + 5872, + 3951, + 4663, + 9111, + 8060 + ], + "sizemode": "area", + "sizeref": 49.111111111111114, + "symbol": "diamond" + }, + "mode": "markers", + "name": "Coderre, majority", + "showlegend": true, + "subplot": "ternary", + "type": "scatterternary" + }, + { + "a": [ + 2316, + 2873, + 3234, + 2271, + 1578, + 3139, + 2675, + 592, + 419, + 489 + ], + "b": [ + 1455, + 2979, + 2670, + 1347, + 1644, + 2746, + 1546, + 540, + 446, + 491 + ], + "c": [ + 3599, + 3430, + 4962, + 2827, + 1950, + 3250, + 3679, + 833, + 465, + 698 + ], + "hovertemplate": "%{hovertext}

winner=Bergeron
result=plurality
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", + "hovertext": [ + "113-Jeanne-Mance", + "13-Ahuntsic", + "133-Vieux-Rosemont", + "183-Sainte-Marie", + "32-Côte-des-Neiges", + "72-MaisonneuveLongue-Pointe", + "73-Hochelaga", + "92-Joseph-Beaubien", + "93-Robert-Bourassa", + "94-Jeanne-Sauvé" + ], + "legendgroup": "Bergeron, plurality", + "marker": { + "color": "green", + "size": [ + 7370, + 9282, + 10866, + 6445, + 5172, + 9135, + 7900, + 1965, + 1330, + 1678 + ], + "sizemode": "area", + "sizeref": 49.111111111111114, + "symbol": "circle" + }, + "mode": "markers", + "name": "Bergeron, plurality", + "showlegend": true, + "subplot": "ternary", + "type": "scatterternary" + }, + { + "a": [ + 2514, + 3044, + 2815, + 2788, + 2782 + ], + "b": [ + 1734, + 1770, + 1827, + 2331, + 2201 + ], + "c": [ + 4782, + 5933, + 6408, + 5748, + 5819 + ], + "hovertemplate": "%{hovertext}

winner=Bergeron
result=majority
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", + "hovertext": [ + "111-Mile-End", + "112-DeLorimier", + "131-Saint-Édouard", + "132-Étienne-Desmarteau", + "193-Villeray" + ], + "legendgroup": "Bergeron, majority", + "marker": { + "color": "green", + "size": [ + 9030, + 10747, + 11050, + 10867, + 10802 + ], + "sizemode": "area", + "sizeref": 49.111111111111114, + "symbol": "diamond" + }, + "mode": "markers", + "name": "Bergeron, majority", + "showlegend": true, + "subplot": "ternary", + "type": "scatterternary" + } + ], + "layout": { + "legend": { + "itemsizing": "constant", + "title": { + "text": "winner, result" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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 + } + } + }, + "ternary": { + "aaxis": { + "title": { + "text": "Joly" + } + }, + "baxis": { + "title": { + "text": "Coderre" + } + }, + "caxis": { + "title": { + "text": "Bergeron" + } + }, + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "election = px.data.election()\n", + "\n", + "px.scatter_ternary(election, a=\"Joly\", b=\"Coderre\", c=\"Bergeron\", color=\"winner\", size=\"total\", hover_name=\"district\",\n", + " symbol=\"result\", \n", + " size_max=15, color_discrete_map = {\"Joly\": \"blue\", \"Bergeron\": \"green\", \"Coderre\":\"red\"}\n", + " )" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "%{hovertext}

winner=Joly
result=plurality
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", + "hovertext": [ + "101-Bois-de-Liesse", + "102-Cap-Saint-Jacques", + "161-Saint-HenriPetite-BourgognePointe-Saint-Charles", + "172-Desmarchais-Crawford", + "181-Peter-McGill", + "182-Saint-Jacques", + "33-Snowdon", + "34-Notre-Dame-de-Grâce", + "35-Loyola", + "41-du Canal", + "43-Fort-Rolland", + "63-Jacques-Bizard" + ], + "legendgroup": "Joly, plurality", + "marker": { + "color": "blue", + "size": [ + 7334, + 6363, + 9378, + 7956, + 4099, + 6357, + 4687, + 7688, + 6125, + 3263, + 4438, + 1432 + ], + "sizemode": "area", + "sizeref": 27.625, + "symbol": "circle" + }, + "mode": "markers", + "name": "Joly, plurality", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 3024, + 2675, + 3578, + 2849, + 1894, + 2282, + 1636, + 3262, + 2648, + 1266, + 1908, + 690 + ], + "y": [ + 2481, + 2525, + 2432, + 2476, + 1451, + 1906, + 1548, + 1773, + 2040, + 1165, + 1325, + 518 + ], + "z": [ + 1829, + 1163, + 3368, + 2631, + 754, + 2169, + 1503, + 2653, + 1437, + 832, + 1205, + 224 + ] + }, + { + "hovertemplate": "%{hovertext}

winner=Joly
result=majority
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", + "hovertext": [ + "61-Pierre-Foretier", + "62-Denis-Benjamin-Viger" + ], + "legendgroup": "Joly, majority", + "marker": { + "color": "blue", + "size": [ + 1887, + 1889 + ], + "sizemode": "area", + "sizeref": 27.625, + "symbol": "diamond" + }, + "mode": "markers", + "name": "Joly, majority", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 998, + 1068 + ], + "y": [ + 631, + 595 + ], + "z": [ + 258, + 226 + ] + }, + { + "hovertemplate": "%{hovertext}

winner=Coderre
result=plurality
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", + "hovertext": [ + "11-Sault-au-Récollet", + "12-Saint-Sulpice", + "134-Marie-Victorin", + "14-Bordeaux-Cartierville", + "141-Côte-de-Liesse", + "142-Norman-McLaren", + "162-Saint-PaulÉmard", + "171-ChamplainL'Île-des-Soeurs", + "192-François-Perrault", + "194-Parc-Extension", + "22-Est", + "31-Darlington", + "42-J.-Émery-Provost", + "51-Sault-Saint-Louis", + "52-Cecil-P.-Newman", + "64-Sainte-Geneviève", + "71-Tétreaultville", + "74-Louis-Riel", + "91-Claude-Ryan" + ], + "legendgroup": "Coderre, plurality", + "marker": { + "color": "red", + "size": [ + 8650, + 8316, + 9259, + 7247, + 9587, + 8385, + 7096, + 9200, + 7583, + 5615, + 3469, + 4287, + 3003, + 9560, + 7809, + 789, + 9737, + 8025, + 2062 + ], + "sizemode": "area", + "sizeref": 27.625, + "symbol": "circle" + }, + "mode": "markers", + "name": "Coderre, plurality", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 2532, + 2543, + 2431, + 2081, + 3959, + 2822, + 2438, + 3291, + 2039, + 1402, + 1172, + 1232, + 1157, + 3717, + 2943, + 326, + 3454, + 2338, + 423 + ], + "y": [ + 3348, + 3252, + 3673, + 3612, + 4308, + 4104, + 2566, + 3347, + 2878, + 2420, + 1589, + 1873, + 1193, + 4201, + 3536, + 332, + 3694, + 3509, + 996 + ], + "z": [ + 2770, + 2521, + 3155, + 1554, + 1320, + 1459, + 2092, + 2562, + 2666, + 1793, + 708, + 1182, + 653, + 1642, + 1330, + 131, + 2589, + 2178, + 643 + ] + }, + { + "hovertemplate": "%{hovertext}

winner=Coderre
result=majority
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", + "hovertext": [ + "121-La Pointe-aux-Prairies", + "122-Pointe-aux-Trembles", + "123-Rivière-des-Prairies", + "151-Saint-Léonard-Est", + "152-Saint-Léonard-Ouest", + "191-Saint-Michel", + "21-Ouest", + "23-Centre", + "81-Marie-Clarac", + "82-Ovide-Clermont" + ], + "legendgroup": "Coderre, majority", + "marker": { + "color": "red", + "size": [ + 10546, + 9465, + 8351, + 6454, + 8479, + 5872, + 3951, + 4663, + 9111, + 8060 + ], + "sizemode": "area", + "sizeref": 27.625, + "symbol": "diamond" + }, + "mode": "markers", + "name": "Coderre, majority", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 3330, + 2852, + 1656, + 1641, + 1908, + 1220, + 1076, + 1286, + 1435, + 1051 + ], + "y": [ + 5456, + 4734, + 5737, + 3931, + 5387, + 3668, + 2184, + 2526, + 6591, + 6229 + ], + "z": [ + 1760, + 1879, + 958, + 882, + 1184, + 984, + 691, + 851, + 1085, + 780 + ] + }, + { + "hovertemplate": "%{hovertext}

winner=Bergeron
result=plurality
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", + "hovertext": [ + "113-Jeanne-Mance", + "13-Ahuntsic", + "133-Vieux-Rosemont", + "183-Sainte-Marie", + "32-Côte-des-Neiges", + "72-MaisonneuveLongue-Pointe", + "73-Hochelaga", + "92-Joseph-Beaubien", + "93-Robert-Bourassa", + "94-Jeanne-Sauvé" + ], + "legendgroup": "Bergeron, plurality", + "marker": { + "color": "green", + "size": [ + 7370, + 9282, + 10866, + 6445, + 5172, + 9135, + 7900, + 1965, + 1330, + 1678 + ], + "sizemode": "area", + "sizeref": 27.625, + "symbol": "circle" + }, + "mode": "markers", + "name": "Bergeron, plurality", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 2316, + 2873, + 3234, + 2271, + 1578, + 3139, + 2675, + 592, + 419, + 489 + ], + "y": [ + 1455, + 2979, + 2670, + 1347, + 1644, + 2746, + 1546, + 540, + 446, + 491 + ], + "z": [ + 3599, + 3430, + 4962, + 2827, + 1950, + 3250, + 3679, + 833, + 465, + 698 + ] + }, + { + "hovertemplate": "%{hovertext}

winner=Bergeron
result=majority
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}
total=%{marker.size}", + "hovertext": [ + "111-Mile-End", + "112-DeLorimier", + "131-Saint-Édouard", + "132-Étienne-Desmarteau", + "193-Villeray" + ], + "legendgroup": "Bergeron, majority", + "marker": { + "color": "green", + "size": [ + 9030, + 10747, + 11050, + 10867, + 10802 + ], + "sizemode": "area", + "sizeref": 27.625, + "symbol": "diamond" + }, + "mode": "markers", + "name": "Bergeron, majority", + "scene": "scene", + "showlegend": true, + "type": "scatter3d", + "x": [ + 2514, + 3044, + 2815, + 2788, + 2782 + ], + "y": [ + 1734, + 1770, + 1827, + 2331, + 2201 + ], + "z": [ + 4782, + 5933, + 6408, + 5748, + 5819 + ] + } + ], + "layout": { + "legend": { + "itemsizing": "constant", + "title": { + "text": "winner, result" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "scene": { + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "xaxis": { + "title": { + "text": "Joly" + } + }, + "yaxis": { + "title": { + "text": "Coderre" + } + }, + "zaxis": { + "title": { + "text": "Bergeron" + } + } + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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 + } + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.scatter_3d(election, x=\"Joly\", y=\"Coderre\", z=\"Bergeron\", color=\"winner\", size=\"total\", hover_name=\"district\",\n", + " symbol=\"result\", color_discrete_map = {\"Joly\": \"blue\", \"Bergeron\": \"green\", \"Coderre\":\"red\"})" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "strength=0-1
frequency=%{r}
direction=%{theta}", + "legendgroup": "0-1", + "line": { + "color": "#febefe", + "dash": "solid" + }, + "mode": "lines", + "name": "0-1", + "r": [ + 0.5, + 0.6, + 0.5, + 0.4, + 0.4, + 0.3, + 0.4, + 0.4, + 0.6, + 0.4, + 0.5, + 0.6, + 0.6, + 0.5, + 0.4, + 0.1, + 0.5 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW", + "N" + ], + "type": "scatterpolar" + }, + { + "hovertemplate": "strength=1-2
frequency=%{r}
direction=%{theta}", + "legendgroup": "1-2", + "line": { + "color": "#fea5fd", + "dash": "solid" + }, + "mode": "lines", + "name": "1-2", + "r": [ + 1.6, + 1.8, + 1.5, + 1.6, + 1.6, + 1.2, + 1.5, + 1.7, + 2.2, + 2, + 2.3, + 2.4, + 2.3, + 2.6, + 2.3, + 0.8, + 1.6 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW", + "N" + ], + "type": "scatterpolar" + }, + { + "hovertemplate": "strength=2-3
frequency=%{r}
direction=%{theta}", + "legendgroup": "2-3", + "line": { + "color": "#fe88fc", + "dash": "solid" + }, + "mode": "lines", + "name": "2-3", + "r": [ + 0.9, + 1.3, + 1.6, + 0.9, + 1, + 0.6, + 0.6, + 0.9, + 1.4, + 1.7, + 1.9, + 2.2, + 1.8, + 1.7, + 1.8, + 0.8, + 0.9 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW", + "N" + ], + "type": "scatterpolar" + }, + { + "hovertemplate": "strength=3-4
frequency=%{r}
direction=%{theta}", + "legendgroup": "3-4", + "line": { + "color": "#fc67fd", + "dash": "solid" + }, + "mode": "lines", + "name": "3-4", + "r": [ + 0.9, + 0.8, + 1.2, + 1, + 0.8, + 0.4, + 0.5, + 0.5, + 0.8, + 0.9, + 1.3, + 1.1, + 1.2, + 1.2, + 1.3, + 1, + 0.9 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW", + "N" + ], + "type": "scatterpolar" + }, + { + "hovertemplate": "strength=4-4
frequency=%{r}
direction=%{theta}", + "legendgroup": "4-4", + "line": { + "color": "#f246fe", + "dash": "solid" + }, + "mode": "lines", + "name": "4-4", + "r": [ + 0.4, + 0.5, + 1.2, + 0.5, + 0.4, + 0.2, + 0.4, + 0.4, + 0.7, + 0.6, + 0.7, + 0.8, + 0.9, + 1, + 1, + 0.7, + 0.4 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW", + "N" + ], + "type": "scatterpolar" + }, + { + "hovertemplate": "strength=4-5
frequency=%{r}
direction=%{theta}", + "legendgroup": "4-5", + "line": { + "color": "#dd2bfd", + "dash": "solid" + }, + "mode": "lines", + "name": "4-5", + "r": [ + 0.3, + 0.3, + 0.6, + 0.2, + 0.1, + 0.1, + 0.05, + 0.1, + 0.1, + 0.2, + 0.3, + 0.4, + 0.9, + 0.9, + 0.9, + 0.3, + 0.3 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW", + "N" + ], + "type": "scatterpolar" + }, + { + "hovertemplate": "strength=5-6
frequency=%{r}
direction=%{theta}", + "legendgroup": "5-6", + "line": { + "color": "#bf1cfd", + "dash": "solid" + }, + "mode": "lines", + "name": "5-6", + "r": [ + 0.2, + 0.1, + 0.1, + 0.1, + 0.1, + 0.1, + 0.05, + 0.05, + 0.1, + 0.05, + 0.2, + 0.2, + 0.4, + 0.7, + 0.7, + 0.4, + 0.2 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW", + "N" + ], + "type": "scatterpolar" + }, + { + "hovertemplate": "strength=6+
frequency=%{r}
direction=%{theta}", + "legendgroup": "6+", + "line": { + "color": "#981cfd", + "dash": "solid" + }, + "mode": "lines", + "name": "6+", + "r": [ + 0.1, + 0.1, + 0.1, + 0.1, + 0.1, + 0.05, + 0.05, + 0.05, + 0.05, + 0.1, + 0.1, + 0.1, + 0.9, + 2.2, + 1.5, + 0.2, + 0.1 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW", + "N" + ], + "type": "scatterpolar" + } + ], + "layout": { + "legend": { + "title": { + "text": "strength" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "polar": { + "angularaxis": { + "direction": "clockwise", + "rotation": 90 + }, + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + } + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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 + } + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "wind = px.data.wind()\n", + "\n", + "px.line_polar(wind, r=\"frequency\", theta=\"direction\", color=\"strength\", line_close=True,\n", + " color_discrete_sequence=px.colors.sequential.Plotly3[-2::-1])" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "strength=0-1
frequency=%{r}
direction=%{theta}", + "legendgroup": "0-1", + "marker": { + "color": "#febefe" + }, + "name": "0-1", + "r": [ + 0.5, + 0.6, + 0.5, + 0.4, + 0.4, + 0.3, + 0.4, + 0.4, + 0.6, + 0.4, + 0.5, + 0.6, + 0.6, + 0.5, + 0.4, + 0.1 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW" + ], + "type": "barpolar" + }, + { + "hovertemplate": "strength=1-2
frequency=%{r}
direction=%{theta}", + "legendgroup": "1-2", + "marker": { + "color": "#fea5fd" + }, + "name": "1-2", + "r": [ + 1.6, + 1.8, + 1.5, + 1.6, + 1.6, + 1.2, + 1.5, + 1.7, + 2.2, + 2, + 2.3, + 2.4, + 2.3, + 2.6, + 2.3, + 0.8 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW" + ], + "type": "barpolar" + }, + { + "hovertemplate": "strength=2-3
frequency=%{r}
direction=%{theta}", + "legendgroup": "2-3", + "marker": { + "color": "#fe88fc" + }, + "name": "2-3", + "r": [ + 0.9, + 1.3, + 1.6, + 0.9, + 1, + 0.6, + 0.6, + 0.9, + 1.4, + 1.7, + 1.9, + 2.2, + 1.8, + 1.7, + 1.8, + 0.8 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW" + ], + "type": "barpolar" + }, + { + "hovertemplate": "strength=3-4
frequency=%{r}
direction=%{theta}", + "legendgroup": "3-4", + "marker": { + "color": "#fc67fd" + }, + "name": "3-4", + "r": [ + 0.9, + 0.8, + 1.2, + 1, + 0.8, + 0.4, + 0.5, + 0.5, + 0.8, + 0.9, + 1.3, + 1.1, + 1.2, + 1.2, + 1.3, + 1 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW" + ], + "type": "barpolar" + }, + { + "hovertemplate": "strength=4-4
frequency=%{r}
direction=%{theta}", + "legendgroup": "4-4", + "marker": { + "color": "#f246fe" + }, + "name": "4-4", + "r": [ + 0.4, + 0.5, + 1.2, + 0.5, + 0.4, + 0.2, + 0.4, + 0.4, + 0.7, + 0.6, + 0.7, + 0.8, + 0.9, + 1, + 1, + 0.7 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW" + ], + "type": "barpolar" + }, + { + "hovertemplate": "strength=4-5
frequency=%{r}
direction=%{theta}", + "legendgroup": "4-5", + "marker": { + "color": "#dd2bfd" + }, + "name": "4-5", + "r": [ + 0.3, + 0.3, + 0.6, + 0.2, + 0.1, + 0.1, + 0.05, + 0.1, + 0.1, + 0.2, + 0.3, + 0.4, + 0.9, + 0.9, + 0.9, + 0.3 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW" + ], + "type": "barpolar" + }, + { + "hovertemplate": "strength=5-6
frequency=%{r}
direction=%{theta}", + "legendgroup": "5-6", + "marker": { + "color": "#bf1cfd" + }, + "name": "5-6", + "r": [ + 0.2, + 0.1, + 0.1, + 0.1, + 0.1, + 0.1, + 0.05, + 0.05, + 0.1, + 0.05, + 0.2, + 0.2, + 0.4, + 0.7, + 0.7, + 0.4 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW" + ], + "type": "barpolar" + }, + { + "hovertemplate": "strength=6+
frequency=%{r}
direction=%{theta}", + "legendgroup": "6+", + "marker": { + "color": "#981cfd" + }, + "name": "6+", + "r": [ + 0.1, + 0.1, + 0.1, + 0.1, + 0.1, + 0.05, + 0.05, + 0.05, + 0.05, + 0.1, + 0.1, + 0.1, + 0.9, + 2.2, + 1.5, + 0.2 + ], + "showlegend": true, + "subplot": "polar", + "theta": [ + "N", + "NNE", + "NE", + "ENE", + "E", + "ESE", + "SE", + "SSE", + "S", + "SSW", + "SW", + "WSW", + "W", + "WNW", + "NW", + "NNW" + ], + "type": "barpolar" + } + ], + "layout": { + "barmode": "relative", + "legend": { + "title": { + "text": "strength" + }, + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "polar": { + "angularaxis": { + "direction": "clockwise", + "rotation": 90 + }, + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + } + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#f2f5fa" + }, + "error_y": { + "color": "#f2f5fa" + }, + "marker": { + "line": { + "color": "rgb(17,17,17)", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "rgb(17,17,17)", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#A2B1C6", + "gridcolor": "#506784", + "linecolor": "#506784", + "minorgridcolor": "#506784", + "startlinecolor": "#A2B1C6" + }, + "baxis": { + "endlinecolor": "#A2B1C6", + "gridcolor": "#506784", + "linecolor": "#506784", + "minorgridcolor": "#506784", + "startlinecolor": "#A2B1C6" + }, + "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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "line": { + "color": "#283442" + } + }, + "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": { + "line": { + "color": "#283442" + } + }, + "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": "#506784" + }, + "line": { + "color": "rgb(17,17,17)" + } + }, + "header": { + "fill": { + "color": "#2a3f5f" + }, + "line": { + "color": "rgb(17,17,17)" + } + }, + "type": "table" + } + ] + }, + "layout": { + "annotationdefaults": { + "arrowcolor": "#f2f5fa", + "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": "#f2f5fa" + }, + "geo": { + "bgcolor": "rgb(17,17,17)", + "lakecolor": "rgb(17,17,17)", + "landcolor": "rgb(17,17,17)", + "showlakes": true, + "showland": true, + "subunitcolor": "#506784" + }, + "hoverlabel": { + "align": "left" + }, + "hovermode": "closest", + "mapbox": { + "style": "dark" + }, + "paper_bgcolor": "rgb(17,17,17)", + "plot_bgcolor": "rgb(17,17,17)", + "polar": { + "angularaxis": { + "gridcolor": "#506784", + "linecolor": "#506784", + "ticks": "" + }, + "bgcolor": "rgb(17,17,17)", + "radialaxis": { + "gridcolor": "#506784", + "linecolor": "#506784", + "ticks": "" + } + }, + "scene": { + "xaxis": { + "backgroundcolor": "rgb(17,17,17)", + "gridcolor": "#506784", + "gridwidth": 2, + "linecolor": "#506784", + "showbackground": true, + "ticks": "", + "zerolinecolor": "#C8D4E3" + }, + "yaxis": { + "backgroundcolor": "rgb(17,17,17)", + "gridcolor": "#506784", + "gridwidth": 2, + "linecolor": "#506784", + "showbackground": true, + "ticks": "", + "zerolinecolor": "#C8D4E3" + }, + "zaxis": { + "backgroundcolor": "rgb(17,17,17)", + "gridcolor": "#506784", + "gridwidth": 2, + "linecolor": "#506784", + "showbackground": true, + "ticks": "", + "zerolinecolor": "#C8D4E3" + } + }, + "shapedefaults": { + "line": { + "color": "#f2f5fa" + } + }, + "sliderdefaults": { + "bgcolor": "#C8D4E3", + "bordercolor": "rgb(17,17,17)", + "borderwidth": 1, + "tickwidth": 0 + }, + "ternary": { + "aaxis": { + "gridcolor": "#506784", + "linecolor": "#506784", + "ticks": "" + }, + "baxis": { + "gridcolor": "#506784", + "linecolor": "#506784", + "ticks": "" + }, + "bgcolor": "rgb(17,17,17)", + "caxis": { + "gridcolor": "#506784", + "linecolor": "#506784", + "ticks": "" + } + }, + "title": { + "x": 0.05 + }, + "updatemenudefaults": { + "bgcolor": "#506784", + "borderwidth": 0 + }, + "xaxis": { + "automargin": true, + "gridcolor": "#283442", + "linecolor": "#506784", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "#283442", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "#283442", + "linecolor": "#506784", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "#283442", + "zerolinewidth": 2 + } + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.bar_polar(wind, r=\"frequency\", theta=\"direction\", color=\"strength\", template=\"plotly_dark\",\n", + " color_discrete_sequence= px.colors.sequential.Plotly3[-2::-1])" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": {}, + "outputs": [], + "source": [ + "# 备注:Python数据之道\n", + "# token 文件不知道在哪里,所以下面这段代码不能运行\n", + "\n", + "# carshare = px.data.carshare()\n", + "\n", + "# px.set_mapbox_access_token(open(\".mapbox_token\").read())\n", + "# px.scatter_mapbox(carshare, lat=\"centroid_lat\", lon=\"centroid_lon\", color=\"peak_hour\", size=\"car_hours\", \n", + "# color_continuous_scale=px.colors.cyclical.IceFire, size_max=15, zoom=10)" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "dimensions": [ + { + "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": "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": "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 + ] + }, + { + "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 + ] + } + ], + "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_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": "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": "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 + ] + }, + { + "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 + ] + } + ], + "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_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": "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": "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 + ] + }, + { + "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 + ] + } + ], + "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 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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 + } + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "px.scatter_matrix(iris, dimensions=[\"sepal_width\", \"sepal_length\", \"petal_width\", \"petal_length\"], color=\"species\")" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "dimensions": [ + { + "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, + 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, + 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 + ] + }, + { + "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, + 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, + 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 + ] + }, + { + "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, + 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, + 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 + ] + }, + { + "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, + 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, + 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 + ] + }, + { + "label": "species_id", + "values": [ + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3 + ] + } + ], + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "line": { + "color": [ + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 2, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3, + 3 + ], + "coloraxis": "coloraxis" + }, + "name": "", + "type": "parcoords" + } + ], + "layout": { + "coloraxis": { + "colorbar": { + "title": { + "text": "species_id" + } + }, + "colorscale": [ + [ + 0, + "red" + ], + [ + 0.5, + "green" + ], + [ + 1, + "blue" + ] + ] + }, + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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 + } + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "# 平行坐标的显示 跟原文一样,暂时不知道是哪个地方的差异 (备注:Python数据之道)\n", + "px.parallel_coordinates(iris, color='species_id', color_continuous_scale=['red','green', 'blue'])" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 用 Plotly 进行调整" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "species=setosa
sepal_width=%{x}
sepal_length=%{y}", + "legendgroup": "setosa", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "setosa", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 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 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "species=versicolor
sepal_width=%{x}
sepal_length=%{y}", + "legendgroup": "versicolor", + "marker": { + "color": "#EF553B", + "symbol": "circle" + }, + "mode": "markers", + "name": "versicolor", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 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 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + }, + { + "hovertemplate": "species=virginica
sepal_width=%{x}
sepal_length=%{y}", + "legendgroup": "virginica", + "marker": { + "color": "#00cc96", + "symbol": "circle" + }, + "mode": "markers", + "name": "virginica", + "orientation": "v", + "showlegend": true, + "type": "scatter", + "x": [ + 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 + ], + "xaxis": "x", + "y": [ + 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 + ], + "yaxis": "y" + } + ], + "layout": { + "annotations": [ + { + "text": "this one is interesting", + "x": 3.6, + "y": 7.2 + } + ], + "legend": { + "orientation": "h", + "title": { + "text": "species" + }, + "tracegroupgap": 0, + "x": 0.5, + "y": 1.1 + }, + "margin": { + "t": 60 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "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": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#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_width" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "sepal_length" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "import plotly_express as px\n", + "\n", + "fig = px.scatter(px.data.iris(), x='sepal_width', y='sepal_length', color='species')\n", + "\n", + "import plotly.graph_objs as go\n", + "\n", + "fig.update(layout=dict(legend=dict(orientation='h',y=1.1,x=0.5),\n", + " annotations=[go.layout.Annotation(text='this one is interesting', x=3.6, y=7.2)]))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "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.8.6" + }, + "toc": { + "base_numbering": 1, + "nav_menu": {}, + "number_sections": true, + "sideBar": true, + "skip_h1_title": false, + "title_cell": "Table of Contents", + "title_sidebar": "Contents", + "toc_cell": true, + "toc_position": { + "height": "calc(100% - 180px)", + "left": "10px", + "top": "150px", + "width": "205px" + }, + "toc_section_display": true, + "toc_window_display": true + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}