{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Plotly Express Gallery\n", "\n", "Plotly Express is a terse, consistent, high-level wrapper around [Plotly.py](https://plot.ly/python) for rapid data exploration and figure generation.\n", "\n", "This notebook demonstrates various `plotly_express` features. [Reference documentation](https://plotly.github.io/plotly_express/plotly_express/) and a [step by step walkthrough notebook](https://nbviewer.jupyter.org/github/plotly/plotly_express/blob/master/walkthrough.ipynb) are also available.\n", "\n", "You can also read our [Medium announcement article](https://medium.com/@plotlygraphs/introducing-plotly-express-808df010143d) for more information on this library." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## A single import" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import plotly_express as px" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Built-in sample datasets" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", " Each row represents a flower.\n", "\n", " https://en.wikipedia.org/wiki/Iris_flower_data_set\n", "\n", " Returns:\n", " A `pandas.DataFrame` with 150 rows and the following columns: `['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species',\n", " 'species_id']`.\n", " \n" ] } ], "source": [ "print(px.data.iris.__doc__)\n", "iris = px.data.iris()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "tips = px.data.tips()\n", "gapminder = px.data.gapminder()\n", "election = px.data.election()\n", "wind = px.data.wind()\n", "carshare = px.data.carshare()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Scatter and Line plots" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/vnd.plotly.v1+html": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "hovertemplate": "sepal_width=%{x}
sepal_length=%{y}", "legendgroup": "", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "markers", "name": " ", "showlegend": false, "type": "scatter", "uid": "8817b797-1097-47cf-96c3-4580ff4e5c6d", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter(iris, x=\"sepal_width\", y=\"sepal_length\")" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "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": "f568b990-7fae-46e2-a6a6-fbd7dd011a9e", "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": "species=versicolor", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "markers", "name": "species=versicolor", "showlegend": true, "type": "scatter", "uid": "8345ac72-94be-431c-a85d-3848f1540524", "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": "species=virginica", "marker": { "color": "#00cc96", "symbol": "circle" }, "mode": "markers", "name": "species=virginica", "showlegend": true, "type": "scatter", "uid": "f3d8f3c3-b732-4dee-b7ab-babc543427d1", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter(iris, x=\"sepal_width\", y=\"sepal_length\", color=\"species\")" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "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": "400fac47-9ee0-40a2-b9e5-fdda22455cc8", "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", "boxpoints": "all", "fillcolor": "rgba(255,255,255,0)", "hoveron": "points", "jitter": 0, "legendgroup": "species=setosa", "line": { "color": "rgba(255,255,255,0)" }, "marker": { "color": "#636efa", "symbol": "line-ns-open" }, "name": "species=setosa", "offsetgroup": "species=setosa", "showlegend": false, "type": "box", "uid": "0a28902a-5670-4752-9e82-a14f4985e7f4", "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", "legendgroup": "species=setosa", "marker": { "color": "#636efa", "symbol": "circle" }, "name": "species=setosa", "offsetgroup": "species=setosa", "showlegend": false, "type": "violin", "uid": "65c7bb23-1b35-4fb2-9e0e-14272f8d9654", "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" }, { "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": "ec527e62-6627-4a3b-99d5-c79bf76db490", "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", "boxpoints": "all", "fillcolor": "rgba(255,255,255,0)", "hoveron": "points", "jitter": 0, "legendgroup": "species=versicolor", "line": { "color": "rgba(255,255,255,0)" }, "marker": { "color": "#EF553B", "symbol": "line-ns-open" }, "name": "species=versicolor", "offsetgroup": "species=versicolor", "showlegend": false, "type": "box", "uid": "74641528-77cf-44ce-b2e0-150812668b4d", "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", "legendgroup": "species=versicolor", "marker": { "color": "#EF553B", "symbol": "circle" }, "name": "species=versicolor", "offsetgroup": "species=versicolor", "showlegend": false, "type": "violin", "uid": "f05b3840-6b05-4440-a402-e0b2efb103d9", "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" }, { "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": "643800dc-3f3c-4bc8-af53-1f3e675f612e", "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", "boxpoints": "all", "fillcolor": "rgba(255,255,255,0)", "hoveron": "points", "jitter": 0, "legendgroup": "species=virginica", "line": { "color": "rgba(255,255,255,0)" }, "marker": { "color": "#00cc96", "symbol": "line-ns-open" }, "name": "species=virginica", "offsetgroup": "species=virginica", "showlegend": false, "type": "box", "uid": "7dfbe032-dd5c-42cb-9860-76764afe4ea7", "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", "legendgroup": "species=virginica", "marker": { "color": "#00cc96", "symbol": "circle" }, "name": "species=virginica", "offsetgroup": "species=virginica", "showlegend": false, "type": "violin", "uid": "0f09a923-0223-47ea-a1da-7cb12ab4679c", "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" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": "overlay", "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter(iris, x=\"sepal_width\", y=\"sepal_length\", color=\"species\", marginal_y=\"violin\", marginal_x=\"rug\")" ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "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": "fb57a4b7-6763-44dc-93be-348bd8b3d682", "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", "legendgroup": "species=setosa", "marker": { "color": "#636efa", "symbol": "circle" }, "name": "species=setosa", "notched": true, "offsetgroup": "species=setosa", "showlegend": false, "type": "box", "uid": "fb4c2839-12f3-4f4d-af46-73c396ddd27c", "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", "legendgroup": "species=setosa", "marker": { "color": "#636efa", "symbol": "circle" }, "name": "species=setosa", "offsetgroup": "species=setosa", "showlegend": false, "type": "violin", "uid": "abd8976b-f693-47f3-b3bd-770b83e9f4e9", "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" }, { "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": "f3854ebc-d018-4565-8a16-4ecf94a448df", "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" }, { "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": "a9e28758-53f2-40d7-a50d-3e7fa0c41108", "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", "legendgroup": "species=versicolor", "marker": { "color": "#EF553B", "symbol": "circle" }, "name": "species=versicolor", "notched": true, "offsetgroup": "species=versicolor", "showlegend": false, "type": "box", "uid": "d80bfea2-6c00-44c8-84fa-e7bd19cb3309", "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", "legendgroup": "species=versicolor", "marker": { "color": "#EF553B", "symbol": "circle" }, "name": "species=versicolor", "offsetgroup": "species=versicolor", "showlegend": false, "type": "violin", "uid": "bcf85425-0e1d-400d-87b1-dcc8c283e0c9", "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" }, { "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": "9c0a3e11-d7e9-4165-b124-ffb926b20406", "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" }, { "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": "0dc82b81-506f-4fd9-9e5c-6477162bba94", "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", "legendgroup": "species=virginica", "marker": { "color": "#00cc96", "symbol": "circle" }, "name": "species=virginica", "notched": true, "offsetgroup": "species=virginica", "showlegend": false, "type": "box", "uid": "7df52482-74ec-4813-a485-753dcc232d86", "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", "legendgroup": "species=virginica", "marker": { "color": "#00cc96", "symbol": "circle" }, "name": "species=virginica", "offsetgroup": "species=virginica", "showlegend": false, "type": "violin", "uid": "ee4b579f-86c0-4b84-bdf7-f1c65f2bdcf4", "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" }, { "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": "d716235e-cd6e-400e-8438-9f785284891c", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": "overlay", "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter(iris, x=\"sepal_width\", y=\"sepal_length\", color=\"species\", marginal_y=\"violin\", \n", " marginal_x=\"box\", trendline=\"ols\")" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "error_x": { "array": [ 0.035, 0.03, 0.032, 0.031, 0.036000000000000004, 0.039, 0.034, 0.034, 0.028999999999999998, 0.031, 0.037000000000000005, 0.034, 0.03, 0.03, 0.04, 0.044000000000000004, 0.039, 0.035, 0.038, 0.038, 0.034, 0.037000000000000005, 0.036000000000000004, 0.033, 0.034, 0.03, 0.034, 0.035, 0.034, 0.032, 0.031, 0.034, 0.040999999999999995, 0.042, 0.031, 0.032, 0.035, 0.031, 0.03, 0.034, 0.035, 0.023, 0.032, 0.035, 0.038, 0.03, 0.038, 0.032, 0.037000000000000005, 0.033 ] }, "error_y": { "array": [ 0.035, 0.03, 0.032, 0.031, 0.036000000000000004, 0.039, 0.034, 0.034, 0.028999999999999998, 0.031, 0.037000000000000005, 0.034, 0.03, 0.03, 0.04, 0.044000000000000004, 0.039, 0.035, 0.038, 0.038, 0.034, 0.037000000000000005, 0.036000000000000004, 0.033, 0.034, 0.03, 0.034, 0.035, 0.034, 0.032, 0.031, 0.034, 0.040999999999999995, 0.042, 0.031, 0.032, 0.035, 0.031, 0.03, 0.034, 0.035, 0.023, 0.032, 0.035, 0.038, 0.03, 0.038, 0.032, 0.037000000000000005, 0.033 ] }, "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": "fb286da0-517e-4df3-89eb-089cbfcc8784", "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" }, { "error_x": { "array": [ 0.032, 0.032, 0.031, 0.023, 0.027999999999999997, 0.027999999999999997, 0.033, 0.024, 0.028999999999999998, 0.027000000000000003, 0.02, 0.03, 0.022000000000000002, 0.028999999999999998, 0.028999999999999998, 0.031, 0.03, 0.027000000000000003, 0.022000000000000002, 0.025, 0.032, 0.027999999999999997, 0.025, 0.027999999999999997, 0.028999999999999998, 0.03, 0.027999999999999997, 0.03, 0.028999999999999998, 0.026000000000000002, 0.024, 0.024, 0.027000000000000003, 0.027000000000000003, 0.03, 0.034, 0.031, 0.023, 0.03, 0.025, 0.026000000000000002, 0.03, 0.026000000000000002, 0.023, 0.027000000000000003, 0.03, 0.028999999999999998, 0.028999999999999998, 0.025, 0.027999999999999997 ] }, "error_y": { "array": [ 0.032, 0.032, 0.031, 0.023, 0.027999999999999997, 0.027999999999999997, 0.033, 0.024, 0.028999999999999998, 0.027000000000000003, 0.02, 0.03, 0.022000000000000002, 0.028999999999999998, 0.028999999999999998, 0.031, 0.03, 0.027000000000000003, 0.022000000000000002, 0.025, 0.032, 0.027999999999999997, 0.025, 0.027999999999999997, 0.028999999999999998, 0.03, 0.027999999999999997, 0.03, 0.028999999999999998, 0.026000000000000002, 0.024, 0.024, 0.027000000000000003, 0.027000000000000003, 0.03, 0.034, 0.031, 0.023, 0.03, 0.025, 0.026000000000000002, 0.03, 0.026000000000000002, 0.023, 0.027000000000000003, 0.03, 0.028999999999999998, 0.028999999999999998, 0.025, 0.027999999999999997 ] }, "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": "59fb92af-fb0d-44ef-8482-5b5b39d9d715", "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" }, { "error_x": { "array": [ 0.033, 0.027000000000000003, 0.03, 0.028999999999999998, 0.03, 0.03, 0.025, 0.028999999999999998, 0.025, 0.036000000000000004, 0.032, 0.027000000000000003, 0.03, 0.025, 0.027999999999999997, 0.032, 0.03, 0.038, 0.026000000000000002, 0.022000000000000002, 0.032, 0.027999999999999997, 0.027999999999999997, 0.027000000000000003, 0.033, 0.032, 0.027999999999999997, 0.03, 0.027999999999999997, 0.03, 0.027999999999999997, 0.038, 0.027999999999999997, 0.027999999999999997, 0.026000000000000002, 0.03, 0.034, 0.031, 0.03, 0.031, 0.031, 0.031, 0.027000000000000003, 0.032, 0.033, 0.03, 0.025, 0.03, 0.034, 0.03 ] }, "error_y": { "array": [ 0.033, 0.027000000000000003, 0.03, 0.028999999999999998, 0.03, 0.03, 0.025, 0.028999999999999998, 0.025, 0.036000000000000004, 0.032, 0.027000000000000003, 0.03, 0.025, 0.027999999999999997, 0.032, 0.03, 0.038, 0.026000000000000002, 0.022000000000000002, 0.032, 0.027999999999999997, 0.027999999999999997, 0.027000000000000003, 0.033, 0.032, 0.027999999999999997, 0.03, 0.027999999999999997, 0.03, 0.027999999999999997, 0.038, 0.027999999999999997, 0.027999999999999997, 0.026000000000000002, 0.03, 0.034, 0.031, 0.03, 0.031, 0.031, 0.031, 0.027000000000000003, 0.032, 0.033, 0.03, 0.025, 0.03, 0.034, 0.03 ] }, "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": "4912ed04-72e3-40c5-a876-8f0ef901b0af", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "iris[\"e\"] = iris[\"sepal_width\"]/100\n", "px.scatter(iris, x=\"sepal_width\", y=\"sepal_length\", color=\"species\", error_x=\"e\", error_y=\"e\")" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "del iris[\"e\"]" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "hovertemplate": "time=Lunch
day=Thur
smoker=No
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "markers", "name": "smoker=No", "showlegend": true, "type": "scatter", "uid": "a0e4d56a-9ba4-4bbe-b5a9-a84374018c1a", "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" }, { "hovertemplate": "OLS trendline
tip = 0.139041 * total_bill + 0.292202
R2=0.700600

time=Lunch
day=Thur
smoker=No
total_bill=%{x}
tip=%{y} (trend)", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "lines", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "54302269-d453-48ab-aed2-59f7ea5b8005", "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" }, { "hovertemplate": "time=Lunch
day=Thur
smoker=Yes
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "markers", "name": "smoker=Yes", "showlegend": true, "type": "scatter", "uid": "28f5aaf0-0247-4821-aec0-b355a8ff711a", "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" }, { "hovertemplate": "OLS trendline
tip = 0.099046 * total_bill + 1.129247
R2=0.552344

time=Lunch
day=Thur
smoker=Yes
total_bill=%{x}
tip=%{y} (trend)", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "lines", "name": "smoker=Yes", "showlegend": false, "type": "scatter", "uid": "d60ae636-2749-4c2f-8194-27c9ad17c4d4", "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" }, { "hovertemplate": "time=Lunch
day=Fri
smoker=No
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "markers", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "be737493-1c22-49f9-8558-6679705c17f1", "x": [ 15.98 ], "xaxis": "x2", "y": [ 3 ], "yaxis": "y" }, { "hovertemplate": "time=Lunch
day=Fri
smoker=No", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "lines", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "c5e0cf1a-b713-4778-a79b-875d498227cc", "xaxis": "x2", "yaxis": "y" }, { "hovertemplate": "time=Lunch
day=Fri
smoker=Yes
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "markers", "name": "smoker=Yes", "showlegend": false, "type": "scatter", "uid": "bf32030a-78fe-44e3-b054-75754718f66e", "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" }, { "hovertemplate": "OLS trendline
tip = 0.091941 * total_bill + 1.146981
R2=0.142666

time=Lunch
day=Fri
smoker=Yes
total_bill=%{x}
tip=%{y} (trend)", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "lines", "name": "smoker=Yes", "showlegend": false, "type": "scatter", "uid": "e93af0e9-3329-4ab1-84b6-196cd6452310", "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" }, { "hovertemplate": "time=Dinner
day=Thur
smoker=No
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "markers", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "f3207ca5-4b9a-4740-89aa-8758ba470d53", "x": [ 18.78 ], "xaxis": "x", "y": [ 3 ], "yaxis": "y2" }, { "hovertemplate": "time=Dinner
day=Thur
smoker=No", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "lines", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "1cf09584-0d4f-40ec-a36d-43b229697bf1", "xaxis": "x", "yaxis": "y2" }, { "hovertemplate": "time=Dinner
day=Fri
smoker=No
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "markers", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "693b8fc8-19d9-43c3-ba62-f17dc22a25da", "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

time=Dinner
day=Fri
smoker=No
total_bill=%{x}
tip=%{y} (trend)", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "lines", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "d5977d91-bbe8-49fb-85f0-9a7750dd7b10", "x": [ 12.46, 22.49, 22.75 ], "xaxis": "x2", "y": [ 1.5038108936900343, 3.349176553575217, 3.397012552734753 ], "yaxis": "y2" }, { "hovertemplate": "time=Dinner
day=Fri
smoker=Yes
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "markers", "name": "smoker=Yes", "showlegend": false, "type": "scatter", "uid": "98afd9ee-e35e-4a71-a1df-f37b5625c460", "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.228894
R2=0.604292

time=Dinner
day=Fri
smoker=Yes
total_bill=%{x}
tip=%{y} (trend)", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "lines", "name": "smoker=Yes", "showlegend": false, "type": "scatter", "uid": "cdf398d0-eb09-465e-b3c1-08ca1dec8526", "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" }, { "hovertemplate": "time=Dinner
day=Sat
smoker=No
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "markers", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "429ae1ae-7109-470e-ade6-91779ad3b3cc", "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" }, { "hovertemplate": "OLS trendline
tip = 0.160930 * total_bill + -0.061278
R2=0.767496

time=Dinner
day=Sat
smoker=No
total_bill=%{x}
tip=%{y} (trend)", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "lines", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "63e8960f-0fe5-40ba-8640-627e6d95327c", "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" }, { "hovertemplate": "time=Dinner
day=Sat
smoker=Yes
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "markers", "name": "smoker=Yes", "showlegend": false, "type": "scatter", "uid": "d921282b-4563-44d2-ad49-3e611e6c7dba", "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" }, { "hovertemplate": "OLS trendline
tip = 0.090893 * total_bill + 0.941566
R2=0.315040

time=Dinner
day=Sat
smoker=Yes
total_bill=%{x}
tip=%{y} (trend)", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "lines", "name": "smoker=Yes", "showlegend": false, "type": "scatter", "uid": "707fe99f-0643-46de-88eb-c61948107a01", "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" }, { "hovertemplate": "time=Dinner
day=Sun
smoker=No
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "markers", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "4b4c2e43-cff5-4c3f-8b59-51cfca76d96f", "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" }, { "hovertemplate": "OLS trendline
tip = 0.111709 * total_bill + 0.877124
R2=0.549863

time=Dinner
day=Sun
smoker=No
total_bill=%{x}
tip=%{y} (trend)", "legendgroup": "smoker=No", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "lines", "name": "smoker=No", "showlegend": false, "type": "scatter", "uid": "bc9cdee9-298e-4a1c-a0e6-c1bbc2cb553b", "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" }, { "hovertemplate": "time=Dinner
day=Sun
smoker=Yes
total_bill=%{x}
tip=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "markers", "name": "smoker=Yes", "showlegend": false, "type": "scatter", "uid": "691527c7-bd9f-44bd-8080-18cd724426c5", "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" }, { "hovertemplate": "OLS trendline
tip = -0.010717 * total_bill + 3.775339
R2=0.007875

time=Dinner
day=Sun
smoker=Yes
total_bill=%{x}
tip=%{y} (trend)", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B", "symbol": "circle" }, "mode": "lines", "name": "smoker=Yes", "showlegend": false, "type": "scatter", "uid": "e0e5c7cc-de8e-46a3-a1dd-a0f53a3c5b17", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter(tips, x=\"total_bill\", y=\"tip\", facet_row=\"time\", facet_col=\"day\", color=\"smoker\", trendline=\"ols\",\n", " category_orders={\"day\": [\"Thur\", \"Fri\", \"Sat\", \"Sun\"], \"time\": [\"Lunch\", \"Dinner\"]})" ] }, { "cell_type": "code", "execution_count": 11, "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, 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 ] }, { "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, 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 ] }, { "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, 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 ] }, { "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, 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 ] }, { "axis": { "matches": true }, "label": "species", "values": [ "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "setosa", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "versicolor", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica", "virginica" ] }, { "axis": { "matches": true }, "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 ] } ], "legendgroup": "", "marker": { "color": "#636efa", "symbol": "circle" }, "name": " ", "showlegend": false, "type": "splom", "uid": "aa01e703-3a08-4e39-b961-d581d85e6c50" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter_matrix(iris)" ] }, { "cell_type": "code", "execution_count": 12, "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 ] } ], "legendgroup": "species=setosa", "marker": { "color": "#636efa", "symbol": "circle" }, "name": "species=setosa", "showlegend": true, "type": "splom", "uid": "60c0d626-1800-46ca-b2c2-a72848043434" }, { "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 ] } ], "legendgroup": "species=versicolor", "marker": { "color": "#EF553B", "symbol": "circle" }, "name": "species=versicolor", "showlegend": true, "type": "splom", "uid": "d02d5bb4-4a7d-4b11-9ab6-f6b4d0819208" }, { "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 ] } ], "legendgroup": "species=virginica", "marker": { "color": "#00cc96", "symbol": "circle" }, "name": "species=virginica", "showlegend": true, "type": "splom", "uid": "2d7d5919-b09b-4b27-a92b-dd685d91866b" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+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": 13, "metadata": { "scrolled": false }, "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", "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 ] } ], "legendgroup": "", "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" } }, "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": " ", "showlegend": false, "type": "parcoords", "uid": "6e982ee3-89f9-4b25-9c49-454d2dbc6bb6" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.parallel_coordinates(iris, color=\"species_id\", labels={\"species_id\": \"Species\",\n", " \"sepal_width\": \"Sepal Width\", \"sepal_length\": \"Sepal Length\", \n", " \"petal_width\": \"Petal Width\", \"petal_length\": \"Petal Length\", },\n", " color_continuous_scale=px.colors.diverging.Tealrose, color_continuous_midpoint=2)" ] }, { "cell_type": "code", "execution_count": 14, "metadata": { "scrolled": false }, "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": "5b52d939-6b72-4aaf-9f5a-379ea288cc5a" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+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": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "hovertemplate": "sex=Female
total_bill=%{x}
tip=%{y}
size=%{marker.color}", "legendgroup": "", "marker": { "cmax": 6, "cmin": 1, "color": [ 2, 4, 4, 2, 3, 3, 2, 2, 2, 2, 4, 3, 2, 4, 2, 2, 1, 3, 2, 2, 2, 1, 4, 2, 2, 2, 2, 2, 3, 2, 2, 2, 1, 3, 2, 2, 2, 4, 2, 2, 6, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6, 2, 2, 3, 2, 5, 4, 2, 3, 2, 2, 2, 2, 3, 3, 2, 4, 2, 2, 2, 2, 3, 2, 2, 3, 2, 4, 2, 3, 2, 2, 2, 3, 2, 2 ], "colorbar": { "title": { "text": "size" } }, "colorscale": [ [ 0, "#440154" ], [ 0.1111111111111111, "#482878" ], [ 0.2222222222222222, "#3e4989" ], [ 0.3333333333333333, "#31688e" ], [ 0.4444444444444444, "#26828e" ], [ 0.5555555555555556, "#1f9e89" ], [ 0.6666666666666666, "#35b779" ], [ 0.7777777777777778, "#6ece58" ], [ 0.8888888888888888, "#b5de2b" ], [ 1, "#fde725" ] ], "showscale": true, "symbol": "circle" }, "mode": "markers", "name": " ", "showlegend": false, "type": "scatter", "uid": "49c32a8b-1677-4f7f-81e5-1da79d401ab0", "x": [ 16.99, 24.59, 35.26, 14.83, 10.33, 16.97, 20.29, 15.77, 19.65, 15.06, 20.69, 16.93, 10.29, 34.81, 26.41, 16.45, 3.07, 17.07, 26.86, 25.28, 14.73, 10.07, 34.83, 5.75, 16.32, 22.75, 11.35, 15.38, 44.3, 22.42, 20.92, 14.31, 7.25, 25.71, 17.31, 10.65, 12.43, 24.08, 13.42, 12.48, 29.8, 14.52, 11.38, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 13.16, 17.47, 27.05, 16.43, 8.35, 18.64, 11.87, 29.85, 25, 13.39, 16.21, 17.51, 10.59, 10.63, 9.6, 20.9, 18.15, 19.81, 43.11, 13, 12.74, 13, 16.4, 16.47, 12.76, 13.27, 28.17, 12.9, 30.14, 13.42, 15.98, 16.27, 10.09, 22.12, 35.83, 27.18, 18.78 ], "xaxis": "x", "y": [ 1.01, 3.61, 5, 3.02, 1.67, 3.5, 2.75, 2.23, 3, 3, 2.45, 3.07, 2.6, 5.2, 1.5, 2.47, 1, 3, 3.14, 5, 2.2, 1.83, 5.17, 1, 4.3, 3.25, 2.5, 3, 2.5, 3.48, 4.08, 4, 1, 4, 3.5, 1.5, 1.8, 2.92, 1.68, 2.52, 4.2, 2, 2, 2.83, 1.5, 2, 3.25, 1.25, 2, 2, 2.75, 3.5, 5, 2.3, 1.5, 1.36, 1.63, 5.14, 3.75, 2.61, 2, 3, 1.61, 2, 4, 3.5, 3.5, 4.19, 5, 2, 2.01, 2, 2.5, 3.23, 2.23, 2.5, 6.5, 1.1, 3.09, 3.48, 3, 2.5, 2, 2.88, 4.67, 2, 3 ], "yaxis": "y" }, { "hovertemplate": "sex=Male
total_bill=%{x}
tip=%{y}
size=%{marker.color}", "legendgroup": "", "marker": { "color": [ 3, 3, 2, 4, 2, 4, 2, 2, 2, 2, 4, 2, 3, 3, 2, 4, 2, 4, 2, 2, 2, 2, 4, 2, 3, 3, 3, 3, 3, 2, 2, 2, 4, 2, 2, 4, 3, 2, 2, 2, 4, 2, 4, 2, 4, 2, 2, 2, 4, 3, 3, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 4, 2, 2, 2, 2, 3, 2, 2, 6, 5, 2, 2, 2, 2, 3, 4, 4, 6, 4, 4, 2, 2, 3, 2, 4, 3, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 3, 4, 2, 5, 5, 3, 2, 2, 2, 2, 2, 2, 2, 3, 4, 3, 4, 2, 3, 4, 4, 5, 2, 2, 2, 1, 2, 4, 2, 4, 3, 2, 2, 2, 2, 2, 2, 3, 2, 2 ], "colorscale": [ [ 0, "#440154" ], [ 0.1111111111111111, "#482878" ], [ 0.2222222222222222, "#3e4989" ], [ 0.3333333333333333, "#31688e" ], [ 0.4444444444444444, "#26828e" ], [ 0.5555555555555556, "#1f9e89" ], [ 0.6666666666666666, "#35b779" ], [ 0.7777777777777778, "#6ece58" ], [ 0.8888888888888888, "#b5de2b" ], [ 1, "#fde725" ] ], "showscale": false, "symbol": "circle" }, "mode": "markers", "name": " ", "showlegend": false, "type": "scatter", "uid": "07cdb28f-0d29-4442-8334-c36ac0f6813c", "x": [ 10.34, 21.01, 23.68, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 15.42, 18.43, 21.58, 16.29, 20.65, 17.92, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 9.55, 18.35, 17.78, 24.06, 16.31, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 9.94, 25.56, 19.49, 38.01, 11.24, 48.27, 20.29, 13.81, 11.02, 18.29, 17.59, 20.08, 20.23, 15.01, 12.02, 10.51, 17.92, 27.2, 22.76, 17.29, 19.44, 16.66, 32.68, 15.98, 13.03, 18.28, 24.71, 21.16, 28.97, 22.49, 40.17, 27.28, 12.03, 21.01, 12.46, 15.36, 20.49, 25.21, 18.24, 14, 38.07, 23.95, 29.93, 11.69, 14.26, 15.95, 8.52, 22.82, 19.08, 16, 34.3, 41.19, 9.78, 7.51, 14.07, 13.13, 17.26, 24.55, 19.77, 48.17, 16.49, 21.5, 12.66, 13.81, 24.52, 20.76, 31.71, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.69, 30.46, 23.1, 15.69, 28.44, 15.48, 16.58, 7.56, 10.34, 13.51, 18.71, 20.53, 26.59, 38.73, 24.27, 30.06, 25.89, 48.33, 28.15, 11.59, 7.74, 12.16, 8.58, 13.42, 20.45, 13.28, 24.01, 15.69, 11.61, 10.77, 15.53, 10.07, 12.6, 32.83, 29.03, 22.67, 17.82 ], "xaxis": "x2", "y": [ 1.66, 3.5, 3.31, 4.71, 2, 3.12, 1.96, 3.23, 1.71, 1.57, 3, 3.92, 3.71, 3.35, 4.08, 7.58, 3.18, 2.34, 2, 2, 4.3, 1.45, 2.5, 3.27, 3.6, 2, 2.31, 5, 2.24, 2.54, 3.06, 1.32, 5.6, 3, 5, 6, 2.05, 3, 2.5, 1.56, 4.34, 3.51, 3, 1.76, 6.73, 3.21, 2, 1.98, 3.76, 2.64, 3.15, 2.01, 2.09, 1.97, 1.25, 3.08, 4, 3, 2.71, 3, 3.4, 5, 2.03, 2, 4, 5.85, 3, 3, 3.5, 4.73, 4, 1.5, 3, 1.5, 1.64, 4.06, 4.29, 3.76, 3, 4, 2.55, 5.07, 2.31, 2.5, 2, 1.48, 2.18, 1.5, 2, 6.7, 5, 1.73, 2, 2.5, 2, 2.74, 2, 2, 5, 2, 3.5, 2.5, 2, 3.48, 2.24, 4.5, 10, 3.16, 5.15, 3.18, 4, 3.11, 2, 2, 3.55, 3.68, 5.65, 3.5, 6.5, 3, 5, 2, 4, 1.5, 2.56, 2.02, 4, 1.44, 2, 2, 4, 4, 3.41, 3, 2.03, 2, 5.16, 9, 3, 1.5, 1.44, 2.2, 1.92, 1.58, 3, 2.72, 2, 3, 3.39, 1.47, 3, 1.25, 1, 1.17, 5.92, 2, 1.75 ], "yaxis": "y" } ], "layout": { "annotations": [ { "showarrow": false, "text": "sex=Female", "textangle": 0, "x": 0.23684210526315788, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "sex=Male", "textangle": 0, "x": 0.763157894736842, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" } ], "grid": { "xaxes": [ "x", "x2" ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": "tip" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter(tips, x=\"total_bill\", y=\"tip\", color=\"size\", facet_col=\"sex\",\n", " color_continuous_scale=px.colors.sequential.Viridis, render_mode=\"webgl\")" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "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": "#636efa", "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": "8356c161-d0e4-4346-8026-e24abae4777d", "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": "continent=Americas", "marker": { "color": "#EF553B", "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": "7a3dec7a-0015-423d-8964-45b1b68d3b51", "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=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": "#00cc96", "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": "381c8bd9-4551-4f10-886f-7228ebd27e18", "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": "continent=Europe", "marker": { "color": "#ab63fa", "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": "2c2aace9-4719-4df9-a31b-0ab6daafa2c2", "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=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": "8d727c67-e7d7-4c2a-b41e-4ca79522db29", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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" }, "yaxis": { "title": { "text": "lifeExp" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter(gapminder.query(\"year==2007\"), x=\"gdpPercap\", y=\"lifeExp\", size=\"pop\", color=\"continent\", \n", " hover_name=\"country\", log_x=True, size_max=60)" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "hovertemplate": "%{hovertext}

year=1952
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "symbol": "circle" }, "mode": "markers", "name": "continent=Africa", "showlegend": true, "type": "scatter", "uid": "8f5694d1-46e9-47ef-99ff-4224ebab71a8", "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}

year=1952
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "symbol": "circle" }, "mode": "markers", "name": "continent=Americas", "showlegend": true, "type": "scatter", "uid": "8102b57e-16fe-4ba2-a5ae-bfff08d99fac", "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": "x2", "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}

year=1952
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "symbol": "circle" }, "mode": "markers", "name": "continent=Asia", "showlegend": true, "type": "scatter", "uid": "f7676d31-f182-4446-809e-a8f1b125cdbe", "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": "x3", "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}

year=1952
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "symbol": "circle" }, "mode": "markers", "name": "continent=Europe", "showlegend": true, "type": "scatter", "uid": "aea98fea-9733-407e-8504-3ffc4f6b4e78", "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": "x4", "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}

year=1952
continent=Oceania
continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", "hovertext": [ "Australia", "New Zealand" ], "ids": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "marker": { "color": "#19d3f3", "size": [ 8691212, 1994794 ], "sizemode": "area", "sizeref": 651201.5288888889, "symbol": "circle" }, "mode": "markers", "name": "continent=Oceania", "showlegend": true, "type": "scatter", "uid": "cb119af5-436b-49d8-8fa2-891f9deb4713", "x": [ 10039.595640000001, 10556.575659999999 ], "xaxis": "x5", "y": [ 69.12, 69.39 ], "yaxis": "y" } ], "frames": [ { "data": [ { "hovertemplate": "%{hovertext}

year=1952
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=1952
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=1952
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=1952
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

year=1952
continent=Oceania
continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", "hovertext": [ "Australia", "New Zealand" ], "ids": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "marker": { "color": "#19d3f3", "size": [ 8691212, 1994794 ], "sizemode": "area", "sizeref": 651201.5288888889, "symbol": "circle" }, "mode": "markers", "name": "continent=Oceania", "showlegend": true, "type": "scatter", "x": [ 10039.595640000001, 10556.575659999999 ], "xaxis": "x5", "y": [ 69.12, 69.39 ], "yaxis": "y" } ], "name": "1952" }, { "data": [ { "hovertemplate": "%{hovertext}

year=1957
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=1957
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=1957
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=1957
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

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

year=1962
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=1962
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=1962
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=1962
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

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

year=1967
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=1967
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=1967
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=1967
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

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

year=1972
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=1972
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=1972
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=1972
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

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

year=1977
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=1977
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=1977
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=1977
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

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

year=1982
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=1982
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=1982
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=1982
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

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

year=1987
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=1987
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=1987
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=1987
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

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

year=1992
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=1992
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=1992
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=1992
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

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

year=1997
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=1997
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=1997
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=1997
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

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

year=2002
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=2002
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=2002
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=2002
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

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

year=2007
continent=Africa
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" ], "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": "#636efa", "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": 651201.5288888889, "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" }, { "hovertemplate": "%{hovertext}

year=2007
continent=Americas
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" ], "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": "#EF553B", "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": 651201.5288888889, "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": "x2", "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}

year=2007
continent=Asia
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." ], "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": "#00cc96", "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": 651201.5288888889, "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": "x3", "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}

year=2007
continent=Europe
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" ], "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": "#ab63fa", "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": 651201.5288888889, "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": "x4", "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}

year=2007
continent=Oceania
continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", "hovertext": [ "Australia", "New Zealand" ], "ids": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "marker": { "color": "#19d3f3", "size": [ 20434176, 4115771 ], "sizemode": "area", "sizeref": 651201.5288888889, "symbol": "circle" }, "mode": "markers", "name": "continent=Oceania", "showlegend": true, "type": "scatter", "x": [ 34435.367439999995, 25185.00911 ], "xaxis": "x5", "y": [ 81.235, 80.204 ], "yaxis": "y" } ], "name": "2007" } ], "layout": { "annotations": [ { "showarrow": false, "text": "continent=Africa", "textangle": 0, "x": 0.09183673469387754, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "continent=Americas", "textangle": 0, "x": 0.2959183673469387, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "continent=Asia", "textangle": 0, "x": 0.5, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "continent=Europe", "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": { "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ 2, 5 ], "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": { "range": [ 25, 90 ], "title": { "text": "lifeExp" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter(gapminder, x=\"gdpPercap\", y=\"lifeExp\", animation_frame=\"year\", animation_group=\"country\",\n", " size=\"pop\", color=\"continent\", hover_name=\"country\", facet_col=\"continent\",\n", " log_x=True, size_max=45, range_x=[100,100000], range_y=[25,90])" ] }, { "cell_type": "code", "execution_count": 18, "metadata": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "hovertemplate": "%{hovertext}

country=Afghanistan
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan", "Afghanistan" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": true, "type": "scatter", "uid": "84f3f57b-601d-4df3-a06d-4274164f6bc1", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 28.801, 30.331999999999997, 31.997, 34.02, 36.088, 38.438, 39.854, 40.821999999999996, 41.674, 41.763000000000005, 42.129, 43.828 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Albania
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Albania", "Albania", "Albania", "Albania", "Albania", "Albania", "Albania", "Albania", "Albania", "Albania", "Albania", "Albania" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": true, "type": "scatter", "uid": "ee05ec85-8615-462f-9206-fcb9a782e224", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 55.23, 59.28, 64.82, 66.22, 67.69, 68.93, 70.42, 72, 71.581, 72.95, 75.65100000000001, 76.423 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Algeria
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Algeria", "Algeria", "Algeria", "Algeria", "Algeria", "Algeria", "Algeria", "Algeria", "Algeria", "Algeria", "Algeria", "Algeria" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": true, "type": "scatter", "uid": "b285e7bd-a769-4ab6-a20a-a496918ca629", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 43.077, 45.685, 48.303000000000004, 51.407, 54.518, 58.013999999999996, 61.368, 65.79899999999999, 67.744, 69.152, 70.994, 72.301 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Angola
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Angola", "Angola", "Angola", "Angola", "Angola", "Angola", "Angola", "Angola", "Angola", "Angola", "Angola", "Angola" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "04513504-ae46-43bf-bdef-2c83ab0d711c", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 30.015, 31.999000000000002, 34, 35.985, 37.928000000000004, 39.483000000000004, 39.942, 39.906, 40.647, 40.963, 41.003, 42.731 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Argentina
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Argentina", "Argentina", "Argentina", "Argentina", "Argentina", "Argentina", "Argentina", "Argentina", "Argentina", "Argentina", "Argentina", "Argentina" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": true, "type": "scatter", "uid": "0c031cc5-3e15-4012-864f-f9b26cf582ff", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 62.485, 64.399, 65.142, 65.634, 67.065, 68.48100000000001, 69.942, 70.774, 71.868, 73.275, 74.34, 75.32 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Australia
continent=Oceania
year=%{x}
lifeExp=%{y}", "hovertext": [ "Australia", "Australia", "Australia", "Australia", "Australia", "Australia", "Australia", "Australia", "Australia", "Australia", "Australia", "Australia" ], "legendgroup": "continent=Oceania", "line": { "color": "#19d3f3", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Oceania", "showlegend": true, "type": "scatter", "uid": "909190f6-126c-4666-a4e1-a6c04cf346a9", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 69.12, 70.33, 70.93, 71.1, 71.93, 73.49, 74.74, 76.32, 77.56, 78.83, 80.37, 81.235 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Austria
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Austria", "Austria", "Austria", "Austria", "Austria", "Austria", "Austria", "Austria", "Austria", "Austria", "Austria", "Austria" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "f230690b-77f8-43ab-9a7d-3b466598bb83", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 66.8, 67.48, 69.54, 70.14, 70.63, 72.17, 73.18, 74.94, 76.04, 77.51, 78.98, 79.829 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Bahrain
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Bahrain", "Bahrain", "Bahrain", "Bahrain", "Bahrain", "Bahrain", "Bahrain", "Bahrain", "Bahrain", "Bahrain", "Bahrain", "Bahrain" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "634d606c-1d27-4c1f-a357-3a328e315f53", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 50.93899999999999, 53.832, 56.923, 59.923, 63.3, 65.593, 69.05199999999999, 70.75, 72.601, 73.925, 74.795, 75.635 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Bangladesh
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Bangladesh", "Bangladesh", "Bangladesh", "Bangladesh", "Bangladesh", "Bangladesh", "Bangladesh", "Bangladesh", "Bangladesh", "Bangladesh", "Bangladesh", "Bangladesh" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "dcabbc43-a3a0-40ff-a99f-cdd9fc47b2b8", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 37.484, 39.348, 41.216, 43.453, 45.251999999999995, 46.923, 50.00899999999999, 52.818999999999996, 56.018, 59.412, 62.013000000000005, 64.062 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Belgium
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium", "Belgium" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "640e3776-cdc0-4ffc-8fb6-d344aab99643", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 68, 69.24, 70.25, 70.94, 71.44, 72.8, 73.93, 75.35, 76.46, 77.53, 78.32, 79.441 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Benin
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Benin", "Benin", "Benin", "Benin", "Benin", "Benin", "Benin", "Benin", "Benin", "Benin", "Benin", "Benin" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "017dd857-7277-45db-a4a8-2dea1148feb6", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 38.223, 40.358000000000004, 42.618, 44.885, 47.013999999999996, 49.19, 50.903999999999996, 52.336999999999996, 53.919, 54.777, 54.406000000000006, 56.728 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Bolivia
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Bolivia", "Bolivia", "Bolivia", "Bolivia", "Bolivia", "Bolivia", "Bolivia", "Bolivia", "Bolivia", "Bolivia", "Bolivia", "Bolivia" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "bf23a5f4-b3c5-4a87-98a3-ba3012c8972c", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 40.414, 41.89, 43.428000000000004, 45.032, 46.714, 50.023, 53.858999999999995, 57.251000000000005, 59.957, 62.05, 63.883, 65.554 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Bosnia and Herzegovina
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Bosnia and Herzegovina", "Bosnia and Herzegovina", "Bosnia and Herzegovina", "Bosnia and Herzegovina", "Bosnia and Herzegovina", "Bosnia and Herzegovina", "Bosnia and Herzegovina", "Bosnia and Herzegovina", "Bosnia and Herzegovina", "Bosnia and Herzegovina", "Bosnia and Herzegovina", "Bosnia and Herzegovina" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "1f054c60-2ae6-4b55-a6e2-c5c0c2392935", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 53.82, 58.45, 61.93, 64.79, 67.45, 69.86, 70.69, 71.14, 72.178, 73.244, 74.09, 74.852 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Botswana
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Botswana", "Botswana", "Botswana", "Botswana", "Botswana", "Botswana", "Botswana", "Botswana", "Botswana", "Botswana", "Botswana", "Botswana" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "f818254d-86a0-418f-b3bf-0eac028164b3", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 47.622, 49.618, 51.52, 53.298, 56.023999999999994, 59.318999999999996, 61.483999999999995, 63.622, 62.745, 52.556000000000004, 46.63399999999999, 50.728 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Brazil
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Brazil", "Brazil", "Brazil", "Brazil", "Brazil", "Brazil", "Brazil", "Brazil", "Brazil", "Brazil", "Brazil", "Brazil" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "b2706da4-a381-4253-b2d1-f5083ae86e8d", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 50.917, 53.285, 55.665, 57.632, 59.504, 61.489, 63.336000000000006, 65.205, 67.057, 69.388, 71.006, 72.39 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Bulgaria
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Bulgaria", "Bulgaria", "Bulgaria", "Bulgaria", "Bulgaria", "Bulgaria", "Bulgaria", "Bulgaria", "Bulgaria", "Bulgaria", "Bulgaria", "Bulgaria" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "a0abbedb-d226-4391-b854-7796cc7302b8", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 59.6, 66.61, 69.51, 70.42, 70.9, 70.81, 71.08, 71.34, 71.19, 70.32, 72.14, 73.005 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Burkina Faso
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Burkina Faso", "Burkina Faso", "Burkina Faso", "Burkina Faso", "Burkina Faso", "Burkina Faso", "Burkina Faso", "Burkina Faso", "Burkina Faso", "Burkina Faso", "Burkina Faso", "Burkina Faso" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "1ff810f3-b287-4185-8d82-376b77e95b25", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 31.975, 34.906, 37.814, 40.696999999999996, 43.591, 46.137, 48.122, 49.556999999999995, 50.26, 50.324, 50.65, 52.295 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Burundi
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Burundi", "Burundi", "Burundi", "Burundi", "Burundi", "Burundi", "Burundi", "Burundi", "Burundi", "Burundi", "Burundi", "Burundi" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "1e19eca2-9dbe-47a2-9797-ef8d68f0eee2", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 39.031, 40.533, 42.045, 43.548, 44.056999999999995, 45.91, 47.471000000000004, 48.211000000000006, 44.736000000000004, 45.326, 47.36, 49.58 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Cambodia
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Cambodia", "Cambodia", "Cambodia", "Cambodia", "Cambodia", "Cambodia", "Cambodia", "Cambodia", "Cambodia", "Cambodia", "Cambodia", "Cambodia" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "199890de-96c7-4720-a1f5-f5e1c09722de", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 39.417, 41.36600000000001, 43.415, 45.415, 40.317, 31.22, 50.957, 53.913999999999994, 55.803000000000004, 56.534, 56.751999999999995, 59.723 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Cameroon
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Cameroon", "Cameroon", "Cameroon", "Cameroon", "Cameroon", "Cameroon", "Cameroon", "Cameroon", "Cameroon", "Cameroon", "Cameroon", "Cameroon" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "5eca6d35-a0f8-4d65-b87a-c8ff5647f094", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 38.523, 40.428000000000004, 42.643, 44.799, 47.049, 49.355, 52.961000000000006, 54.985, 54.31399999999999, 52.199, 49.856, 50.43 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Canada
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Canada", "Canada", "Canada", "Canada", "Canada", "Canada", "Canada", "Canada", "Canada", "Canada", "Canada", "Canada" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "d725a0a5-447a-40a3-9898-9a8760230212", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 68.75, 69.96, 71.3, 72.13, 72.88, 74.21, 75.76, 76.86, 77.95, 78.61, 79.77, 80.653 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Central African Republic
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Central African Republic", "Central African Republic", "Central African Republic", "Central African Republic", "Central African Republic", "Central African Republic", "Central African Republic", "Central African Republic", "Central African Republic", "Central African Republic", "Central African Republic", "Central African Republic" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "a81216e6-5a5d-487a-8daf-361169c005ba", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 35.463, 37.464, 39.475, 41.478, 43.457, 46.775, 48.295, 50.485, 49.396, 46.066, 43.308, 44.74100000000001 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Chad
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Chad", "Chad", "Chad", "Chad", "Chad", "Chad", "Chad", "Chad", "Chad", "Chad", "Chad", "Chad" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "cd656381-8536-4185-ab52-deeded0d4ef5", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 38.092, 39.881, 41.716, 43.601000000000006, 45.568999999999996, 47.383, 49.516999999999996, 51.051, 51.724, 51.573, 50.525, 50.651 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Chile
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Chile", "Chile", "Chile", "Chile", "Chile", "Chile", "Chile", "Chile", "Chile", "Chile", "Chile", "Chile" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "0bfbcabf-b466-48e2-939a-1d3ef9933c18", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 54.745, 56.074, 57.924, 60.523, 63.441, 67.05199999999999, 70.565, 72.492, 74.126, 75.816, 77.86, 78.553 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=China
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "China", "China", "China", "China", "China", "China", "China", "China", "China", "China", "China", "China" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "083ad680-8424-4c3c-a98d-da1a10095993", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 44, 50.54896, 44.50136, 58.381119999999996, 63.118880000000004, 63.96736, 65.525, 67.274, 68.69, 70.426, 72.028, 72.961 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Colombia
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Colombia", "Colombia", "Colombia", "Colombia", "Colombia", "Colombia", "Colombia", "Colombia", "Colombia", "Colombia", "Colombia", "Colombia" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "aacfd871-bcba-4efb-8e5d-0983f5a731ec", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 50.643, 55.118, 57.863, 59.963, 61.623000000000005, 63.836999999999996, 66.653, 67.768, 68.421, 70.313, 71.682, 72.889 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Comoros
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Comoros", "Comoros", "Comoros", "Comoros", "Comoros", "Comoros", "Comoros", "Comoros", "Comoros", "Comoros", "Comoros", "Comoros" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "dc20c15b-9e00-4bae-ba77-03781913d9d0", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 40.715, 42.46, 44.467, 46.472, 48.943999999999996, 50.93899999999999, 52.933, 54.926, 57.93899999999999, 60.66, 62.974, 65.152 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Congo, Dem. Rep.
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Congo, Dem. Rep.", "Congo, Dem. Rep.", "Congo, Dem. Rep.", "Congo, Dem. Rep.", "Congo, Dem. Rep.", "Congo, Dem. Rep.", "Congo, Dem. Rep.", "Congo, Dem. Rep.", "Congo, Dem. Rep.", "Congo, Dem. Rep.", "Congo, Dem. Rep.", "Congo, Dem. Rep." ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "e6d7f6c3-89e0-455d-9f5a-f69669f94c87", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 39.143, 40.652, 42.122, 44.056000000000004, 45.989, 47.803999999999995, 47.784, 47.412, 45.548, 42.586999999999996, 44.966, 46.461999999999996 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Congo, Rep.
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Congo, Rep.", "Congo, Rep.", "Congo, Rep.", "Congo, Rep.", "Congo, Rep.", "Congo, Rep.", "Congo, Rep.", "Congo, Rep.", "Congo, Rep.", "Congo, Rep.", "Congo, Rep.", "Congo, Rep." ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "ef0d0697-e164-411a-a67b-f55ddd90a471", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 42.111000000000004, 45.053000000000004, 48.435, 52.04, 54.907, 55.625, 56.695, 57.47, 56.433, 52.961999999999996, 52.97, 55.321999999999996 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Costa Rica
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Costa Rica", "Costa Rica", "Costa Rica", "Costa Rica", "Costa Rica", "Costa Rica", "Costa Rica", "Costa Rica", "Costa Rica", "Costa Rica", "Costa Rica", "Costa Rica" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "90bb0f36-4eed-4d29-b3a3-224a4cc5987f", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 57.206, 60.026, 62.842, 65.42399999999999, 67.84899999999999, 70.75, 73.45, 74.752, 75.71300000000001, 77.26, 78.123, 78.782 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Cote d'Ivoire
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Cote d'Ivoire", "Cote d'Ivoire", "Cote d'Ivoire", "Cote d'Ivoire", "Cote d'Ivoire", "Cote d'Ivoire", "Cote d'Ivoire", "Cote d'Ivoire", "Cote d'Ivoire", "Cote d'Ivoire", "Cote d'Ivoire", "Cote d'Ivoire" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "c9958d30-2a90-4ff0-ab18-12eb457771a3", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 40.477, 42.468999999999994, 44.93, 47.35, 49.801, 52.373999999999995, 53.983000000000004, 54.655, 52.044, 47.99100000000001, 46.832, 48.328 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Croatia
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Croatia", "Croatia", "Croatia", "Croatia", "Croatia", "Croatia", "Croatia", "Croatia", "Croatia", "Croatia", "Croatia", "Croatia" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "b5247bb2-1f18-4af1-b325-a1605f4e9a2b", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 61.21, 64.77, 67.13, 68.5, 69.61, 70.64, 70.46, 71.52, 72.527, 73.68, 74.876, 75.748 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Cuba
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Cuba", "Cuba", "Cuba", "Cuba", "Cuba", "Cuba", "Cuba", "Cuba", "Cuba", "Cuba", "Cuba", "Cuba" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "37bbeb88-7d97-482a-9a87-e2d32f825141", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 59.42100000000001, 62.325, 65.24600000000001, 68.29, 70.723, 72.649, 73.717, 74.17399999999999, 74.414, 76.15100000000001, 77.158, 78.273 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Czech Republic
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Czech Republic", "Czech Republic", "Czech Republic", "Czech Republic", "Czech Republic", "Czech Republic", "Czech Republic", "Czech Republic", "Czech Republic", "Czech Republic", "Czech Republic", "Czech Republic" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "6a15e43e-a5f8-4300-8933-1e241953e57b", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 66.87, 69.03, 69.9, 70.38, 70.29, 70.71, 70.96, 71.58, 72.4, 74.01, 75.51, 76.486 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Denmark
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark", "Denmark" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "8a8a1098-74c9-4421-95b1-383ee7c554b9", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 70.78, 71.81, 72.35, 72.96, 73.47, 74.69, 74.63, 74.8, 75.33, 76.11, 77.18, 78.332 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Djibouti
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Djibouti", "Djibouti", "Djibouti", "Djibouti", "Djibouti", "Djibouti", "Djibouti", "Djibouti", "Djibouti", "Djibouti", "Djibouti", "Djibouti" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "275695bc-fd84-4aaf-934a-642a60bf0f6d", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 34.812, 37.328, 39.693000000000005, 42.074, 44.36600000000001, 46.519, 48.812, 50.04, 51.604, 53.157, 53.373000000000005, 54.791000000000004 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Dominican Republic
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Dominican Republic", "Dominican Republic", "Dominican Republic", "Dominican Republic", "Dominican Republic", "Dominican Republic", "Dominican Republic", "Dominican Republic", "Dominican Republic", "Dominican Republic", "Dominican Republic", "Dominican Republic" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "f3300e0a-fd88-48a4-b9aa-ece0cd03ca72", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 45.928000000000004, 49.828, 53.458999999999996, 56.751000000000005, 59.631, 61.788000000000004, 63.727, 66.046, 68.457, 69.957, 70.847, 72.235 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Ecuador
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Ecuador", "Ecuador", "Ecuador", "Ecuador", "Ecuador", "Ecuador", "Ecuador", "Ecuador", "Ecuador", "Ecuador", "Ecuador", "Ecuador" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "0f0a33e8-aca8-4256-a9f8-68d93194f23e", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 48.357, 51.356, 54.64, 56.678000000000004, 58.79600000000001, 61.31, 64.342, 67.23100000000001, 69.613, 72.312, 74.173, 74.994 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Egypt
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Egypt", "Egypt", "Egypt", "Egypt", "Egypt", "Egypt", "Egypt", "Egypt", "Egypt", "Egypt", "Egypt", "Egypt" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "1114d91a-1bce-4362-8197-19835e6aeee0", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 41.893, 44.443999999999996, 46.992, 49.293, 51.137, 53.318999999999996, 56.006, 59.797, 63.674, 67.217, 69.806, 71.33800000000001 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=El Salvador
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "El Salvador", "El Salvador", "El Salvador", "El Salvador", "El Salvador", "El Salvador", "El Salvador", "El Salvador", "El Salvador", "El Salvador", "El Salvador", "El Salvador" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "6fc47625-fd8f-45af-92e0-252c20fb9ca5", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 45.262, 48.57, 52.306999999999995, 55.855, 58.207, 56.696000000000005, 56.604, 63.153999999999996, 66.798, 69.535, 70.734, 71.878 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Equatorial Guinea
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Equatorial Guinea", "Equatorial Guinea", "Equatorial Guinea", "Equatorial Guinea", "Equatorial Guinea", "Equatorial Guinea", "Equatorial Guinea", "Equatorial Guinea", "Equatorial Guinea", "Equatorial Guinea", "Equatorial Guinea", "Equatorial Guinea" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "662412f4-732e-45cd-8ee1-c03ad31e9459", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 34.482, 35.983000000000004, 37.485, 38.986999999999995, 40.516, 42.023999999999994, 43.662, 45.663999999999994, 47.545, 48.245, 49.348, 51.57899999999999 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Eritrea
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Eritrea", "Eritrea", "Eritrea", "Eritrea", "Eritrea", "Eritrea", "Eritrea", "Eritrea", "Eritrea", "Eritrea", "Eritrea", "Eritrea" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "1b268231-60d8-403d-8eb7-c0d41cdbb194", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 35.928000000000004, 38.047, 40.158, 42.18899999999999, 44.141999999999996, 44.535, 43.89, 46.453, 49.99100000000001, 53.378, 55.24, 58.04 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Ethiopia
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Ethiopia", "Ethiopia", "Ethiopia", "Ethiopia", "Ethiopia", "Ethiopia", "Ethiopia", "Ethiopia", "Ethiopia", "Ethiopia", "Ethiopia", "Ethiopia" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "d09039cb-4633-4b04-9e9c-8c08bbbf4844", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 34.078, 36.667, 40.059, 42.115, 43.515, 44.51, 44.916000000000004, 46.684, 48.091, 49.402, 50.725, 52.946999999999996 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Finland
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland", "Finland" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "f3759e82-71ed-458e-9a9f-277f5e206dcc", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 66.55, 67.49, 68.75, 69.83, 70.87, 72.52, 74.55, 74.83, 75.7, 77.13, 78.37, 79.313 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=France
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "France", "France", "France", "France", "France", "France", "France", "France", "France", "France", "France", "France" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "c31cd051-5e99-49ab-ac26-c682d1f0e234", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 67.41, 68.93, 70.51, 71.55, 72.38, 73.83, 74.89, 76.34, 77.46, 78.64, 79.59, 80.657 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Gabon
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Gabon", "Gabon", "Gabon", "Gabon", "Gabon", "Gabon", "Gabon", "Gabon", "Gabon", "Gabon", "Gabon", "Gabon" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "bf389888-d2bd-40a2-8e71-587078bf1293", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 37.003, 38.999, 40.489000000000004, 44.598, 48.69, 52.79, 56.56399999999999, 60.19, 61.36600000000001, 60.461000000000006, 56.761, 56.735 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Gambia
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Gambia", "Gambia", "Gambia", "Gambia", "Gambia", "Gambia", "Gambia", "Gambia", "Gambia", "Gambia", "Gambia", "Gambia" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "2346efa8-be09-4a2c-b5b2-46fdf5649091", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 30, 32.065, 33.896, 35.857, 38.308, 41.842, 45.58, 49.265, 52.644, 55.861000000000004, 58.041000000000004, 59.448 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Germany
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany", "Germany" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "c32cbcdf-eda6-4b7a-9ef4-70056885be40", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 67.5, 69.1, 70.3, 70.8, 71, 72.5, 73.8, 74.847, 76.07, 77.34, 78.67, 79.406 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Ghana
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Ghana", "Ghana", "Ghana", "Ghana", "Ghana", "Ghana", "Ghana", "Ghana", "Ghana", "Ghana", "Ghana", "Ghana" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "dfa452a2-ef70-4f65-9f25-21f038cb0f1d", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 43.148999999999994, 44.778999999999996, 46.452, 48.071999999999996, 49.875, 51.756, 53.744, 55.729, 57.501000000000005, 58.556000000000004, 58.453, 60.022 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Greece
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Greece", "Greece", "Greece", "Greece", "Greece", "Greece", "Greece", "Greece", "Greece", "Greece", "Greece", "Greece" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "e9787f05-dcc7-4198-b0d1-ece4ab4f15a1", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 65.86, 67.86, 69.51, 71, 72.34, 73.68, 75.24, 76.67, 77.03, 77.869, 78.256, 79.483 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Guatemala
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Guatemala", "Guatemala", "Guatemala", "Guatemala", "Guatemala", "Guatemala", "Guatemala", "Guatemala", "Guatemala", "Guatemala", "Guatemala", "Guatemala" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "88151e1e-cdcd-48c4-a1fa-6ab26b2d43dc", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 42.023, 44.141999999999996, 46.95399999999999, 50.016000000000005, 53.738, 56.028999999999996, 58.137, 60.782, 63.373000000000005, 66.322, 68.97800000000001, 70.259 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Guinea
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Guinea", "Guinea", "Guinea", "Guinea", "Guinea", "Guinea", "Guinea", "Guinea", "Guinea", "Guinea", "Guinea", "Guinea" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "11f252b2-3b41-40fd-9294-6a8efef7a631", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 33.609, 34.558, 35.753, 37.196999999999996, 38.842, 40.762, 42.891000000000005, 45.552, 48.576, 51.455, 53.676, 56.007 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Guinea-Bissau
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Guinea-Bissau", "Guinea-Bissau", "Guinea-Bissau", "Guinea-Bissau", "Guinea-Bissau", "Guinea-Bissau", "Guinea-Bissau", "Guinea-Bissau", "Guinea-Bissau", "Guinea-Bissau", "Guinea-Bissau", "Guinea-Bissau" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "de6983c8-1237-4d69-8ec0-348a329eda3d", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 32.5, 33.489000000000004, 34.488, 35.492, 36.486, 37.465, 39.327, 41.245, 43.266000000000005, 44.873000000000005, 45.504, 46.388000000000005 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Haiti
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Haiti", "Haiti", "Haiti", "Haiti", "Haiti", "Haiti", "Haiti", "Haiti", "Haiti", "Haiti", "Haiti", "Haiti" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "6bc82129-f6d6-4882-a6b4-76d8383ad05f", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 37.579, 40.696, 43.59, 46.243, 48.042, 49.923, 51.461000000000006, 53.636, 55.089, 56.67100000000001, 58.137, 60.916000000000004 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Honduras
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Honduras", "Honduras", "Honduras", "Honduras", "Honduras", "Honduras", "Honduras", "Honduras", "Honduras", "Honduras", "Honduras", "Honduras" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "4c4e6bcd-feb3-4225-9c9e-c939ad6858b4", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 41.912, 44.665, 48.041000000000004, 50.924, 53.88399999999999, 57.402, 60.909, 64.492, 66.399, 67.65899999999999, 68.565, 70.19800000000001 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Hong Kong, China
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Hong Kong, China", "Hong Kong, China", "Hong Kong, China", "Hong Kong, China", "Hong Kong, China", "Hong Kong, China", "Hong Kong, China", "Hong Kong, China", "Hong Kong, China", "Hong Kong, China", "Hong Kong, China", "Hong Kong, China" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "d2964f1a-97d2-4c6c-86a1-090f2cd10bc4", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 60.96, 64.75, 67.65, 70, 72, 73.6, 75.45, 76.2, 77.601, 80, 81.495, 82.208 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Hungary
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Hungary", "Hungary", "Hungary", "Hungary", "Hungary", "Hungary", "Hungary", "Hungary", "Hungary", "Hungary", "Hungary", "Hungary" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "9298379b-64eb-4c49-9486-91514b3c7be8", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 64.03, 66.41, 67.96, 69.5, 69.76, 69.95, 69.39, 69.58, 69.17, 71.04, 72.59, 73.33800000000001 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Iceland
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Iceland", "Iceland", "Iceland", "Iceland", "Iceland", "Iceland", "Iceland", "Iceland", "Iceland", "Iceland", "Iceland", "Iceland" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "dee30519-8dca-41b4-a178-161985028b0e", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 72.49, 73.47, 73.68, 73.73, 74.46, 76.11, 76.99, 77.23, 78.77, 78.95, 80.5, 81.757 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=India
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "India", "India", "India", "India", "India", "India", "India", "India", "India", "India", "India", "India" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "55a2176f-5c71-43ef-8a4d-a7baf0873796", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 37.373000000000005, 40.249, 43.605, 47.193000000000005, 50.651, 54.208, 56.596000000000004, 58.553000000000004, 60.223, 61.765, 62.879, 64.69800000000001 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Indonesia
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Indonesia", "Indonesia", "Indonesia", "Indonesia", "Indonesia", "Indonesia", "Indonesia", "Indonesia", "Indonesia", "Indonesia", "Indonesia", "Indonesia" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "71470a22-ff8e-4bcf-a6d0-cb17f1c7e1ac", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 37.468, 39.918, 42.518, 45.964, 49.203, 52.702, 56.159, 60.137, 62.681000000000004, 66.041, 68.58800000000001, 70.65 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Iran
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Iran", "Iran", "Iran", "Iran", "Iran", "Iran", "Iran", "Iran", "Iran", "Iran", "Iran", "Iran" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "a6fac22c-ffbd-48ff-9c2e-97c2a843ac3f", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 44.869, 47.181000000000004, 49.325, 52.468999999999994, 55.233999999999995, 57.702, 59.62, 63.04, 65.742, 68.042, 69.45100000000001, 70.964 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Iraq
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Iraq", "Iraq", "Iraq", "Iraq", "Iraq", "Iraq", "Iraq", "Iraq", "Iraq", "Iraq", "Iraq", "Iraq" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "a0bc4b31-6400-4798-ac38-d9fbfafe88fc", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 45.32, 48.437, 51.457, 54.458999999999996, 56.95, 60.413000000000004, 62.038000000000004, 65.044, 59.461000000000006, 58.81100000000001, 57.04600000000001, 59.545 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Ireland
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Ireland", "Ireland", "Ireland", "Ireland", "Ireland", "Ireland", "Ireland", "Ireland", "Ireland", "Ireland", "Ireland", "Ireland" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "3a4f9ce7-2435-4ec0-9d00-72b84b711022", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 66.91, 68.9, 70.29, 71.08, 71.28, 72.03, 73.1, 74.36, 75.467, 76.122, 77.783, 78.885 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Israel
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Israel", "Israel", "Israel", "Israel", "Israel", "Israel", "Israel", "Israel", "Israel", "Israel", "Israel", "Israel" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "04007982-8165-4bf6-a461-3cb2bd256e45", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 65.39, 67.84, 69.39, 70.75, 71.63, 73.06, 74.45, 75.6, 76.93, 78.26899999999999, 79.696, 80.745 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Italy
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Italy", "Italy", "Italy", "Italy", "Italy", "Italy", "Italy", "Italy", "Italy", "Italy", "Italy", "Italy" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "a69be098-5005-451f-8034-66cfd9955e98", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 65.94, 67.81, 69.24, 71.06, 72.19, 73.48, 74.98, 76.42, 77.44, 78.82, 80.24, 80.546 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Jamaica
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Jamaica", "Jamaica", "Jamaica", "Jamaica", "Jamaica", "Jamaica", "Jamaica", "Jamaica", "Jamaica", "Jamaica", "Jamaica", "Jamaica" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "e6a6fcc8-8f86-4ade-956e-1445bf777a68", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 58.53, 62.61, 65.61, 67.51, 69, 70.11, 71.21, 71.77, 71.766, 72.262, 72.047, 72.567 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Japan
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "b975faa4-97af-463d-bc41-672b05da0e2d", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 63.03, 65.5, 68.73, 71.43, 73.42, 75.38, 77.11, 78.67, 79.36, 80.69, 82, 82.603 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Jordan
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Jordan", "Jordan", "Jordan", "Jordan", "Jordan", "Jordan", "Jordan", "Jordan", "Jordan", "Jordan", "Jordan", "Jordan" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "a8367394-f764-4088-bf5a-13bc03cfca75", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 43.158, 45.669, 48.126000000000005, 51.629, 56.528, 61.13399999999999, 63.739, 65.869, 68.015, 69.77199999999999, 71.263, 72.535 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Kenya
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "49dcccef-d60f-40d3-812a-a372669bb03e", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 42.27, 44.68600000000001, 47.949, 50.653999999999996, 53.559, 56.155, 58.766000000000005, 59.339, 59.285, 54.407, 50.992, 54.11 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Korea, Dem. Rep.
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Korea, Dem. Rep.", "Korea, Dem. Rep.", "Korea, Dem. Rep.", "Korea, Dem. Rep.", "Korea, Dem. Rep.", "Korea, Dem. Rep.", "Korea, Dem. Rep.", "Korea, Dem. Rep.", "Korea, Dem. Rep.", "Korea, Dem. Rep.", "Korea, Dem. Rep.", "Korea, Dem. Rep." ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "673d92e3-d064-4bf1-8459-f1eba9c8fd36", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 50.056000000000004, 54.081, 56.656000000000006, 59.942, 63.983000000000004, 67.15899999999999, 69.1, 70.64699999999999, 69.97800000000001, 67.727, 66.66199999999999, 67.297 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Korea, Rep.
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Korea, Rep.", "Korea, Rep.", "Korea, Rep.", "Korea, Rep.", "Korea, Rep.", "Korea, Rep.", "Korea, Rep.", "Korea, Rep.", "Korea, Rep.", "Korea, Rep.", "Korea, Rep.", "Korea, Rep." ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "78a94bb5-4f39-4d51-8234-79d8cd574177", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 47.453, 52.681000000000004, 55.292, 57.716, 62.611999999999995, 64.766, 67.123, 69.81, 72.244, 74.64699999999999, 77.045, 78.623 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Kuwait
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Kuwait", "Kuwait", "Kuwait", "Kuwait", "Kuwait", "Kuwait", "Kuwait", "Kuwait", "Kuwait", "Kuwait", "Kuwait", "Kuwait" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "09d21f81-b6b1-41a1-b1e8-ec6fa567f903", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 55.565, 58.033, 60.47, 64.624, 67.712, 69.343, 71.309, 74.17399999999999, 75.19, 76.156, 76.904, 77.58800000000001 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Lebanon
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Lebanon", "Lebanon", "Lebanon", "Lebanon", "Lebanon", "Lebanon", "Lebanon", "Lebanon", "Lebanon", "Lebanon", "Lebanon", "Lebanon" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "115805fa-f85d-4750-9d72-b22b9a0fed9c", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 55.928000000000004, 59.489, 62.093999999999994, 63.87, 65.421, 66.09899999999999, 66.983, 67.926, 69.292, 70.265, 71.028, 71.993 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Lesotho
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Lesotho", "Lesotho", "Lesotho", "Lesotho", "Lesotho", "Lesotho", "Lesotho", "Lesotho", "Lesotho", "Lesotho", "Lesotho", "Lesotho" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "7dad3ce1-4578-44dc-9e04-6f1774f439b2", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 42.138000000000005, 45.047, 47.747, 48.492, 49.766999999999996, 52.208, 55.078, 57.18, 59.685, 55.558, 44.593, 42.592 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Liberia
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Liberia", "Liberia", "Liberia", "Liberia", "Liberia", "Liberia", "Liberia", "Liberia", "Liberia", "Liberia", "Liberia", "Liberia" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "4932c35e-a569-4b25-928c-1f0577485116", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 38.48, 39.486, 40.501999999999995, 41.536, 42.614, 43.763999999999996, 44.852, 46.027, 40.802, 42.221000000000004, 43.753, 45.678000000000004 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Libya
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Libya", "Libya", "Libya", "Libya", "Libya", "Libya", "Libya", "Libya", "Libya", "Libya", "Libya", "Libya" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "9a6320d6-6f0a-4b12-9fed-ca613aa6d80c", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 42.723, 45.288999999999994, 47.808, 50.227, 52.773, 57.442, 62.155, 66.234, 68.755, 71.555, 72.737, 73.952 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Madagascar
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Madagascar", "Madagascar", "Madagascar", "Madagascar", "Madagascar", "Madagascar", "Madagascar", "Madagascar", "Madagascar", "Madagascar", "Madagascar", "Madagascar" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "63fc3598-d91a-4cc1-be0d-73d1232fda48", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 36.681, 38.865, 40.848, 42.881, 44.851000000000006, 46.881, 48.968999999999994, 49.35, 52.214, 54.978, 57.286, 59.443000000000005 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Malawi
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Malawi", "Malawi", "Malawi", "Malawi", "Malawi", "Malawi", "Malawi", "Malawi", "Malawi", "Malawi", "Malawi", "Malawi" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "7f46808e-3c24-4489-a9df-ae0204b331fb", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 36.256, 37.207, 38.41, 39.486999999999995, 41.766000000000005, 43.766999999999996, 45.641999999999996, 47.457, 49.42, 47.495, 45.00899999999999, 48.303000000000004 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Malaysia
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Malaysia", "Malaysia", "Malaysia", "Malaysia", "Malaysia", "Malaysia", "Malaysia", "Malaysia", "Malaysia", "Malaysia", "Malaysia", "Malaysia" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "6ad6099b-7de4-41a5-9f32-cc50869bc208", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 48.463, 52.102, 55.736999999999995, 59.371, 63.01, 65.256, 68, 69.5, 70.693, 71.938, 73.044, 74.241 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Mali
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Mali", "Mali", "Mali", "Mali", "Mali", "Mali", "Mali", "Mali", "Mali", "Mali", "Mali", "Mali" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "43e24e56-5715-42ed-88c7-dc3c7bc7d8af", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 33.685, 35.306999999999995, 36.936, 38.486999999999995, 39.977, 41.714, 43.916000000000004, 46.364, 48.388000000000005, 49.903, 51.818000000000005, 54.467 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Mauritania
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Mauritania", "Mauritania", "Mauritania", "Mauritania", "Mauritania", "Mauritania", "Mauritania", "Mauritania", "Mauritania", "Mauritania", "Mauritania", "Mauritania" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "db8e97cc-09bc-4875-b972-6f41247e1283", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 40.543, 42.338, 44.248000000000005, 46.288999999999994, 48.437, 50.852, 53.599, 56.145, 58.333, 60.43, 62.247, 64.164 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Mauritius
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Mauritius", "Mauritius", "Mauritius", "Mauritius", "Mauritius", "Mauritius", "Mauritius", "Mauritius", "Mauritius", "Mauritius", "Mauritius", "Mauritius" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "54a0104e-cf5c-4f57-8466-413a018f2f5b", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 50.986000000000004, 58.089, 60.246, 61.556999999999995, 62.943999999999996, 64.93, 66.711, 68.74, 69.745, 70.736, 71.954, 72.801 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Mexico
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "eb9c20aa-0b38-4383-a0cf-7e42190f3ab5", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 50.788999999999994, 55.19, 58.299, 60.11, 62.361000000000004, 65.032, 67.405, 69.498, 71.455, 73.67, 74.902, 76.195 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Mongolia
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Mongolia", "Mongolia", "Mongolia", "Mongolia", "Mongolia", "Mongolia", "Mongolia", "Mongolia", "Mongolia", "Mongolia", "Mongolia", "Mongolia" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "ee4c6d17-f1ae-4026-be67-de1a6a88bc49", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 42.244, 45.248000000000005, 48.251000000000005, 51.253, 53.754, 55.49100000000001, 57.489, 60.222, 61.271, 63.625, 65.033, 66.803 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Montenegro
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Montenegro", "Montenegro", "Montenegro", "Montenegro", "Montenegro", "Montenegro", "Montenegro", "Montenegro", "Montenegro", "Montenegro", "Montenegro", "Montenegro" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "81a53bb7-8a49-44ab-85a6-aeee61278542", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 59.163999999999994, 61.448, 63.728, 67.178, 70.63600000000001, 73.066, 74.101, 74.865, 75.435, 75.445, 73.98100000000001, 74.543 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Morocco
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Morocco", "Morocco", "Morocco", "Morocco", "Morocco", "Morocco", "Morocco", "Morocco", "Morocco", "Morocco", "Morocco", "Morocco" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "c3616c91-9ca6-4469-9760-80a2c0ba75c5", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 42.873000000000005, 45.423, 47.924, 50.335, 52.861999999999995, 55.73, 59.65, 62.677, 65.393, 67.66, 69.615, 71.164 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Mozambique
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Mozambique", "Mozambique", "Mozambique", "Mozambique", "Mozambique", "Mozambique", "Mozambique", "Mozambique", "Mozambique", "Mozambique", "Mozambique", "Mozambique" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "5f19fc51-02ae-4d2a-a338-0dca16ff683e", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 31.285999999999998, 33.779, 36.161, 38.113, 40.328, 42.495, 42.795, 42.861000000000004, 44.284, 46.343999999999994, 44.026, 42.082 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Myanmar
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Myanmar", "Myanmar", "Myanmar", "Myanmar", "Myanmar", "Myanmar", "Myanmar", "Myanmar", "Myanmar", "Myanmar", "Myanmar", "Myanmar" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "60c10554-2c0d-4dc6-95d4-8f431a1cec1b", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 36.319, 41.905, 45.108000000000004, 49.379, 53.07, 56.059, 58.056000000000004, 58.339, 59.32, 60.328, 59.908, 62.068999999999996 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Namibia
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Namibia", "Namibia", "Namibia", "Namibia", "Namibia", "Namibia", "Namibia", "Namibia", "Namibia", "Namibia", "Namibia", "Namibia" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "b95291bc-c467-430d-994d-275890c83621", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 41.725, 45.226000000000006, 48.386, 51.159, 53.867, 56.437, 58.968, 60.835, 61.998999999999995, 58.909, 51.479, 52.906000000000006 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Nepal
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Nepal", "Nepal", "Nepal", "Nepal", "Nepal", "Nepal", "Nepal", "Nepal", "Nepal", "Nepal", "Nepal", "Nepal" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "26f28b65-47ae-4153-b400-0e254a19d5f6", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 36.157, 37.686, 39.393, 41.472, 43.971000000000004, 46.748000000000005, 49.593999999999994, 52.537, 55.727, 59.426, 61.34, 63.785 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Netherlands
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Netherlands", "Netherlands", "Netherlands", "Netherlands", "Netherlands", "Netherlands", "Netherlands", "Netherlands", "Netherlands", "Netherlands", "Netherlands", "Netherlands" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "ab90fe4d-1e68-4094-82b1-53170bcd8b42", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 72.13, 72.99, 73.23, 73.82, 73.75, 75.24, 76.05, 76.83, 77.42, 78.03, 78.53, 79.762 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=New Zealand
continent=Oceania
year=%{x}
lifeExp=%{y}", "hovertext": [ "New Zealand", "New Zealand", "New Zealand", "New Zealand", "New Zealand", "New Zealand", "New Zealand", "New Zealand", "New Zealand", "New Zealand", "New Zealand", "New Zealand" ], "legendgroup": "continent=Oceania", "line": { "color": "#19d3f3", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Oceania", "showlegend": false, "type": "scatter", "uid": "b5fa54e7-afe9-4410-a16f-89e8f99e43f0", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 69.39, 70.26, 71.24, 71.52, 71.89, 72.22, 73.84, 74.32, 76.33, 77.55, 79.11, 80.204 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Nicaragua
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Nicaragua", "Nicaragua", "Nicaragua", "Nicaragua", "Nicaragua", "Nicaragua", "Nicaragua", "Nicaragua", "Nicaragua", "Nicaragua", "Nicaragua", "Nicaragua" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "5666c0bd-09de-4164-9a45-b91a0f402681", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 42.31399999999999, 45.431999999999995, 48.632, 51.88399999999999, 55.151, 57.47, 59.298, 62.008, 65.843, 68.426, 70.836, 72.899 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Niger
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Niger", "Niger", "Niger", "Niger", "Niger", "Niger", "Niger", "Niger", "Niger", "Niger", "Niger", "Niger" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "beaeb438-ebb0-4337-88f9-9c4716a57630", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 37.444, 38.598, 39.486999999999995, 40.118, 40.546, 41.291000000000004, 42.598, 44.555, 47.391000000000005, 51.313, 54.496, 56.867 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Nigeria
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Nigeria", "Nigeria", "Nigeria", "Nigeria", "Nigeria", "Nigeria", "Nigeria", "Nigeria", "Nigeria", "Nigeria", "Nigeria", "Nigeria" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "258284f0-0e08-42e2-ba67-29bcb2ef3af6", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 36.324, 37.802, 39.36, 41.04, 42.821000000000005, 44.513999999999996, 45.826, 46.886, 47.472, 47.464, 46.608000000000004, 46.858999999999995 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Norway
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "d69059d6-be0c-4c2c-9aa8-2ff43336dc4b", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 72.67, 73.44, 73.47, 74.08, 74.34, 75.37, 75.97, 75.89, 77.32, 78.32, 79.05, 80.196 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Oman
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Oman", "Oman", "Oman", "Oman", "Oman", "Oman", "Oman", "Oman", "Oman", "Oman", "Oman", "Oman" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "a039b420-c46d-424c-ab20-3bf19c8d435f", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 37.578, 40.08, 43.165, 46.988, 52.143, 57.367, 62.728, 67.734, 71.197, 72.499, 74.193, 75.64 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Pakistan
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Pakistan", "Pakistan", "Pakistan", "Pakistan", "Pakistan", "Pakistan", "Pakistan", "Pakistan", "Pakistan", "Pakistan", "Pakistan", "Pakistan" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "0434ea32-c25f-498c-94bc-9fc7e28764d6", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 43.43600000000001, 45.556999999999995, 47.67, 49.8, 51.928999999999995, 54.043, 56.158, 58.245, 60.838, 61.818000000000005, 63.61, 65.483 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Panama
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Panama", "Panama", "Panama", "Panama", "Panama", "Panama", "Panama", "Panama", "Panama", "Panama", "Panama", "Panama" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "18b260f6-8a35-4aa3-b574-2ca37f7f1738", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 55.191, 59.201, 61.817, 64.071, 66.21600000000001, 68.681, 70.472, 71.523, 72.462, 73.738, 74.712, 75.53699999999999 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Paraguay
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Paraguay", "Paraguay", "Paraguay", "Paraguay", "Paraguay", "Paraguay", "Paraguay", "Paraguay", "Paraguay", "Paraguay", "Paraguay", "Paraguay" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "cafc30dd-61b0-406e-bfea-ac3121e10cfc", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 62.648999999999994, 63.196000000000005, 64.361, 64.95100000000001, 65.815, 66.35300000000001, 66.874, 67.378, 68.225, 69.4, 70.755, 71.752 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Peru
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Peru", "Peru", "Peru", "Peru", "Peru", "Peru", "Peru", "Peru", "Peru", "Peru", "Peru", "Peru" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "85e97948-8278-4d76-b8f6-7b547d69c9e5", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 43.902, 46.263000000000005, 49.096000000000004, 51.445, 55.448, 58.446999999999996, 61.406000000000006, 64.134, 66.458, 68.38600000000001, 69.906, 71.421 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Philippines
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Philippines", "Philippines", "Philippines", "Philippines", "Philippines", "Philippines", "Philippines", "Philippines", "Philippines", "Philippines", "Philippines", "Philippines" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "7ac0a17b-df9e-42ba-b64e-82520d000708", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 47.751999999999995, 51.333999999999996, 54.757, 56.393, 58.065, 60.06, 62.082, 64.15100000000001, 66.458, 68.564, 70.303, 71.688 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Poland
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Poland", "Poland", "Poland", "Poland", "Poland", "Poland", "Poland", "Poland", "Poland", "Poland", "Poland", "Poland" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "e0296d39-ff8a-4386-8c55-1c3f76066378", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 61.31, 65.77, 67.64, 69.61, 70.85, 70.67, 71.32, 70.98, 70.99, 72.75, 74.67, 75.563 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Portugal
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal", "Portugal" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "15db5737-2d7c-4051-b01c-8a4961f32c01", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 59.82, 61.51, 64.39, 66.6, 69.26, 70.41, 72.77, 74.06, 74.86, 75.97, 77.29, 78.098 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Puerto Rico
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Puerto Rico", "Puerto Rico", "Puerto Rico", "Puerto Rico", "Puerto Rico", "Puerto Rico", "Puerto Rico", "Puerto Rico", "Puerto Rico", "Puerto Rico", "Puerto Rico", "Puerto Rico" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "a59d980d-ef46-4c2d-b5a5-e9ee39442b65", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 64.28, 68.54, 69.62, 71.1, 72.16, 73.44, 73.75, 74.63, 73.911, 74.917, 77.778, 78.74600000000001 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Reunion
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Reunion", "Reunion", "Reunion", "Reunion", "Reunion", "Reunion", "Reunion", "Reunion", "Reunion", "Reunion", "Reunion", "Reunion" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "75a20cd8-1631-40bf-bfd7-7c0ccff63bea", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 52.724, 55.09, 57.666000000000004, 60.542, 64.274, 67.064, 69.885, 71.913, 73.615, 74.77199999999999, 75.744, 76.442 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Romania
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Romania", "Romania", "Romania", "Romania", "Romania", "Romania", "Romania", "Romania", "Romania", "Romania", "Romania", "Romania" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "c71388e7-bc46-4f16-b577-c76aa31a54b2", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 61.05, 64.1, 66.8, 66.8, 69.21, 69.46, 69.66, 69.53, 69.36, 69.72, 71.322, 72.476 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Rwanda
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Rwanda", "Rwanda", "Rwanda", "Rwanda", "Rwanda", "Rwanda", "Rwanda", "Rwanda", "Rwanda", "Rwanda", "Rwanda", "Rwanda" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "c549d066-12ec-4be2-8471-9ca0c82df584", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 40, 41.5, 43, 44.1, 44.6, 45, 46.218, 44.02, 23.599, 36.086999999999996, 43.413000000000004, 46.242 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Sao Tome and Principe
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Sao Tome and Principe", "Sao Tome and Principe", "Sao Tome and Principe", "Sao Tome and Principe", "Sao Tome and Principe", "Sao Tome and Principe", "Sao Tome and Principe", "Sao Tome and Principe", "Sao Tome and Principe", "Sao Tome and Principe", "Sao Tome and Principe", "Sao Tome and Principe" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "2e5c15e8-bc8c-4c43-aa26-13a1c59fe288", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 46.471000000000004, 48.945, 51.893, 54.425, 56.48, 58.55, 60.351000000000006, 61.728, 62.742, 63.306000000000004, 64.337, 65.528 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Saudi Arabia
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Saudi Arabia", "Saudi Arabia", "Saudi Arabia", "Saudi Arabia", "Saudi Arabia", "Saudi Arabia", "Saudi Arabia", "Saudi Arabia", "Saudi Arabia", "Saudi Arabia", "Saudi Arabia", "Saudi Arabia" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "f541e91c-d7fc-4508-813f-3ffe33a936e3", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 39.875, 42.868, 45.913999999999994, 49.901, 53.886, 58.69, 63.012, 66.295, 68.768, 70.533, 71.626, 72.777 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Senegal
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Senegal", "Senegal", "Senegal", "Senegal", "Senegal", "Senegal", "Senegal", "Senegal", "Senegal", "Senegal", "Senegal", "Senegal" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "add760ee-9d95-423e-82c0-9a2b0e186f41", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 37.278, 39.329, 41.45399999999999, 43.563, 45.815, 48.879, 52.379, 55.769, 58.196000000000005, 60.187, 61.6, 63.062 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Serbia
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Serbia", "Serbia", "Serbia", "Serbia", "Serbia", "Serbia", "Serbia", "Serbia", "Serbia", "Serbia", "Serbia", "Serbia" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "d10e08a0-7acd-406c-b5a5-943cc7a3d8eb", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 57.996, 61.685, 64.531, 66.914, 68.7, 70.3, 70.16199999999999, 71.218, 71.65899999999999, 72.232, 73.21300000000001, 74.002 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Sierra Leone
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Sierra Leone", "Sierra Leone", "Sierra Leone", "Sierra Leone", "Sierra Leone", "Sierra Leone", "Sierra Leone", "Sierra Leone", "Sierra Leone", "Sierra Leone", "Sierra Leone", "Sierra Leone" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "b78d3970-ba12-4bb1-ba54-a95f4363791f", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 30.331, 31.57, 32.766999999999996, 34.113, 35.4, 36.788000000000004, 38.445, 40.006, 38.333, 39.897, 41.012, 42.568000000000005 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Singapore
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "18d940b9-16fe-4884-b48c-3df6e4d63afa", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 60.396, 63.178999999999995, 65.798, 67.946, 69.521, 70.795, 71.76, 73.56, 75.788, 77.158, 78.77, 79.972 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Slovak Republic
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Slovak Republic", "Slovak Republic", "Slovak Republic", "Slovak Republic", "Slovak Republic", "Slovak Republic", "Slovak Republic", "Slovak Republic", "Slovak Republic", "Slovak Republic", "Slovak Republic", "Slovak Republic" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "7d61a9e6-d7a2-4ea8-a159-073c9875eb9c", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 64.36, 67.45, 70.33, 70.98, 70.35, 70.45, 70.8, 71.08, 71.38, 72.71, 73.8, 74.663 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Slovenia
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Slovenia", "Slovenia", "Slovenia", "Slovenia", "Slovenia", "Slovenia", "Slovenia", "Slovenia", "Slovenia", "Slovenia", "Slovenia", "Slovenia" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "1379edba-2578-47f3-b9a4-3deca951a5fb", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 65.57, 67.85, 69.15, 69.18, 69.82, 70.97, 71.063, 72.25, 73.64, 75.13, 76.66, 77.926 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Somalia
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Somalia", "Somalia", "Somalia", "Somalia", "Somalia", "Somalia", "Somalia", "Somalia", "Somalia", "Somalia", "Somalia", "Somalia" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "ba1d3ca2-0914-479b-b489-36abd8ef917c", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 32.978, 34.977, 36.981, 38.977, 40.973, 41.974, 42.955, 44.501000000000005, 39.658, 43.795, 45.93600000000001, 48.159 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=South Africa
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "South Africa", "South Africa", "South Africa", "South Africa", "South Africa", "South Africa", "South Africa", "South Africa", "South Africa", "South Africa", "South Africa", "South Africa" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "c35e6bc6-4703-419c-a5d7-22bcd6cd1d07", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 45.00899999999999, 47.985, 49.951, 51.927, 53.696000000000005, 55.527, 58.161, 60.833999999999996, 61.888000000000005, 60.236000000000004, 53.365, 49.339 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Spain
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Spain", "Spain", "Spain", "Spain", "Spain", "Spain", "Spain", "Spain", "Spain", "Spain", "Spain", "Spain" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "5f887968-4260-41bd-993f-23f2efe41fb8", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 64.94, 66.66, 69.69, 71.44, 73.06, 74.39, 76.3, 76.9, 77.57, 78.77, 79.78, 80.941 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Sri Lanka
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Sri Lanka", "Sri Lanka", "Sri Lanka", "Sri Lanka", "Sri Lanka", "Sri Lanka", "Sri Lanka", "Sri Lanka", "Sri Lanka", "Sri Lanka", "Sri Lanka", "Sri Lanka" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "89f5711b-0c7d-400d-bc64-6baa6d641efe", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 57.593, 61.456, 62.192, 64.266, 65.042, 65.949, 68.757, 69.01100000000001, 70.37899999999999, 70.457, 70.815, 72.396 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Sudan
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Sudan", "Sudan", "Sudan", "Sudan", "Sudan", "Sudan", "Sudan", "Sudan", "Sudan", "Sudan", "Sudan", "Sudan" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "5308a6a6-2601-42cf-80ec-0f52c35db22b", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 38.635, 39.624, 40.87, 42.858000000000004, 45.083, 47.8, 50.338, 51.744, 53.556000000000004, 55.373000000000005, 56.369, 58.556000000000004 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Swaziland
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Swaziland", "Swaziland", "Swaziland", "Swaziland", "Swaziland", "Swaziland", "Swaziland", "Swaziland", "Swaziland", "Swaziland", "Swaziland", "Swaziland" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "57de7f97-258b-4163-aded-707e232fc0b7", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 41.407, 43.424, 44.992, 46.633, 49.552, 52.537, 55.56100000000001, 57.678000000000004, 58.474, 54.288999999999994, 43.869, 39.613 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Sweden
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Sweden", "Sweden", "Sweden", "Sweden", "Sweden", "Sweden", "Sweden", "Sweden", "Sweden", "Sweden", "Sweden", "Sweden" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "fca14a5b-f659-4e63-8bf6-9067ff6e5da9", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 71.86, 72.49, 73.37, 74.16, 74.72, 75.44, 76.42, 77.19, 78.16, 79.39, 80.04, 80.884 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Switzerland
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Switzerland", "Switzerland", "Switzerland", "Switzerland", "Switzerland", "Switzerland", "Switzerland", "Switzerland", "Switzerland", "Switzerland", "Switzerland", "Switzerland" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "289b1b5f-1f99-4f4c-8f4e-699a21d8f8b3", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 69.62, 70.56, 71.32, 72.77, 73.78, 75.39, 76.21, 77.41, 78.03, 79.37, 80.62, 81.70100000000001 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Syria
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Syria", "Syria", "Syria", "Syria", "Syria", "Syria", "Syria", "Syria", "Syria", "Syria", "Syria", "Syria" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "6a4b66a6-c8bb-467c-9899-485607e01052", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 45.883, 48.284, 50.305, 53.655, 57.29600000000001, 61.195, 64.59, 66.97399999999999, 69.249, 71.527, 73.053, 74.143 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Taiwan
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Taiwan", "Taiwan", "Taiwan", "Taiwan", "Taiwan", "Taiwan", "Taiwan", "Taiwan", "Taiwan", "Taiwan", "Taiwan", "Taiwan" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "e4caffc7-9ab3-4207-8803-64439a7c5c28", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 58.5, 62.4, 65.2, 67.5, 69.39, 70.59, 72.16, 73.4, 74.26, 75.25, 76.99, 78.4 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Tanzania
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Tanzania", "Tanzania", "Tanzania", "Tanzania", "Tanzania", "Tanzania", "Tanzania", "Tanzania", "Tanzania", "Tanzania", "Tanzania", "Tanzania" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "2d8de8be-9062-460d-8f2c-03f496b8d0a7", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 41.215, 42.974, 44.246, 45.757, 47.62, 49.919, 50.608000000000004, 51.535, 50.44, 48.466, 49.651, 52.516999999999996 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Thailand
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Thailand", "Thailand", "Thailand", "Thailand", "Thailand", "Thailand", "Thailand", "Thailand", "Thailand", "Thailand", "Thailand", "Thailand" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "25d95c80-7dea-4f7c-acf9-e969d629067f", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 50.848, 53.63, 56.06100000000001, 58.285, 60.405, 62.494, 64.597, 66.084, 67.298, 67.521, 68.564, 70.616 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Togo
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Togo", "Togo", "Togo", "Togo", "Togo", "Togo", "Togo", "Togo", "Togo", "Togo", "Togo", "Togo" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "7d180879-318e-48a1-ac06-92bf303ff8d2", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 38.596, 41.208, 43.922, 46.769, 49.75899999999999, 52.887, 55.471000000000004, 56.941, 58.06100000000001, 58.39, 57.56100000000001, 58.42 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Trinidad and Tobago
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Trinidad and Tobago", "Trinidad and Tobago", "Trinidad and Tobago", "Trinidad and Tobago", "Trinidad and Tobago", "Trinidad and Tobago", "Trinidad and Tobago", "Trinidad and Tobago", "Trinidad and Tobago", "Trinidad and Tobago", "Trinidad and Tobago", "Trinidad and Tobago" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "b6374c10-1bd4-4124-ba8c-b41b3db698c0", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 59.1, 61.8, 64.9, 65.4, 65.9, 68.3, 68.832, 69.582, 69.862, 69.465, 68.976, 69.819 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Tunisia
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Tunisia", "Tunisia", "Tunisia", "Tunisia", "Tunisia", "Tunisia", "Tunisia", "Tunisia", "Tunisia", "Tunisia", "Tunisia", "Tunisia" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "8c6a38b3-6d19-4ce9-a708-b36ba2fe6ebb", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 44.6, 47.1, 49.57899999999999, 52.053000000000004, 55.602, 59.836999999999996, 64.048, 66.89399999999999, 70.001, 71.973, 73.042, 73.923 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Turkey
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "Turkey", "Turkey", "Turkey", "Turkey", "Turkey", "Turkey", "Turkey", "Turkey", "Turkey", "Turkey", "Turkey", "Turkey" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "9ea297d7-7980-4757-af5c-31e821b3e080", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 43.585, 48.07899999999999, 52.098, 54.336000000000006, 57.005, 59.507, 61.036, 63.108000000000004, 66.146, 68.835, 70.845, 71.777 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Uganda
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Uganda", "Uganda", "Uganda", "Uganda", "Uganda", "Uganda", "Uganda", "Uganda", "Uganda", "Uganda", "Uganda", "Uganda" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "5b1d0848-31e9-46d5-aef5-dc0c4eb68661", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 39.978, 42.571000000000005, 45.343999999999994, 48.051, 51.016000000000005, 50.35, 49.849, 51.50899999999999, 48.825, 44.578, 47.813, 51.542 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=United Kingdom
continent=Europe
year=%{x}
lifeExp=%{y}", "hovertext": [ "United Kingdom", "United Kingdom", "United Kingdom", "United Kingdom", "United Kingdom", "United Kingdom", "United Kingdom", "United Kingdom", "United Kingdom", "United Kingdom", "United Kingdom", "United Kingdom" ], "legendgroup": "continent=Europe", "line": { "color": "#EF553B", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Europe", "showlegend": false, "type": "scatter", "uid": "b3c67be8-bca8-441a-a250-e5c536c715f6", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 69.18, 70.42, 70.76, 71.36, 72.01, 72.76, 74.04, 75.007, 76.42, 77.218, 78.471, 79.425 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=United States
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "United States", "United States", "United States", "United States", "United States", "United States", "United States", "United States", "United States", "United States", "United States", "United States" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "ad0951a7-d6a1-49c0-a6d6-71d91477f2cd", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 68.44, 69.49, 70.21, 70.76, 71.34, 73.38, 74.65, 75.02, 76.09, 76.81, 77.31, 78.242 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Uruguay
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Uruguay", "Uruguay", "Uruguay", "Uruguay", "Uruguay", "Uruguay", "Uruguay", "Uruguay", "Uruguay", "Uruguay", "Uruguay", "Uruguay" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "25e753b8-f3d5-42ab-8fc7-8e19d03e2e36", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 66.071, 67.044, 68.253, 68.468, 68.673, 69.48100000000001, 70.805, 71.918, 72.752, 74.223, 75.307, 76.384 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Venezuela
continent=Americas
year=%{x}
lifeExp=%{y}", "hovertext": [ "Venezuela", "Venezuela", "Venezuela", "Venezuela", "Venezuela", "Venezuela", "Venezuela", "Venezuela", "Venezuela", "Venezuela", "Venezuela", "Venezuela" ], "legendgroup": "continent=Americas", "line": { "color": "#ab63fa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Americas", "showlegend": false, "type": "scatter", "uid": "b7c874f7-714a-4660-9f28-48d3a497f66a", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 55.088, 57.907, 60.77, 63.479, 65.712, 67.456, 68.557, 70.19, 71.15, 72.146, 72.766, 73.747 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Vietnam
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Vietnam", "Vietnam", "Vietnam", "Vietnam", "Vietnam", "Vietnam", "Vietnam", "Vietnam", "Vietnam", "Vietnam", "Vietnam", "Vietnam" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "6053b61c-8c4d-41d3-b81f-1408a0b25fb7", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 40.412, 42.887, 45.363, 47.838, 50.254, 55.763999999999996, 58.816, 62.82, 67.66199999999999, 70.672, 73.017, 74.249 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=West Bank and Gaza
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "West Bank and Gaza", "West Bank and Gaza", "West Bank and Gaza", "West Bank and Gaza", "West Bank and Gaza", "West Bank and Gaza", "West Bank and Gaza", "West Bank and Gaza", "West Bank and Gaza", "West Bank and Gaza", "West Bank and Gaza", "West Bank and Gaza" ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "1a550656-178a-4b51-a473-33514ccb4c3e", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 43.16, 45.67100000000001, 48.126999999999995, 51.631, 56.532, 60.765, 64.406, 67.046, 69.718, 71.096, 72.37, 73.422 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Yemen, Rep.
continent=Asia
year=%{x}
lifeExp=%{y}", "hovertext": [ "Yemen, Rep.", "Yemen, Rep.", "Yemen, Rep.", "Yemen, Rep.", "Yemen, Rep.", "Yemen, Rep.", "Yemen, Rep.", "Yemen, Rep.", "Yemen, Rep.", "Yemen, Rep.", "Yemen, Rep.", "Yemen, Rep." ], "legendgroup": "continent=Asia", "line": { "color": "#636efa", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Asia", "showlegend": false, "type": "scatter", "uid": "490ac6db-337d-4eb9-b31f-8626823372d3", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 32.548, 33.97, 35.18, 36.984, 39.848, 44.175, 49.113, 52.922, 55.599, 58.02, 60.308, 62.698 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Zambia
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Zambia", "Zambia", "Zambia", "Zambia", "Zambia", "Zambia", "Zambia", "Zambia", "Zambia", "Zambia", "Zambia", "Zambia" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "9772fa35-667c-4080-908e-f551cb117eab", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 42.038000000000004, 44.077, 46.023, 47.768, 50.107, 51.386, 51.821000000000005, 50.821000000000005, 46.1, 40.238, 39.193000000000005, 42.38399999999999 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

country=Zimbabwe
continent=Africa
year=%{x}
lifeExp=%{y}", "hovertext": [ "Zimbabwe", "Zimbabwe", "Zimbabwe", "Zimbabwe", "Zimbabwe", "Zimbabwe", "Zimbabwe", "Zimbabwe", "Zimbabwe", "Zimbabwe", "Zimbabwe", "Zimbabwe" ], "legendgroup": "continent=Africa", "line": { "color": "#00cc96", "dash": "solid", "shape": "spline" }, "mode": "lines", "name": "continent=Africa", "showlegend": false, "type": "scatter", "uid": "08f85cf6-3e3b-4224-ac01-e9e927802d7e", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 48.451, 50.468999999999994, 52.358000000000004, 53.995, 55.635, 57.674, 60.363, 62.351000000000006, 60.376999999999995, 46.809, 39.989000000000004, 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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": "year" } }, "yaxis": { "title": { "text": "lifeExp" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.line(gapminder, x=\"year\", y=\"lifeExp\", color=\"continent\", line_group=\"country\", hover_name=\"country\", \n", " line_shape=\"spline\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Visualize Distributions" ] }, { "cell_type": "code", "execution_count": 19, "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": "3ca54696-8845-4cb2-9681-630427dd138b", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.density_contour(iris, x=\"sepal_width\", y=\"sepal_length\")" ] }, { "cell_type": "code", "execution_count": 20, "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": "5d806582-252f-4705-ae5d-767179bfda3a", "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": "e8fd8a94-8c33-4ff3-824c-f533b4030d1c", "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": "1d13274d-f043-42b2-8060-4e4caf492366", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.density_contour(iris, x=\"sepal_width\", y=\"sepal_length\", color=\"species\")" ] }, { "cell_type": "code", "execution_count": 21, "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": "day=Fri", "line": { "color": "#636efa" }, "name": "day=Fri", "showlegend": true, "type": "histogram2dcontour", "uid": "7d42995d-829f-4ab2-8527-aba7bb4858a2", "x": [ 28.97, 22.49, 5.75, 16.32, 22.75, 40.17, 27.28, 12.03, 21.01, 12.46, 11.35, 15.38, 12.16, 13.42, 8.58, 15.98, 13.42, 16.27, 10.09 ], "xaxis": "x", "y": [ 3, 3.5, 1, 4.3, 3.25, 4.73, 4, 1.5, 3, 1.5, 2.5, 3, 2.2, 3.48, 1.92, 3, 1.58, 2.5, 2 ], "yaxis": "y" }, { "contours": { "coloring": "none" }, "legendgroup": "day=Sat", "line": { "color": "#EF553B" }, "name": "day=Sat", "showlegend": true, "type": "histogram2dcontour", "uid": "ad7faa19-e5d9-4141-81ab-7d20c147b164", "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, 38.01, 26.41, 11.24, 48.27, 20.29, 13.81, 11.02, 18.29, 17.59, 20.08, 16.45, 3.07, 20.23, 15.01, 12.02, 17.07, 26.86, 25.28, 14.73, 10.51, 17.92, 44.3, 22.42, 20.92, 15.36, 20.49, 25.21, 18.24, 14.31, 14, 7.25, 10.59, 10.63, 50.81, 15.81, 26.59, 38.73, 24.27, 12.76, 30.06, 25.89, 48.33, 13.27, 28.17, 12.9, 28.15, 11.59, 7.74, 30.14, 20.45, 13.28, 22.12, 24.01, 15.69, 11.61, 10.77, 15.53, 10.07, 12.6, 32.83, 35.83, 29.03, 27.18, 22.67, 17.82 ], "xaxis": "x2", "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, 3, 1.5, 1.76, 6.73, 3.21, 2, 1.98, 3.76, 2.64, 3.15, 2.47, 1, 2.01, 2.09, 1.97, 3, 3.14, 5, 2.2, 1.25, 3.08, 2.5, 3.48, 4.08, 1.64, 4.06, 4.29, 3.76, 4, 3, 1, 1.61, 2, 10, 3.16, 3.41, 3, 2.03, 2.23, 2, 5.16, 9, 2.5, 6.5, 1.1, 3, 1.5, 1.44, 3.09, 3, 2.72, 2.88, 2, 3, 3.39, 1.47, 3, 1.25, 1, 1.17, 4.67, 5.92, 2, 2, 1.75 ], "yaxis": "y" }, { "contours": { "coloring": "none" }, "legendgroup": "day=Sun", "line": { "color": "#00cc96" }, "name": "day=Sun", "showlegend": true, "type": "histogram2dcontour", "uid": "d95d8da3-f8fb-4ac4-a9c4-b5930ec52210", "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, 17.51, 24.52, 20.76, 31.71, 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.69, 20.9, 30.46, 18.15, 23.1, 15.69 ], "xaxis": "x3", "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, 3.48, 2.24, 4.5, 5.15, 3.18, 4, 3.11, 2, 2, 4, 3.55, 3.68, 5.65, 3.5, 6.5, 3, 5, 3.5, 2, 3.5, 4, 1.5 ], "yaxis": "y" }, { "contours": { "coloring": "none" }, "legendgroup": "day=Thur", "line": { "color": "#ab63fa" }, "name": "day=Thur", "showlegend": true, "type": "histogram2dcontour", "uid": "59d5539e-7891-4fb8-ac43-d0d87b000c5a", "x": [ 27.2, 22.76, 17.29, 19.44, 16.66, 10.07, 32.68, 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, 16, 13.16, 17.47, 34.3, 41.19, 27.05, 16.43, 8.35, 18.64, 11.87, 9.78, 7.51, 19.81, 28.44, 15.48, 16.58, 7.56, 10.34, 43.11, 13, 13.51, 18.71, 12.74, 13, 16.4, 20.53, 16.47, 18.78 ], "xaxis": "x4", "y": [ 4, 3, 2.71, 3, 3.4, 1.83, 5, 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, 2.75, 3.5, 6.7, 5, 5, 2.3, 1.5, 1.36, 1.63, 1.73, 2, 4.19, 2.56, 2.02, 4, 1.44, 2, 5, 2, 2, 4, 2.01, 2, 2.5, 4, 3.23, 3 ], "yaxis": "y" } ], "layout": { "annotations": [ { "showarrow": false, "text": "day=Fri", "textangle": 0, "x": 0.1153846153846154, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Sat", "textangle": 0, "x": 0.3717948717948718, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Sun", "textangle": 0, "x": 0.6282051282051283, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Thur", "textangle": 0, "x": 0.8846153846153848, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" } ], "grid": { "xaxes": [ "x", "x2", "x3", "x4" ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.density_contour(tips, x=\"total_bill\", y=\"tip\", color=\"day\", facet_col=\"day\")" ] }, { "cell_type": "code", "execution_count": 22, "metadata": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "alignmentgroup": "True", "hovertemplate": "smoker=No
total_bill=%{x}
sex=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "h", "showlegend": true, "textposition": "auto", "type": "bar", "uid": "3d0c3578-5680-49d3-b114-db34307a5833", "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, 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, 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, 26.41, 48.27, 17.59, 20.08, 16.45, 20.23, 12.02, 17.07, 14.73, 10.51, 27.2, 22.76, 17.29, 16.66, 10.07, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 22.49, 22.75, 12.46, 20.92, 18.24, 14, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 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, 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, 7.56, 48.33, 15.98, 20.45, 13.28, 11.61, 10.77, 10.07, 35.83, 29.03, 17.82, 18.78 ], "xaxis": "x", "y": [ "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", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "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", "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", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Female" ], "yaxis": "y" }, { "alignmentgroup": "True", "hovertemplate": "smoker=Yes
total_bill=%{x}
sex=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "h", "showlegend": true, "textposition": "auto", "type": "bar", "uid": "161f6b31-b173-41ef-82dc-138a77b32dd1", "x": [ 38.01, 11.24, 20.29, 13.81, 11.02, 18.29, 3.07, 15.01, 26.86, 25.28, 17.92, 19.44, 32.68, 28.97, 5.75, 16.32, 40.17, 27.28, 12.03, 21.01, 11.35, 15.38, 44.3, 22.42, 15.36, 20.49, 25.21, 14.31, 16, 17.51, 10.59, 10.63, 50.81, 15.81, 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, 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, 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, 12.16, 13.42, 8.58, 13.42, 16.27, 10.09, 22.12, 24.01, 15.69, 15.53, 12.6, 32.83, 27.18, 22.67 ], "xaxis": "x", "y": [ "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Male" ], "yaxis": "y" } ], "layout": { "barmode": "relative", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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" } }, "yaxis": { "title": { "text": "sex" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.bar(tips, x=\"total_bill\", y=\"sex\", orientation=\"h\", color=\"smoker\")" ] }, { "cell_type": "code", "execution_count": 23, "metadata": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "alignmentgroup": "True", "hovertemplate": "total_bill=%{x}
count of tip=%{y}", "legendgroup": "", "marker": { "color": "#636efa" }, "name": " ", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "0bf93400-1047-492e-beb7-90f1ff61bbb5", "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, 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, 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.01, 26.41, 11.24, 48.27, 20.29, 13.81, 11.02, 18.29, 17.59, 20.08, 16.45, 3.07, 20.23, 15.01, 12.02, 17.07, 26.86, 25.28, 14.73, 10.51, 17.92, 27.2, 22.76, 17.29, 19.44, 16.66, 10.07, 32.68, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 28.97, 22.49, 5.75, 16.32, 22.75, 40.17, 27.28, 12.03, 21.01, 12.46, 11.35, 15.38, 44.3, 22.42, 20.92, 15.36, 20.49, 25.21, 18.24, 14.31, 14, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 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, 16, 13.16, 17.47, 34.3, 41.19, 27.05, 16.43, 8.35, 18.64, 11.87, 9.78, 7.51, 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, 17.51, 24.52, 20.76, 31.71, 10.59, 10.63, 50.81, 15.81, 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.69, 20.9, 30.46, 18.15, 23.1, 15.69, 19.81, 28.44, 15.48, 16.58, 7.56, 10.34, 43.11, 13, 13.51, 18.71, 12.74, 13, 16.4, 20.53, 16.47, 26.59, 38.73, 24.27, 12.76, 30.06, 25.89, 48.33, 13.27, 28.17, 12.9, 28.15, 11.59, 7.74, 30.14, 12.16, 13.42, 8.58, 15.98, 13.42, 16.27, 10.09, 20.45, 13.28, 22.12, 24.01, 15.69, 11.61, 10.77, 15.53, 10.07, 12.6, 32.83, 35.83, 29.03, 27.18, 22.67, 17.82, 18.78 ], "xaxis": "x", "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, 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, 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, 3, 1.5, 1.76, 6.73, 3.21, 2, 1.98, 3.76, 2.64, 3.15, 2.47, 1, 2.01, 2.09, 1.97, 3, 3.14, 5, 2.2, 1.25, 3.08, 4, 3, 2.71, 3, 3.4, 1.83, 5, 2.03, 5.17, 2, 4, 5.85, 3, 3, 3.5, 1, 4.3, 3.25, 4.73, 4, 1.5, 3, 1.5, 2.5, 3, 2.5, 3.48, 4.08, 1.64, 4.06, 4.29, 3.76, 4, 3, 1, 4, 2.55, 4, 3.5, 5.07, 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, 2.75, 3.5, 6.7, 5, 5, 2.3, 1.5, 1.36, 1.63, 1.73, 2, 2.5, 2, 2.74, 2, 2, 5.14, 5, 3.75, 2.61, 2, 3.5, 2.5, 2, 2, 3, 3.48, 2.24, 4.5, 1.61, 2, 10, 3.16, 5.15, 3.18, 4, 3.11, 2, 2, 4, 3.55, 3.68, 5.65, 3.5, 6.5, 3, 5, 3.5, 2, 3.5, 4, 1.5, 4.19, 2.56, 2.02, 4, 1.44, 2, 5, 2, 2, 4, 2.01, 2, 2.5, 4, 3.23, 3.41, 3, 2.03, 2.23, 2, 5.16, 9, 2.5, 6.5, 1.1, 3, 1.5, 1.44, 3.09, 2.2, 3.48, 1.92, 3, 1.58, 2.5, 2, 3, 2.72, 2.88, 2, 3, 3.39, 1.47, 3, 1.25, 1, 1.17, 4.67, 5.92, 2, 2, 1.75, 3 ], "yaxis": "y" } ], "layout": { "barmode": "stack", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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" } }, "yaxis": { "title": { "text": "count of tip" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.histogram(tips, x=\"total_bill\", y=\"tip\")" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "alignmentgroup": "True", "hovertemplate": "day=Thur
smoker=No
sex=%{x}
count of tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": true, "type": "histogram", "uid": "5c67b5a3-8a8f-468c-bef7-866a5c5686c5", "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", "Female" ], "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, 3 ], "yaxis": "y" }, { "alignmentgroup": "True", "hovertemplate": "day=Thur
smoker=Yes
sex=%{x}
count of tip=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": true, "type": "histogram", "uid": "9fb3ba4f-52b9-4cfb-8227-9cb020d7f4b3", "x": [ "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Female" ], "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" }, { "alignmentgroup": "True", "hovertemplate": "day=Fri
smoker=No
sex=%{x}
count of tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "5444fb6c-de14-40a8-a410-a7cf575f1a70", "x": [ "Male", "Female", "Male", "Female" ], "xaxis": "x", "y": [ 3.5, 3.25, 1.5, 3 ], "yaxis": "y2" }, { "alignmentgroup": "True", "hovertemplate": "day=Fri
smoker=Yes
sex=%{x}
count of tip=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "0c7418ae-2918-4c32-8b5c-4303ed55ba68", "x": [ "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Female", "Male", "Male", "Female", "Female" ], "xaxis": "x", "y": [ 3, 1, 4.3, 4.73, 4, 1.5, 3, 2.5, 3, 2.2, 3.48, 1.92, 1.58, 2.5, 2 ], "yaxis": "y2" }, { "alignmentgroup": "True", "hovertemplate": "day=Sat
smoker=No
sex=%{x}
count of tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "cb573f84-cda1-4b43-93bc-5932f98c3d3e", "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" ], "xaxis": "x", "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" }, { "alignmentgroup": "True", "hovertemplate": "day=Sat
smoker=Yes
sex=%{x}
count of tip=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "920920a5-4305-4e03-9572-1407b6bbe9f9", "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" ], "xaxis": "x", "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" }, { "alignmentgroup": "True", "hovertemplate": "day=Sun
smoker=No
sex=%{x}
count of tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "81ad0843-dbed-416a-90a8-6839be4824ea", "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" ], "xaxis": "x", "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" }, { "alignmentgroup": "True", "hovertemplate": "day=Sun
smoker=Yes
sex=%{x}
count of tip=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "f97e11d0-6efb-41a5-8758-98836f7123dd", "x": [ "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male" ], "xaxis": "x", "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" } ], "layout": { "annotations": [ { "showarrow": false, "text": "day=Thur", "textangle": 90, "x": 1.01, "xanchor": "center", "xref": "paper", "y": 0.8846153846153848, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Fri", "textangle": 90, "x": 1.01, "xanchor": "center", "xref": "paper", "y": 0.6282051282051283, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Sat", "textangle": 90, "x": 1.01, "xanchor": "center", "xref": "paper", "y": 0.3717948717948718, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Sun", "textangle": 90, "x": 1.01, "xanchor": "center", "xref": "paper", "y": 0.1153846153846154, "yanchor": "middle", "yref": "paper" } ], "barmode": "group", "grid": { "xaxes": [ "x" ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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" } }, "yaxis": { "title": { "text": "count of tip" } }, "yaxis2": { "matches": "y", "title": { "text": "count of tip" } }, "yaxis3": { "matches": "y", "title": { "text": "count of tip" } }, "yaxis4": { "matches": "y", "title": { "text": "count of tip" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.histogram(tips, x=\"sex\", y=\"tip\", color=\"smoker\", facet_row=\"day\", orientation=\"v\", barmode=\"group\",\n", " category_orders={\"day\": [\"Thur\", \"Fri\", \"Sat\", \"Sun\"]})" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "alignmentgroup": "True", "histfunc": "sum", "hovertemplate": "smoker=No
total_bill=%{x}
sum of tip=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": true, "type": "histogram", "uid": "70dd3456-903c-465e-9cf0-d542d8507a3f", "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, 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, 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, 26.41, 48.27, 17.59, 20.08, 16.45, 20.23, 12.02, 17.07, 14.73, 10.51, 27.2, 22.76, 17.29, 16.66, 10.07, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 22.49, 22.75, 12.46, 20.92, 18.24, 14, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 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, 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, 7.56, 48.33, 15.98, 20.45, 13.28, 11.61, 10.77, 10.07, 35.83, 29.03, 17.82, 18.78 ], "xaxis": "x", "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, 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, 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, 1.5, 6.73, 2.64, 3.15, 2.47, 2.01, 1.97, 3, 2.2, 1.25, 4, 3, 2.71, 3.4, 1.83, 2.03, 5.17, 2, 4, 5.85, 3, 3.5, 3.25, 1.5, 4.08, 3.76, 3, 1, 4, 2.55, 4, 3.5, 5.07, 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, 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, 1.44, 9, 3, 3, 2.72, 3.39, 1.47, 1.25, 4.67, 5.92, 1.75, 3 ], "yaxis": "y" }, { "alignmentgroup": "True", "histfunc": "sum", "hovertemplate": "smoker=Yes
total_bill=%{x}
sum of tip=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": true, "type": "histogram", "uid": "a9b2d9c8-c94e-4368-81f9-7ea571deb0cc", "x": [ 38.01, 11.24, 20.29, 13.81, 11.02, 18.29, 3.07, 15.01, 26.86, 25.28, 17.92, 19.44, 32.68, 28.97, 5.75, 16.32, 40.17, 27.28, 12.03, 21.01, 11.35, 15.38, 44.3, 22.42, 15.36, 20.49, 25.21, 14.31, 16, 17.51, 10.59, 10.63, 50.81, 15.81, 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, 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, 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, 12.16, 13.42, 8.58, 13.42, 16.27, 10.09, 22.12, 24.01, 15.69, 15.53, 12.6, 32.83, 27.18, 22.67 ], "xaxis": "x", "y": [ 3, 1.76, 3.21, 2, 1.98, 3.76, 1, 2.09, 3.14, 5, 3.08, 3, 5, 3, 1, 4.3, 4.73, 4, 1.5, 3, 2.5, 3, 2.5, 3.48, 1.64, 4.06, 4.29, 4, 2, 3, 1.61, 2, 10, 3.16, 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, 4.19, 2.56, 2.02, 4, 2, 5, 2, 2, 4, 2.01, 2, 2.5, 4, 3.23, 3.41, 3, 2.03, 2.23, 2, 5.16, 2.5, 6.5, 1.1, 3, 1.5, 1.44, 3.09, 2.2, 3.48, 1.92, 1.58, 2.5, 2, 2.88, 2, 3, 3, 1, 1.17, 2, 2 ], "yaxis": "y" } ], "layout": { "barmode": "stack", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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" } }, "yaxis": { "title": { "text": "sum of tip" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.histogram(tips, x=\"total_bill\", y=\"tip\", histfunc=\"sum\", color=\"smoker\")" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "alignmentgroup": "True", "hovertemplate": "day=Fri
time=Dinner
smoker=No
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": true, "type": "histogram", "uid": "ef22cef7-6caf-4a05-b6d1-b48858411720", "x": [ 22.49, 22.75, 12.46 ], "xaxis": "x", "yaxis": "y" }, { "alignmentgroup": "True", "hovertemplate": "day=Fri
time=Dinner
smoker=Yes
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": true, "type": "histogram", "uid": "fff47f50-7ea8-47d0-9ea2-498861e1489c", "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", "hovertemplate": "day=Fri
time=Lunch
smoker=No
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "0be7d207-a3d1-4cf0-b54f-68a1438d5474", "x": [ 15.98 ], "xaxis": "x2", "yaxis": "y" }, { "alignmentgroup": "True", "hovertemplate": "day=Fri
time=Lunch
smoker=Yes
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "623a1b9c-e3c8-465a-ace4-18584b7231ed", "x": [ 12.16, 13.42, 8.58, 13.42, 16.27, 10.09 ], "xaxis": "x2", "yaxis": "y" }, { "alignmentgroup": "True", "hovertemplate": "day=Sat
time=Dinner
smoker=No
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "e2e9e0bd-f75d-48a5-9004-6870f90f51d8", "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", "hovertemplate": "day=Sat
time=Dinner
smoker=Yes
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "eafcb9fc-e6d2-4fb6-b730-a9d10ecb4b8d", "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", "hovertemplate": "day=Sun
time=Dinner
smoker=No
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "4aa9204d-d306-4f04-8df4-d24b4b97b997", "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": "y3" }, { "alignmentgroup": "True", "hovertemplate": "day=Sun
time=Dinner
smoker=Yes
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "bee53302-8eb2-4913-8a37-5efe9bd8ebc7", "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": "y3" }, { "alignmentgroup": "True", "hovertemplate": "day=Thur
time=Dinner
smoker=No
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "822550cb-009e-4586-851e-ed396bb43c5e", "x": [ 18.78 ], "xaxis": "x", "yaxis": "y4" }, { "alignmentgroup": "True", "hovertemplate": "day=Thur
time=Lunch
smoker=No
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "4717fc3c-f500-4333-b2e1-941d30f83573", "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": "y4" }, { "alignmentgroup": "True", "hovertemplate": "day=Thur
time=Lunch
smoker=Yes
total_bill=%{x}
count=%{y}", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "histogram", "uid": "162aea98-9936-4f0d-9645-b4711d7b6a6f", "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": "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=Fri", "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=Sun", "textangle": 90, "x": 1.01, "xanchor": "center", "xref": "paper", "y": 0.3717948717948718, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Thur", "textangle": 90, "x": 1.01, "xanchor": "center", "xref": "paper", "y": 0.1153846153846154, "yanchor": "middle", "yref": "paper" } ], "barmode": "stack", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+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": 27, "metadata": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": true, "offsetgroup": "smoker=No", "orientation": "h", "showlegend": true, "type": "box", "uid": "6321abd4-c662-4e26-9777-7130877968b2", "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, 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, 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, 26.41, 48.27, 17.59, 20.08, 16.45, 20.23, 12.02, 17.07, 14.73, 10.51, 27.2, 22.76, 17.29, 16.66, 10.07, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 22.49, 22.75, 12.46, 20.92, 18.24, 14, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 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, 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, 7.56, 48.33, 15.98, 20.45, 13.28, 11.61, 10.77, 10.07, 35.83, 29.03, 17.82, 18.78 ], "xaxis": "x", "y": [ "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", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Fri", "Fri", "Fri", "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", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Thur", "Sat", "Fri", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Thur" ], "yaxis": "y" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": true, "offsetgroup": "smoker=Yes", "orientation": "h", "showlegend": true, "type": "box", "uid": "02d19a07-dc94-401c-89ba-50c267977bcf", "x": [ 38.01, 11.24, 20.29, 13.81, 11.02, 18.29, 3.07, 15.01, 26.86, 25.28, 17.92, 19.44, 32.68, 28.97, 5.75, 16.32, 40.17, 27.28, 12.03, 21.01, 11.35, 15.38, 44.3, 22.42, 15.36, 20.49, 25.21, 14.31, 16, 17.51, 10.59, 10.63, 50.81, 15.81, 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, 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, 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, 12.16, 13.42, 8.58, 13.42, 16.27, 10.09, 22.12, 24.01, 15.69, 15.53, 12.6, 32.83, 27.18, 22.67 ], "xaxis": "x", "y": [ "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Thur", "Thur", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Thur", "Sun", "Sat", "Sat", "Sat", "Sat", "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", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat" ], "yaxis": "y" } ], "layout": { "boxmode": "group", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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" } }, "yaxis": { "categoryarray": [ "Sun", "Sat", "Fri", "Thur" ], "categoryorder": "array", "title": { "text": "day" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.box(tips, x=\"total_bill\", y=\"day\", orientation=\"h\", color=\"smoker\", notched=True,\n", " category_orders={\"day\": [\"Thur\", \"Fri\", \"Sat\", \"Sun\"]})" ] }, { "cell_type": "code", "execution_count": 28, "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": true }, "legendgroup": "sex=Female", "marker": { "color": "#636efa" }, "name": "sex=Female", "offsetgroup": "sex=Female", "orientation": "v", "points": "all", "showlegend": true, "type": "violin", "uid": "054c189d-0a84-416f-a4ca-190de65ba30b", "x": [ "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "Yes", "No", "Yes", "Yes", "No", "No", "No", "Yes", "Yes", "No", "Yes", "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", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "No", "Yes", "No" ], "xaxis": "x", "y": [ 1.01, 3.61, 5, 3.02, 1.67, 3.5, 2.75, 2.23, 3, 3, 2.45, 3.07, 2.6, 5.2, 1.5, 2.47, 1, 3, 3.14, 5, 2.2, 1.83, 5.17, 1, 4.3, 3.25, 2.5, 3, 2.5, 3.48, 4.08, 4, 1, 4, 3.5, 1.5, 1.8, 2.92, 1.68, 2.52, 4.2, 2, 2, 2.83, 1.5, 2, 3.25, 1.25, 2, 2, 2.75, 3.5, 5, 2.3, 1.5, 1.36, 1.63, 5.14, 3.75, 2.61, 2, 3, 1.61, 2, 4, 3.5, 3.5, 4.19, 5, 2, 2.01, 2, 2.5, 3.23, 2.23, 2.5, 6.5, 1.1, 3.09, 3.48, 3, 2.5, 2, 2.88, 4.67, 2, 3 ], "yaxis": "y" }, { "alignmentgroup": "True", "box": { "visible": true }, "legendgroup": "sex=Male", "marker": { "color": "#EF553B" }, "name": "sex=Male", "offsetgroup": "sex=Male", "orientation": "v", "points": "all", "showlegend": true, "type": "violin", "uid": "ca3cb32f-f22f-4b69-bb15-071bdf73f66b", "x": [ "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", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "No", "No", "No", "Yes", "No", "No", "Yes", "No", "No", "No", "Yes", "No", "Yes", "No", "No", "No", "No", "No", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "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", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "No", "Yes", "Yes", "No", "No", "Yes", "No", "Yes", "Yes", "No", "Yes", "No" ], "xaxis": "x", "y": [ 1.66, 3.5, 3.31, 4.71, 2, 3.12, 1.96, 3.23, 1.71, 1.57, 3, 3.92, 3.71, 3.35, 4.08, 7.58, 3.18, 2.34, 2, 2, 4.3, 1.45, 2.5, 3.27, 3.6, 2, 2.31, 5, 2.24, 2.54, 3.06, 1.32, 5.6, 3, 5, 6, 2.05, 3, 2.5, 1.56, 4.34, 3.51, 3, 1.76, 6.73, 3.21, 2, 1.98, 3.76, 2.64, 3.15, 2.01, 2.09, 1.97, 1.25, 3.08, 4, 3, 2.71, 3, 3.4, 5, 2.03, 2, 4, 5.85, 3, 3, 3.5, 4.73, 4, 1.5, 3, 1.5, 1.64, 4.06, 4.29, 3.76, 3, 4, 2.55, 5.07, 2.31, 2.5, 2, 1.48, 2.18, 1.5, 2, 6.7, 5, 1.73, 2, 2.5, 2, 2.74, 2, 2, 5, 2, 3.5, 2.5, 2, 3.48, 2.24, 4.5, 10, 3.16, 5.15, 3.18, 4, 3.11, 2, 2, 3.55, 3.68, 5.65, 3.5, 6.5, 3, 5, 2, 4, 1.5, 2.56, 2.02, 4, 1.44, 2, 2, 4, 4, 3.41, 3, 2.03, 2, 5.16, 9, 3, 1.5, 1.44, 2.2, 1.92, 1.58, 3, 2.72, 2, 3, 3.39, 1.47, 3, 1.25, 1, 1.17, 5.92, 2, 1.75 ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": "smoker" } }, "yaxis": { "title": { "text": "tip" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.violin(tips, y=\"tip\", x=\"smoker\", color=\"sex\", box=True, points=\"all\")" ] }, { "cell_type": "code", "execution_count": 29, "metadata": { "scrolled": false }, "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 }, "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": true, "type": "violin", "uid": "460b5f3b-0626-4868-8c4f-2516549d4a94", "x": [ "Male", "Female", "Male", "Female" ], "xaxis": "x", "y": [ 3.5, 3.25, 1.5, 3 ], "yaxis": "y" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": true, "type": "violin", "uid": "7f48d323-6737-4dc0-8357-6fcdaaba5653", "x": [ "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Female", "Male", "Male", "Female", "Female" ], "xaxis": "x", "y": [ 3, 1, 4.3, 4.73, 4, 1.5, 3, 2.5, 3, 2.2, 3.48, 1.92, 1.58, 2.5, 2 ], "yaxis": "y" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "violin", "uid": "06c6cb7b-d428-432b-be80-301a1797d1ff", "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" ], "xaxis": "x", "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" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "violin", "uid": "8b03f36a-0db9-4608-bb3d-6121e1777bb4", "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" ], "xaxis": "x", "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" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "violin", "uid": "07bbbf1c-65cf-40c4-87db-a80d6dba028f", "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" ], "xaxis": "x", "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": "y3" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "violin", "uid": "2e0fa73a-a0a3-437b-ae40-ba493f0b7812", "x": [ "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male" ], "xaxis": "x", "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": "y3" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "violin", "uid": "e6b6d050-bc35-4a12-bb0c-bbd5b1f1109e", "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", "Female" ], "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, 3 ], "yaxis": "y4" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "violin", "uid": "62ef9d87-8622-4702-b975-1e4a6dffa36c", "x": [ "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Female" ], "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": "y4" } ], "layout": { "annotations": [ { "showarrow": false, "text": "day=Fri", "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=Sun", "textangle": 90, "x": 1.01, "xanchor": "center", "xref": "paper", "y": 0.3717948717948718, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Thur", "textangle": 90, "x": 1.01, "xanchor": "center", "xref": "paper", "y": 0.1153846153846154, "yanchor": "middle", "yref": "paper" } ], "grid": { "xaxes": [ "x" ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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" } }, "yaxis": { "title": { "text": "tip" } }, "yaxis2": { "matches": "y", "title": { "text": "tip" } }, "yaxis3": { "matches": "y", "title": { "text": "tip" } }, "yaxis4": { "matches": "y", "title": { "text": "tip" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.violin(tips, y=\"tip\", x=\"sex\", color=\"smoker\", facet_row=\"day\")" ] }, { "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": [ { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": true, "type": "violin", "uid": "42f1b261-df5b-4341-af18-daaabe6f8c98", "x": [ "Male", "Female", "Male" ], "xaxis": "x", "y": [ 3.5, 3.25, 1.5 ], "yaxis": "y" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": true, "type": "violin", "uid": "a3d38230-ba20-4cb0-a243-38a352ac46fc", "x": [ "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Female" ], "xaxis": "x", "y": [ 3, 1, 4.3, 4.73, 4, 1.5, 3, 2.5, 3 ], "yaxis": "y" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "violin", "uid": "1f3711a5-1214-4bc1-ac35-e0248cc33734", "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" ], "xaxis": "x2", "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": "y" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "violin", "uid": "84ae7f35-3ad7-45ab-9bcc-ff1db3d56ab2", "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" ], "xaxis": "x2", "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": "y" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "violin", "uid": "80c5fb29-52f8-434b-bbcd-8cdf06dcd21e", "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" ], "xaxis": "x3", "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": "y" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "violin", "uid": "2c6b8ad5-5be8-401b-a46e-ba3fd75a4543", "x": [ "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male" ], "xaxis": "x3", "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": "y" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "violin", "uid": "f01413fe-f14a-448b-9e78-6a79981421d5", "x": [ "Female" ], "xaxis": "x4", "y": [ 3 ], "yaxis": "y" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "violin", "uid": "1249ff9a-b0ca-418f-884b-092814ca5126", "x": [ "Female" ], "xaxis": "x", "y": [ 3 ], "yaxis": "y2" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "violin", "uid": "869e75df-65bb-4599-a5ea-3e2eff355262", "x": [ "Male", "Female", "Male", "Male", "Female", "Female" ], "xaxis": "x", "y": [ 2.2, 3.48, 1.92, 1.58, 2.5, 2 ], "yaxis": "y2" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "violin", "uid": "2c93a796-1cd4-4043-a2f3-e7ba5f3d067e", "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" ], "xaxis": "x4", "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": "y2" }, { "alignmentgroup": "True", "box": { "visible": false }, "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "violin", "uid": "1b0920e2-e936-49ca-bd0a-ca286392a916", "x": [ "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Female" ], "xaxis": "x4", "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": "y2" } ], "layout": { "annotations": [ { "showarrow": false, "text": "day=Fri", "textangle": 0, "x": 0.1153846153846154, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Sat", "textangle": 0, "x": 0.3717948717948718, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Sun", "textangle": 0, "x": 0.6282051282051283, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Thur", "textangle": 0, "x": 0.8846153846153848, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "time=Dinner", "textangle": 90, "x": 1.01, "xanchor": "center", "xref": "paper", "y": 0.763157894736842, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "time=Lunch", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.violin(tips, y=\"tip\", x=\"sex\", color=\"smoker\", facet_col=\"day\", facet_row=\"time\")" ] }, { "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": [ { "alignmentgroup": "True", "legendgroup": "", "marker": { "color": "#636efa" }, "name": " ", "notched": false, "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "box", "uid": "ed3b38b7-b4f5-48fa-adf0-151d7a4b90df", "x": [ "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" ], "xaxis": "x", "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, 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, 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, 3, 1.5, 1.76, 6.73, 3.21, 2, 1.98, 3.76, 2.64, 3.15, 2.47, 1, 2.01, 2.09, 1.97, 3, 3.14, 5, 2.2, 1.25, 3.08, 4, 3, 2.71, 3, 3.4, 1.83, 5, 2.03, 5.17, 2, 4, 5.85, 3, 3, 3.5, 1, 4.3, 3.25, 4.73, 4, 1.5, 3, 1.5, 2.5, 3, 2.5, 3.48, 4.08, 1.64, 4.06, 4.29, 3.76, 4, 3, 1, 4, 2.55, 4, 3.5, 5.07, 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, 2.75, 3.5, 6.7, 5, 5, 2.3, 1.5, 1.36, 1.63, 1.73, 2, 2.5, 2, 2.74, 2, 2, 5.14, 5, 3.75, 2.61, 2, 3.5, 2.5, 2, 2, 3, 3.48, 2.24, 4.5, 1.61, 2, 10, 3.16, 5.15, 3.18, 4, 3.11, 2, 2, 4, 3.55, 3.68, 5.65, 3.5, 6.5, 3, 5, 3.5, 2, 3.5, 4, 1.5, 4.19, 2.56, 2.02, 4, 1.44, 2, 5, 2, 2, 4, 2.01, 2, 2.5, 4, 3.23, 3.41, 3, 2.03, 2.23, 2, 5.16, 9, 2.5, 6.5, 1.1, 3, 1.5, 1.44, 3.09, 2.2, 3.48, 1.92, 3, 1.58, 2.5, 2, 3, 2.72, 2.88, 2, 3, 3.39, 1.47, 3, 1.25, 1, 1.17, 4.67, 5.92, 2, 2, 1.75, 3 ], "yaxis": "y" } ], "layout": { "boxmode": "group", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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" } }, "yaxis": { "title": { "text": "tip" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.box(tips, y=\"tip\", x=\"sex\")" ] }, { "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": [ { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "v", "showlegend": true, "type": "box", "uid": "5c099cdf-a672-4602-b975-b08bd59b4cbb", "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" ], "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" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": false, "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": true, "type": "box", "uid": "fe23cbad-c099-4336-9fd8-f629510856a9", "x": [ "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Female" ], "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" }, { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "box", "uid": "d4a3f707-3cb9-4201-98d4-8a70190e18dd", "x": [ "Female" ], "xaxis": "x2", "y": [ 3 ], "yaxis": "y" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": false, "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "box", "uid": "fbb98ae5-64fd-4edf-aa5e-1d80c1064b6e", "x": [ "Male", "Female", "Male", "Male", "Female", "Female" ], "xaxis": "x2", "y": [ 2.2, 3.48, 1.92, 1.58, 2.5, 2 ], "yaxis": "y" }, { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "box", "uid": "f5dee42a-5365-4f05-b3de-b72edd2b73bb", "x": [ "Female" ], "xaxis": "x", "y": [ 3 ], "yaxis": "y2" }, { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "box", "uid": "cc134f56-97cd-4aa1-9c04-51aab97b32a8", "x": [ "Male", "Female", "Male" ], "xaxis": "x2", "y": [ 3.5, 3.25, 1.5 ], "yaxis": "y2" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": false, "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "box", "uid": "3fd02955-c4e7-4ce1-b754-236756085124", "x": [ "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Female" ], "xaxis": "x2", "y": [ 3, 1, 4.3, 4.73, 4, 1.5, 3, 2.5, 3 ], "yaxis": "y2" }, { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "box", "uid": "87217c4a-8d34-443e-b6a8-0813f91bcae0", "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" ], "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" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": false, "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "box", "uid": "4e9d29b4-8b54-4573-b7b0-a4d8b73c31c2", "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" ], "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" }, { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "v", "showlegend": false, "type": "box", "uid": "f9756504-822f-4a3e-aa47-aff43888bc79", "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" ], "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" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": false, "offsetgroup": "smoker=Yes", "orientation": "v", "showlegend": false, "type": "box", "uid": "2df75fb2-97ab-4aed-a2e9-dafeb1c206b1", "x": [ "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male" ], "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" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+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": 33, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "h", "showlegend": true, "type": "box", "uid": "ff026909-414d-4633-ac88-97304f593dc6", "x": [ 3.5, 3.25, 1.5 ], "xaxis": "x", "y": [ "Male", "Female", "Male" ], "yaxis": "y" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": false, "offsetgroup": "smoker=Yes", "orientation": "h", "showlegend": true, "type": "box", "uid": "1042f7f2-9a7e-4a8d-ae84-ed88d5d651d9", "x": [ 3, 1, 4.3, 4.73, 4, 1.5, 3, 2.5, 3 ], "xaxis": "x", "y": [ "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Female" ], "yaxis": "y" }, { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "h", "showlegend": false, "type": "box", "uid": "aabb6458-2b8b-47b0-8782-2fc2b4280df2", "x": [ 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 ], "xaxis": "x2", "y": [ "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" ], "yaxis": "y" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": false, "offsetgroup": "smoker=Yes", "orientation": "h", "showlegend": false, "type": "box", "uid": "0db7e81c-3816-449c-9d94-2662e7201299", "x": [ 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 ], "xaxis": "x2", "y": [ "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" ], "yaxis": "y" }, { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "h", "showlegend": false, "type": "box", "uid": "5a7ef7be-0251-4c8f-a583-ce4b7693d5cd", "x": [ 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 ], "xaxis": "x3", "y": [ "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" ], "yaxis": "y" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": false, "offsetgroup": "smoker=Yes", "orientation": "h", "showlegend": false, "type": "box", "uid": "6af047ea-735e-414b-a4c5-6df86e7ffbbd", "x": [ 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 ], "xaxis": "x3", "y": [ "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male" ], "yaxis": "y" }, { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "h", "showlegend": false, "type": "box", "uid": "e82278e1-da66-4ddf-801a-e502dc65c831", "x": [ 3 ], "xaxis": "x4", "y": [ "Female" ], "yaxis": "y" }, { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "h", "showlegend": false, "type": "box", "uid": "871755ec-cdf0-4069-b5dd-fda2c1631bb4", "x": [ 3 ], "xaxis": "x", "y": [ "Female" ], "yaxis": "y2" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": false, "offsetgroup": "smoker=Yes", "orientation": "h", "showlegend": false, "type": "box", "uid": "e2f1a4fa-8185-481e-a837-787937d606f1", "x": [ 2.2, 3.48, 1.92, 1.58, 2.5, 2 ], "xaxis": "x", "y": [ "Male", "Female", "Male", "Male", "Female", "Female" ], "yaxis": "y2" }, { "alignmentgroup": "True", "legendgroup": "smoker=No", "marker": { "color": "#636efa" }, "name": "smoker=No", "notched": false, "offsetgroup": "smoker=No", "orientation": "h", "showlegend": false, "type": "box", "uid": "b6d9999f-6eeb-43f8-89c8-b0cd8e012527", "x": [ 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 ], "xaxis": "x4", "y": [ "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" ], "yaxis": "y2" }, { "alignmentgroup": "True", "legendgroup": "smoker=Yes", "marker": { "color": "#EF553B" }, "name": "smoker=Yes", "notched": false, "offsetgroup": "smoker=Yes", "orientation": "h", "showlegend": false, "type": "box", "uid": "cc96e2aa-5b15-4bc3-a447-60d18b4ebd19", "x": [ 3, 5, 2, 4.19, 2.56, 2.02, 4, 2, 5, 2, 2, 4, 2.01, 2, 2.5, 4, 3.23 ], "xaxis": "x4", "y": [ "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Female" ], "yaxis": "y2" } ], "layout": { "annotations": [ { "showarrow": false, "text": "day=Fri", "textangle": 0, "x": 0.1153846153846154, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Sat", "textangle": 0, "x": 0.3717948717948718, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Sun", "textangle": 0, "x": 0.6282051282051283, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "day=Thur", "textangle": 0, "x": 0.8846153846153848, "xanchor": "center", "xref": "paper", "y": 1.02, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "time=Dinner", "textangle": 90, "x": 1.01, "xanchor": "center", "xref": "paper", "y": 0.763157894736842, "yanchor": "middle", "yref": "paper" }, { "showarrow": false, "text": "time=Lunch", "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": "tip" } }, "xaxis2": { "matches": "x", "title": { "text": "tip" } }, "xaxis3": { "matches": "x", "title": { "text": "tip" } }, "xaxis4": { "matches": "x", "title": { "text": "tip" } }, "yaxis": { "title": { "text": "sex" } }, "yaxis2": { "matches": "y", "title": { "text": "sex" } } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.box(tips, x=\"tip\", y=\"sex\", color=\"smoker\", facet_col=\"day\", facet_row=\"time\", orientation=\"h\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Ternary Coordinates" ] }, { "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": [ { "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": "winner=Bergeron, result=majority", "marker": { "color": "green", "size": [ 9030, 10747, 11050, 10867, 10802 ], "sizemode": "area", "sizeref": 49.111111111111114, "symbol": "circle" }, "mode": "markers", "name": "winner=Bergeron, result=majority", "showlegend": true, "type": "scatterternary", "uid": "48a3028e-2fbc-4b6b-becd-b6ea39f5e0db" }, { "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-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": "diamond" }, "mode": "markers", "name": "winner=Bergeron, result=plurality", "showlegend": true, "type": "scatterternary", "uid": "10312e54-86a1-4b85-b633-12c845e83d65" }, { "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": "winner=Coderre, result=majority", "marker": { "color": "red", "size": [ 10546, 9465, 8351, 6454, 8479, 5872, 3951, 4663, 9111, 8060 ], "sizemode": "area", "sizeref": 49.111111111111114, "symbol": "circle" }, "mode": "markers", "name": "winner=Coderre, result=majority", "showlegend": true, "type": "scatterternary", "uid": "e51c1475-d65f-4c33-967b-0f492648dcf6" }, { "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-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": "diamond" }, "mode": "markers", "name": "winner=Coderre, result=plurality", "showlegend": true, "type": "scatterternary", "uid": "808c5807-957c-475c-b863-a018c785c6f9" }, { "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": "winner=Joly, result=majority", "marker": { "color": "blue", "size": [ 1887, 1889 ], "sizemode": "area", "sizeref": 49.111111111111114, "symbol": "circle" }, "mode": "markers", "name": "winner=Joly, result=majority", "showlegend": true, "type": "scatterternary", "uid": "e82f9bfa-067d-4b69-bec1-7df4958a2245" }, { "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-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": "diamond" }, "mode": "markers", "name": "winner=Joly, result=plurality", "showlegend": true, "type": "scatterternary", "uid": "288bb2ad-e2b2-42f1-8418-6087a9056e83" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "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": 35, "metadata": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "a": [ 2514, 3044, 2316, 2873, 2815, 2788, 3234, 2271, 2782, 1578, 3139, 2675, 592, 419, 489 ], "b": [ 1734, 1770, 1455, 2979, 1827, 2331, 2670, 1347, 2201, 1644, 2746, 1546, 540, 446, 491 ], "c": [ 4782, 5933, 3599, 3430, 6408, 5748, 4962, 2827, 5819, 1950, 3250, 3679, 833, 465, 698 ], "hovertemplate": "winner=Bergeron
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}", "legendgroup": "winner=Bergeron", "line": { "color": "#636efa", "dash": "solid" }, "mode": "lines", "name": "winner=Bergeron", "showlegend": true, "type": "scatterternary", "uid": "7344d912-55c8-4499-a82e-9efbf9359fea" }, { "a": [ 2532, 2543, 3330, 2852, 1656, 2431, 2081, 3959, 2822, 1641, 1908, 2438, 3291, 1220, 2039, 1402, 1076, 1172, 1286, 1232, 1157, 3717, 2943, 326, 3454, 2338, 1435, 1051, 423 ], "b": [ 3348, 3252, 5456, 4734, 5737, 3673, 3612, 4308, 4104, 3931, 5387, 2566, 3347, 3668, 2878, 2420, 2184, 1589, 2526, 1873, 1193, 4201, 3536, 332, 3694, 3509, 6591, 6229, 996 ], "c": [ 2770, 2521, 1760, 1879, 958, 3155, 1554, 1320, 1459, 882, 1184, 2092, 2562, 984, 2666, 1793, 691, 708, 851, 1182, 653, 1642, 1330, 131, 2589, 2178, 1085, 780, 643 ], "hovertemplate": "winner=Coderre
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}", "legendgroup": "winner=Coderre", "line": { "color": "#EF553B", "dash": "dot" }, "mode": "lines", "name": "winner=Coderre", "showlegend": true, "type": "scatterternary", "uid": "08b134b4-3249-460b-8266-a3ee18a636cb" }, { "a": [ 3024, 2675, 3578, 2849, 1894, 2282, 1636, 3262, 2648, 1266, 1908, 998, 1068, 690 ], "b": [ 2481, 2525, 2432, 2476, 1451, 1906, 1548, 1773, 2040, 1165, 1325, 631, 595, 518 ], "c": [ 1829, 1163, 3368, 2631, 754, 2169, 1503, 2653, 1437, 832, 1205, 258, 226, 224 ], "hovertemplate": "winner=Joly
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}", "legendgroup": "winner=Joly", "line": { "color": "#00cc96", "dash": "dash" }, "mode": "lines", "name": "winner=Joly", "showlegend": true, "type": "scatterternary", "uid": "80e37e81-8a1f-4c68-ad72-54b5238d9a37" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.line_ternary(election, a=\"Joly\", b=\"Coderre\", c=\"Bergeron\", color=\"winner\", line_dash=\"winner\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 3D Coordinates" ] }, { "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": [ { "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": "circle" }, "mode": "markers", "name": "winner=Bergeron, result=majority", "showlegend": true, "type": "scatter3d", "uid": "e1765587-c2ee-43d0-bb9e-57e90c06edd0", "x": [ 2514, 3044, 2815, 2788, 2782 ], "y": [ 1734, 1770, 1827, 2331, 2201 ], "z": [ 4782, 5933, 6408, 5748, 5819 ] }, { "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": "diamond" }, "mode": "markers", "name": "winner=Bergeron, result=plurality", "showlegend": true, "type": "scatter3d", "uid": "fe6c98c4-1bb3-4507-a69e-fdbc4e3fa082", "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=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": "circle" }, "mode": "markers", "name": "winner=Coderre, result=majority", "showlegend": true, "type": "scatter3d", "uid": "c393058a-2898-4e28-86c2-59d85be74cde", "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=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": "diamond" }, "mode": "markers", "name": "winner=Coderre, result=plurality", "showlegend": true, "type": "scatter3d", "uid": "f21c3b58-0895-4918-b9c9-4df170ada447", "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=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": "circle" }, "mode": "markers", "name": "winner=Joly, result=majority", "showlegend": true, "type": "scatter3d", "uid": "938f0aec-2cf0-4b7a-83bd-5a3db023e8f4", "x": [ 998, 1068 ], "y": [ 631, 595 ], "z": [ 258, 226 ] }, { "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": "diamond" }, "mode": "markers", "name": "winner=Joly, result=plurality", "showlegend": true, "type": "scatter3d", "uid": "519b11ca-0782-47ed-8ae6-df5ba979d3a1", "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 ] } ], "layout": { "height": 600, "legend": { "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+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": 37, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "hovertemplate": "winner=Bergeron
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}", "legendgroup": "winner=Bergeron", "line": { "color": "#636efa", "dash": "solid" }, "mode": "lines", "name": "winner=Bergeron", "showlegend": true, "type": "scatter3d", "uid": "4097844c-cbb2-4d2c-98f4-8755347c12a4", "x": [ 2514, 3044, 2316, 2873, 2815, 2788, 3234, 2271, 2782, 1578, 3139, 2675, 592, 419, 489 ], "y": [ 1734, 1770, 1455, 2979, 1827, 2331, 2670, 1347, 2201, 1644, 2746, 1546, 540, 446, 491 ], "z": [ 4782, 5933, 3599, 3430, 6408, 5748, 4962, 2827, 5819, 1950, 3250, 3679, 833, 465, 698 ] }, { "hovertemplate": "winner=Coderre
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}", "legendgroup": "winner=Coderre", "line": { "color": "#EF553B", "dash": "dot" }, "mode": "lines", "name": "winner=Coderre", "showlegend": true, "type": "scatter3d", "uid": "fe4be9cf-1426-4a15-9527-7b22f26f2f2a", "x": [ 2532, 2543, 3330, 2852, 1656, 2431, 2081, 3959, 2822, 1641, 1908, 2438, 3291, 1220, 2039, 1402, 1076, 1172, 1286, 1232, 1157, 3717, 2943, 326, 3454, 2338, 1435, 1051, 423 ], "y": [ 3348, 3252, 5456, 4734, 5737, 3673, 3612, 4308, 4104, 3931, 5387, 2566, 3347, 3668, 2878, 2420, 2184, 1589, 2526, 1873, 1193, 4201, 3536, 332, 3694, 3509, 6591, 6229, 996 ], "z": [ 2770, 2521, 1760, 1879, 958, 3155, 1554, 1320, 1459, 882, 1184, 2092, 2562, 984, 2666, 1793, 691, 708, 851, 1182, 653, 1642, 1330, 131, 2589, 2178, 1085, 780, 643 ] }, { "hovertemplate": "winner=Joly
Joly=%{x}
Coderre=%{y}
Bergeron=%{z}", "legendgroup": "winner=Joly", "line": { "color": "#00cc96", "dash": "dash" }, "mode": "lines", "name": "winner=Joly", "showlegend": true, "type": "scatter3d", "uid": "29253ad7-448e-4f68-ba05-53a9efb5fb5d", "x": [ 3024, 2675, 3578, 2849, 1894, 2282, 1636, 3262, 2648, 1266, 1908, 998, 1068, 690 ], "y": [ 2481, 2525, 2432, 2476, 1451, 1906, 1548, 1773, 2040, 1165, 1325, 631, 595, 518 ], "z": [ 1829, 1163, 3368, 2631, 754, 2169, 1503, 2653, 1437, 832, 1205, 258, 226, 224 ] } ], "layout": { "height": 600, "legend": { "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.line_3d(election, x=\"Joly\", y=\"Coderre\", z=\"Bergeron\", color=\"winner\", line_dash=\"winner\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Polar Coordinates" ] }, { "cell_type": "code", "execution_count": 38, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "hovertemplate": "strength=0-1
value=%{r}
direction=%{theta}", "legendgroup": "strength=0-1", "marker": { "color": "#febefe", "symbol": "circle" }, "mode": "markers", "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": "scatterpolar", "uid": "ca462918-3130-4598-b4da-8255b368ad86" }, { "hovertemplate": "strength=1-2
value=%{r}
direction=%{theta}", "legendgroup": "strength=1-2", "marker": { "color": "#fea5fd", "symbol": "diamond" }, "mode": "markers", "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": "scatterpolar", "uid": "b3790432-477a-4bd9-9188-c745f3759676" }, { "hovertemplate": "strength=2-3
value=%{r}
direction=%{theta}", "legendgroup": "strength=2-3", "marker": { "color": "#fe88fc", "symbol": "square" }, "mode": "markers", "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": "scatterpolar", "uid": "173ee415-976d-4937-b93a-1e4dd5e4232e" }, { "hovertemplate": "strength=3-4
value=%{r}
direction=%{theta}", "legendgroup": "strength=3-4", "marker": { "color": "#fc67fd", "symbol": "x" }, "mode": "markers", "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": "scatterpolar", "uid": "ca5e049e-7956-4ac4-af64-c38099796b23" }, { "hovertemplate": "strength=4-4
value=%{r}
direction=%{theta}", "legendgroup": "strength=4-4", "marker": { "color": "#f246fe", "symbol": "cross" }, "mode": "markers", "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": "scatterpolar", "uid": "93085a62-1d79-46c0-8b75-e20fe85e4af5" }, { "hovertemplate": "strength=4-5
value=%{r}
direction=%{theta}", "legendgroup": "strength=4-5", "marker": { "color": "#dd2bfd", "symbol": "circle" }, "mode": "markers", "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": "scatterpolar", "uid": "834ca347-cc00-4d26-8e92-2cda12a99ced" }, { "hovertemplate": "strength=5-6
value=%{r}
direction=%{theta}", "legendgroup": "strength=5-6", "marker": { "color": "#bf1cfd", "symbol": "diamond" }, "mode": "markers", "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": "scatterpolar", "uid": "670ff820-9179-494a-a6f7-4f583e0bb3ee" }, { "hovertemplate": "strength=6+
value=%{r}
direction=%{theta}", "legendgroup": "strength=6+", "marker": { "color": "#981cfd", "symbol": "square" }, "mode": "markers", "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": "scatterpolar", "uid": "0e2e4665-dbb1-45b5-93d3-5e580603a5bc" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter_polar(wind, r=\"value\", theta=\"direction\", color=\"strength\", symbol=\"strength\",\n", " color_discrete_sequence=px.colors.sequential.Plotly[-2::-1])" ] }, { "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": [ { "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": "b48ef08b-a6e4-427f-b94f-d1bb08e94bdc" }, { "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": "38e73265-6ee3-48cb-b36a-dc4722737074" }, { "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": "ad72dd2f-87d9-4bf9-bf4d-c4d8ecb1e1ed" }, { "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": "5eb6904d-eb45-481e-8ca9-cd84f591a1d4" }, { "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": "8ebce0ac-b143-44e6-8175-716cab8a4ba2" }, { "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": "1944323f-46c9-4ad6-b37c-1a7fc5b7bb02" }, { "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": "f01bb45d-ee28-43e1-882d-20b3a02c6b8b" }, { "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": "f6c1f40c-7d67-4cbf-b101-0f02015149fb" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "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": 40, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "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": "78b5e9eb-8d74-49be-b8cc-5264b8905a2e" }, { "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": "3a590836-efa4-44c6-a571-8a9c3ee57965" }, { "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": "699b44f6-409f-4fd2-bd59-8fb090be1c0a" }, { "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": "c405699e-ff36-455e-a4b9-3b1c688f9849" }, { "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": "47b8f7d7-2f04-4312-bdeb-37f21fac3293" }, { "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": "7ae4b4b1-235a-44cf-b04f-143526abde5c" }, { "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": "ced29cac-2833-426c-9764-6e59f9b9a042" }, { "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": "ea1577d6-895f-4104-859a-716c4698021e" } ], "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "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": "markdown", "metadata": {}, "source": [ "## Maps" ] }, { "cell_type": "code", "execution_count": 41, "metadata": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "hovertemplate": "car_hours=%{marker.size}
centroid_lat=%{lat}
centroid_lon=%{lon}
peak_hour=%{marker.color}", "lat": [ 45.47154850514618, 45.543865066744225, 45.4876395818664, 45.52286967122903, 45.45397130964701, 45.57312570194822, 45.53005389171565, 45.49919320522112, 45.55130065162754, 45.55380992033989, 45.47448282698679, 45.532495802891596, 45.56545642757568, 45.502981092849524, 45.567118568380785, 45.480026123563874, 45.44890318504734, 45.503030898950044, 45.609667861846745, 45.4783482754511, 45.51951352944332, 45.56903061932889, 45.536260211315536, 45.56857291481607, 45.546145398119506, 45.54488834188077, 45.54515565293561, 45.47817195218011, 45.58212955989256, 45.531215706332375, 45.55267826328372, 45.52915993898732, 45.524044185240705, 45.50851711032711, 45.48805868783629, 45.50689566111847, 45.57894266654677, 45.46892041666329, 45.5386616499238, 45.58530574012526, 45.46252493114867, 45.50814302347108, 45.552242186431826, 45.53306824136229, 45.529617524254725, 45.56172666348032, 45.458865207037036, 45.51827128926588, 45.46330588193452, 45.457225801995705, 45.58042126024095, 45.512201564512644, 45.548176804195634, 45.52792120774532, 45.589711174597085, 45.530662983670226, 45.49780367877612, 45.539789045655915, 45.529772867649726, 45.57635821927521, 45.592896967066345, 45.54282395560971, 45.451460528082634, 45.50017958704209, 45.559598360083115, 45.51405331206955, 45.52098513669111, 45.519690256787385, 45.47196677288637, 45.494032055366404, 45.57383095629989, 45.472705529178775, 45.582046254444144, 45.4810627259832, 45.60751580853944, 45.504296529501325, 45.459862270272, 45.550869209779385, 45.52515960693799, 45.50743686739271, 45.54836167081622, 45.53036120501041, 45.493394635897225, 45.496434131952114, 45.561211827035706, 45.555375279371255, 45.52524090241434, 45.542945623835706, 45.465546068371886, 45.51646059071525, 45.53280566796843, 45.47963265657448, 45.45591463685107, 45.5463084423235, 45.49848094816177, 45.52852537252346, 45.56579154043406, 45.53765718184979, 45.4745533286299, 45.527905156168394, 45.494951534596034, 45.46508822490786, 45.59654571636811, 45.49152352552419, 45.51792291961748, 45.46777843101408, 45.51117458455963, 45.54915899878871, 45.5357675600397, 45.490448481199515, 45.53823880401878, 45.527704105217296, 45.53477709192994, 45.48934750923581, 45.45408718820735, 45.472649739508654, 45.556594441979996, 45.48308997243082, 45.49619305656642, 45.55742769063361, 45.49971820106133, 45.48523078626532, 45.45863614550253, 45.50110763484297, 45.50643446059914, 45.52764608144713, 45.48910798882796, 45.52543292800497, 45.603264184302844, 45.47822467091599, 45.56923339719061, 45.46715978062781, 45.54384295424465, 45.479542279363784, 45.47510964560247, 45.5485837721771, 45.54415239549018, 45.610878926788864, 45.481028563111394, 45.527532942363884, 45.50713730344406, 45.54445300313406, 45.53978806387313, 45.53344000001958, 45.46746637549487, 45.53453717264379, 45.53658915333015, 45.534297593562314, 45.52410832338415, 45.472656262772894, 45.50559257327809, 45.51901074555018, 45.525401751306156, 45.54048050327387, 45.483355402004655, 45.54220224528534, 45.519876273318005, 45.55095552442233, 45.5167063995161, 45.53834507417609, 45.54348593525155, 45.499335181599186, 45.57484789346844, 45.47790745068288, 45.54237585056225, 45.46417997825539, 45.48897149612501, 45.570596118677166, 45.54954548151238, 45.56161463008111, 45.48012052331579, 45.54676970678617, 45.477285035079355, 45.58207387417318, 45.53903174724877, 45.51089062167478, 45.51923221924688, 45.55028382655888, 45.55467713142161, 45.509217063208105, 45.544939291949476, 45.551025537905744, 45.46427660479596, 45.53566818785226, 45.522231947774294, 45.538316245910146, 45.47689750165655, 45.55427699436828, 45.54393996853522, 45.54733066622103, 45.53172990090744, 45.52405372692176, 45.52567648569128, 45.455662882205324, 45.51492803793101, 45.528755936688825, 45.458936338747215, 45.52339721689325, 45.533806444889784, 45.516989138854456, 45.47417720458765, 45.52430638232657, 45.57221159337733, 45.53143218128847, 45.520293023239525, 45.5428521988577, 45.51177396205147, 45.47669980415977, 45.525274515446824, 45.52904526725249, 45.5458900689064, 45.541296532653945, 45.52641793678303, 45.506014494884326, 45.56249120965429, 45.518606229301774, 45.52203370353778, 45.524096796711646, 45.522477796467626, 45.53961066076051, 45.58895991968114, 45.54559560319732, 45.53747370045657, 45.57342046906779, 45.53557355419221, 45.50192689559106, 45.55114485440528, 45.53782697365083, 45.52940323053624, 45.553018953670026, 45.55058908283418, 45.49619083697144, 45.53891321189429, 45.53579818413978, 45.5313114537718, 45.52036705536745, 45.48313978581276, 45.552978247410785, 45.55430120710761, 45.57092278674685, 45.53361097030694, 45.522279670736744, 45.57044282123756, 45.486260242824926, 45.54717058947268, 45.546481863801525, 45.495523127814025, 45.52119924708915, 45.53256430507208 ], "legendgroup": "", "lon": [ -73.58868408217266, -73.56245583980697, -73.6427670307733, -73.59567725081808, -73.73894559925054, -73.5399023645427, -73.62803605045727, -73.56194373919256, -73.61171191446698, -73.57720679008476, -73.63054396371925, -73.5795698515998, -73.64201176723445, -73.62748995674825, -73.58439300639695, -73.58239204679344, -73.59297686556374, -73.5790295367978, -73.54023161013792, -73.57856784133362, -73.5793289407554, -73.52573081459545, -73.56209061086564, -73.5608434095333, -73.59114755541647, -73.63562160484223, -73.6172218179539, -73.5677884080307, -73.5214125066963, -73.60636943656155, -73.60186065688765, -73.61182738988052, -73.57255202228934, -73.56361361279801, -73.62175707085049, -73.63992985736495, -73.57226220211079, -73.61587858172172, -73.65684895574016, -73.556671023514, -73.591450603879, -73.61443790111136, -73.5567248443471, -73.58586652140238, -73.59016001500189, -73.61316030479037, -73.65393428057348, -73.53518132112848, -73.63201646596775, -73.64714572525091, -73.62450277147559, -73.62439363857662, -73.57230388575367, -73.61477370856916, -73.5124596370787, -73.61566624177722, -73.64552238789665, -73.5647843753964, -73.57271916651166, -73.55658769397527, -73.56283021327646, -73.53978288809766, -73.60077524293251, -73.57356239315693, -73.53735411019555, -73.6328226471968, -73.58596496170641, -73.56818790168714, -73.645100544613, -73.61062703452248, -73.60414320228709, -73.60760805947413, -73.5329739761722, -73.56087334817683, -73.51375636627016, -73.56520883274013, -73.58285531458277, -73.617846092248, -73.6047044738415, -73.57429268607511, -73.58539717879967, -73.62029730985503, -73.62504495384513, -73.5526723966116, -73.5902004112542, -73.5693084091279, -73.59981458158266, -73.62128455035952, -73.62067736676947, -73.55492741665877, -73.64048496482263, -73.62987341664497, -73.63946019785875, -73.60685622581383, -73.61967423595867, -73.6015303551942, -73.59801021780001, -73.58232714569509, -73.63752185951701, -73.5845589383217, -73.55953118048146, -73.65258509641738, -73.52593434063823, -73.63722045431894, -73.58980729398638, -73.63595141045859, -73.57114931189176, -73.63292319176229, -73.59674218487977, -73.64754965162766, -73.60597173479003, -73.57565350409223, -73.5728803879145, -73.57095543068031, -73.5871111898369, -73.58261896864329, -73.53214371066534, -73.63467979451553, -73.58337891052281, -73.60077343846366, -73.6544874970073, -73.61782510513464, -73.64348260405826, -73.63443884623426, -73.55280978474548, -73.59350797166334, -73.63146223580041, -73.62642522019199, -73.53716899543986, -73.6131691288042, -73.56970219899235, -73.64277864672296, -73.58224236729227, -73.54759113967883, -73.56317906950511, -73.57887887297544, -73.59658041602984, -73.53187026901544, -73.62384266869233, -73.58132388945316, -73.63043341873463, -73.54776346337367, -73.54278601036688, -73.5547199999811, -73.59078190259487, -73.59256240577943, -73.62157941242944, -73.6104176459635, -73.58731842223665, -73.62370107695055, -73.62277637402323, -73.57542843260613, -73.61022133725439, -73.63688048862373, -73.58250497434213, -73.61142929406647, -73.5829101943345, -73.59145464281356, -73.5785555677143, -73.57053862449273, -73.57027313720633, -73.62608825396849, -73.56353923367821, -73.62640937405116, -73.55538289355314, -73.62592082119164, -73.62783793313959, -73.5282813740298, -73.5671504589007, -73.57406730167699, -73.57250207253962, -73.53904284095108, -73.58122340486779, -73.5482689398773, -73.60093377104954, -73.57633721593862, -73.57244658989525, -73.60783357287939, -73.54632265433347, -73.61862500763354, -73.62750959017946, -73.56330138226609, -73.64748824071867, -73.56861361257508, -73.60012669507964, -73.57466650421921, -73.58830635134413, -73.62166601126063, -73.57394431922157, -73.60149624886525, -73.57648513074571, -73.5653588020603, -73.59003684764208, -73.64576984962405, -73.5716441021712, -73.57904510571099, -73.5963917190357, -73.60671288562884, -73.58376257412168, -73.58364027226555, -73.59403776813001, -73.58198744370928, -73.54796924219626, -73.56470160854694, -73.59161297526235, -73.60552201275354, -73.63749469512531, -73.61960578900425, -73.5938625905676, -73.56435515803537, -73.613329142374, -73.58761174867594, -73.59653658066381, -73.62601031881216, -73.58319715388312, -73.59475241426873, -73.57113021855815, -73.57841797764475, -73.57478446870937, -73.62661841692122, -73.53758992480975, -73.5672399814485, -73.57729937169172, -73.6327727768197, -73.57917172211978, -73.62989603799815, -73.53770269990457, -73.61519170037559, -73.58716197505838, -73.58388794985183, -73.57424335824136, -73.62436735080054, -73.57920139689999, -73.58664104188827, -73.58372215024325, -73.59761235604634, -73.57653648384526, -73.59484359129024, -73.56162491267922, -73.57715490720365, -73.60106645724453, -73.5684337774366, -73.52518192920604, -73.63860168141315, -73.55625786283633, -73.5749389146122, -73.62772501663683, -73.581789228748, -73.5675347056023 ], "marker": { "cmax": 23, "cmin": 0, "color": [ 2, 23, 20, 23, 19, 1, 18, 14, 2, 1, 2, 3, 21, 11, 1, 5, 6, 15, 0, 14, 2, 23, 3, 20, 3, 2, 5, 3, 9, 5, 10, 11, 3, 13, 20, 13, 9, 4, 11, 17, 1, 16, 10, 19, 5, 10, 16, 20, 2, 20, 8, 3, 2, 12, 1, 21, 20, 7, 3, 19, 7, 0, 19, 11, 23, 0, 1, 21, 20, 5, 0, 11, 20, 9, 0, 13, 4, 3, 3, 13, 4, 11, 20, 13, 19, 2, 13, 4, 23, 15, 9, 4, 3, 8, 11, 11, 5, 2, 1, 2, 16, 18, 0, 18, 4, 4, 12, 7, 4, 2, 3, 2, 2, 12, 4, 1, 5, 10, 15, 21, 20, 0, 23, 12, 14, 13, 4, 20, 19, 2, 20, 6, 9, 12, 4, 2, 3, 20, 6, 3, 4, 5, 6, 5, 21, 5, 18, 5, 2, 20, 12, 1, 4, 21, 16, 7, 3, 5, 16, 1, 2, 2, 9, 4, 5, 5, 5, 0, 2, 2, 14, 3, 10, 21, 2, 15, 21, 3, 4, 5, 3, 2, 4, 3, 3, 3, 2, 17, 2, 5, 1, 22, 0, 19, 11, 2, 1, 21, 1, 22, 4, 10, 20, 2, 2, 3, 20, 12, 11, 2, 3, 3, 12, 8, 3, 20, 3, 15, 20, 3, 20, 1, 5, 0, 2, 5, 3, 5, 18, 8, 1, 13, 2, 2, 3, 0, 23, 5, 2, 10, 11, 21, 7, 18, 3, 2, 8, 17, 5 ], "colorbar": { "title": { "text": "peak_hour" } }, "colorscale": [ [ 0, "#000000" ], [ 0.0625, "#001f4d" ], [ 0.125, "#003786" ], [ 0.1875, "#0e58a8" ], [ 0.25, "#217eb8" ], [ 0.3125, "#30a4ca" ], [ 0.375, "#54c8df" ], [ 0.4375, "#9be4ef" ], [ 0.5, "#e1e9d1" ], [ 0.5625, "#f3d573" ], [ 0.625, "#e7b000" ], [ 0.6875, "#da8200" ], [ 0.75, "#c65400" ], [ 0.8125, "#ac2301" ], [ 0.875, "#820000" ], [ 0.9375, "#4c0000" ], [ 1, "#040100" ] ], "showscale": true, "size": [ 1772.7499999995052, 986.3333333335023, 354.74999999998914, 560.166666666642, 2836.666666667356, 1022.7500000001857, 835.7500000001005, 1888.3333333327332, 1030.75000000018, 1841.1666666661097, 1966.166666665996, 1532.9999999997233, 834.1666666667667, 289.0000000000041, 273.58333333334093, 594.8333333333244, 1020.9166666668516, 1428.4999999998183, 670.7500000000256, 489.4999999999585, 1426.3333333331534, 422.49999999997374, 1624.7499999996398, 732.7500000000537, 1969.6666666659928, 1657.9999999996094, 665.5833333333567, 805.08333333342, 217.75000000000728, 1332.583333333239, 630.5000000000073, 559.9999999999752, 456.16666666663286, 1185.8333333333726, 1112.6666666667722, 1016.5833333335162, 1367.249999999874, 1767.9999999995096, 2291.9999999996985, 552.8333333333053, 1397.9166666665128, 997.7500000001744, 926.1666666668083, 323.166666666663, 833.0833333334327, 1394.4166666665162, 601.7499999999943, 1724.4999999995493, 1061.5833333334854, 325.7499999999958, 1271.5833333332946, 1951.0833333326764, 961.4166666668243, 507.83333333328767, 679.6666666666962, 734.833333333388, 1057.4166666668223, 262.8333333333434, 1302.7499999999327, 345.8333333333245, 1543.3333333330472, 630.7500000000074, 1164.5833333333915, 1676.9999999995925, 1282.5833333332844, 1019.0000000001841, 1719.1666666662204, 681.5000000000305, 287.66666666667106, 1559.333333333033, 627.4166666666725, 1863.7499999994227, 867.2500000001149, 2413.4999999999195, 1322.3333333332482, 3274.000000001485, 1558.9166666663666, 1902.416666666054, 1609.166666666321, 2773.250000000574, 1940.6666666660192, 1597.4999999996646, 162.500000000001, 1929.0833333326966, 847.0000000001057, 1522.7499999997324, 635.3333333333427, 2057.166666665938, 845.9166666667719, 2022.9166666659446, 1598.7499999996635, 566.8333333333118, 1714.1666666662252, 680.50000000003, 1043.2500000001687, 673.3333333333601, 1105.750000000112, 1382.9999999998597, 531.4999999999623, 635.0000000000092, 2376.833333333186, 462.4166666666312, 1315.6666666665876, 504.4166666666218, 741.2500000000576, 867.3333333334482, 875.5833333334522, 2188.1666666661763, 1172.8333333333842, 332.4999999999942, 1351.749999999888, 966.25000000016, 981.7500000001669, 1714.3333333328915, 813.8333333334241, 863.7500000001132, 1202.1666666666906, 665.0833333333562, 2433.83333333329, 1189.0000000000364, 2298.5833333330443, 1414.9166666664971, 476.49999999996146, 766.3333333334024, 2338.2499999997826, 1170.500000000053, 716.0000000000463, 1228.083333333334, 511.8333333332868, 1357.3333333332166, 1144.0833333334106, 292.5000000000033, 1069.0833333334783, 1552.333333333039, 1029.9166666668477, 2752.8333333338696, 2077.1666666659744, 1167.8333333333887, 658.2500000000199, 741.7500000000579, 520.4166666666239, 2127.4999999993993, 1093.2500000001232, 1590.4166666663375, 696.4166666667039, 1286.8333333332805, 1489.1666666664298, 1796.91666666615, 1298.2499999999366, 921.5833333334731, 605.5833333333293, 1245.1666666666515, 1261.9166666666365, 1705.4999999995666, 1363.999999999877, 790.9166666667468, 1067.7500000001464, 1320.4999999999166, 1317.416666666586, 1404.3333333331734, 648.6666666666823, 309.7499999999994, 484.99999999995947, 439.33333333330324, 814.1666666667575, 1264.4166666666342, 655.583333333352, 342.66666666665856, 626.5000000000055, 1059.9166666668202, 321.66666666666333, 676.4166666666947, 201.91666666667214, 1223.916666666671, 1687.4166666662493, 1112.583333333439, 466.7499999999637, 785.0833333334109, 1800.833333332813, 1364.5833333332098, 2299.749999999713, 1038.7500000001728, 722.8333333333826, 1706.999999999565, 1231.7499999999973, 967.833333333494, 1386.5833333331898, 192.41666666667103, 291.3333333333369, 1370.9166666665374, 605.4999999999959, 194.0833333333379, 538.7499999999656, 33.24999999999985, 1792.749999999487, 737.0833333333891, 1153.7500000000682, 886.0000000001235, 955.6666666668217, 1071.2500000001432, 748.2500000000607, 1487.8333333330975, 835.7500000001005, 889.0000000001248, 1337.4166666665676, 1137.3333333334165, 966.25000000016, 1034.0000000001774, 1499.6666666664205, 503.58333333328864, 894.9166666667943, 1749.4166666661934, 1879.749999999408, 635.1666666666761, 777.0833333334073, 1202.9166666666902, 560.4999999999753, 790.3333333334133, 797.5833333334166, 1156.5000000000655, 1462.9166666664535, 1168.0833333333885, 456.24999999996606, 1019.7500000001843, 1167.1666666667227, 478.0833333332944, 1599.7499999996626, 1578.0833333330154, 494.49999999995737, 1705.1666666662336, 947.6666666668183, 114.49999999999784, 759.4166666667327, 1567.6666666663587, 547.9999999999698, 978.3333333334987, 673.08333333336, 1354.666666666552, 1355.1666666665515, 898.0000000001289, 701.6666666667062, 873.1666666667842, 235.41666666667598, 998.6666666668415, 951.4166666668201, 795.4166666667488, 425.749999999973, 1044.8333333335006, 694.9166666667032 ], "sizemode": "area", "sizeref": 14.551111111117711 }, "mode": "markers", "name": " ", "showlegend": false, "type": "scattermapbox", "uid": "7c9dd6a6-2695-4634-9363-1322abe10094" } ], "layout": { "height": 600, "legend": { "tracegroupgap": 0 }, "mapbox": { "accesstoken": "pk.eyJ1Ijoibmljb2xhc2tydWNodGVuIiwiYSI6IjhaTGpSVkEifQ.eHpmuBO21_JYVm0D5OeAdQ", "center": { "lat": 45.52341668343996, "lon": -73.59183434290806 }, "zoom": 10 }, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "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": 42, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "hovertemplate": "peak_hour=0
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.609667861846745, 45.54282395560971, 45.51405331206955, 45.57383095629989, 45.60751580853944, 45.59654571636811, 45.48523078626532, 45.570596118677166, 45.52567648569128, 45.57342046906779, 45.52036705536745 ], "legendgroup": "peak_hour=0", "line": { "color": "#636efa" }, "lon": [ -73.54023161013792, -73.53978288809766, -73.6328226471968, -73.60414320228709, -73.51375636627016, -73.52593434063823, -73.61782510513464, -73.5282813740298, -73.59003684764208, -73.6327727768197, -73.59761235604634 ], "mode": "lines", "name": "peak_hour=0", "showlegend": true, "type": "scattermapbox", "uid": "0f9aaf46-19c8-442f-9f93-942b2d7bd93d" }, { "hovertemplate": "peak_hour=1
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.57312570194822, 45.55380992033989, 45.567118568380785, 45.46252493114867, 45.589711174597085, 45.52098513669111, 45.4745533286299, 45.472649739508654, 45.51901074555018, 45.53834507417609, 45.53172990090744, 45.458936338747215, 45.533806444889784, 45.54559560319732, 45.55058908283418 ], "legendgroup": "peak_hour=1", "line": { "color": "#EF553B" }, "lon": [ -73.5399023645427, -73.57720679008476, -73.58439300639695, -73.591450603879, -73.5124596370787, -73.58596496170641, -73.63752185951701, -73.58261896864329, -73.57542843260613, -73.57053862449273, -73.57648513074571, -73.5963917190357, -73.58376257412168, -73.5672399814485, -73.57424335824136 ], "mode": "lines", "name": "peak_hour=1", "showlegend": true, "type": "scattermapbox", "uid": "05a7de59-f7b8-4610-97a9-76ab3c8224e3" }, { "hovertemplate": "peak_hour=2
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.47154850514618, 45.55130065162754, 45.47448282698679, 45.51951352944332, 45.54488834188077, 45.46330588193452, 45.548176804195634, 45.555375279371255, 45.53765718184979, 45.527905156168394, 45.490448481199515, 45.527704105217296, 45.53477709192994, 45.47822467091599, 45.5485837721771, 45.52410832338415, 45.54348593525155, 45.499335181599186, 45.54954548151238, 45.56161463008111, 45.53903174724877, 45.551025537905744, 45.47689750165655, 45.54393996853522, 45.528755936688825, 45.53143218128847, 45.520293023239525, 45.52904526725249, 45.53557355419221, 45.53891321189429, 45.53579818413978, 45.55430120710761, 45.546481863801525 ], "legendgroup": "peak_hour=2", "line": { "color": "#00cc96" }, "lon": [ -73.58868408217266, -73.61171191446698, -73.63054396371925, -73.5793289407554, -73.63562160484223, -73.63201646596775, -73.57230388575367, -73.5693084091279, -73.58232714569509, -73.5845589383217, -73.64754965162766, -73.57565350409223, -73.5728803879145, -73.6131691288042, -73.57887887297544, -73.58731842223665, -73.57027313720633, -73.62608825396849, -73.5671504589007, -73.57406730167699, -73.60093377104954, -73.56330138226609, -73.58830635134413, -73.57394431922157, -73.57904510571099, -73.56470160854694, -73.59161297526235, -73.56435515803537, -73.57917172211978, -73.57920139689999, -73.58664104188827, -73.56162491267922, -73.5749389146122 ], "mode": "lines", "name": "peak_hour=2", "showlegend": true, "type": "scattermapbox", "uid": "6e7d403e-3e4c-41f0-adaf-84ec52ea0fd4" }, { "hovertemplate": "peak_hour=3
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.532495802891596, 45.536260211315536, 45.546145398119506, 45.47817195218011, 45.524044185240705, 45.512201564512644, 45.529772867649726, 45.550869209779385, 45.52515960693799, 45.45591463685107, 45.53823880401878, 45.54415239549018, 45.527532942363884, 45.519876273318005, 45.54676970678617, 45.55028382655888, 45.544939291949476, 45.53566818785226, 45.522231947774294, 45.538316245910146, 45.5428521988577, 45.5458900689064, 45.541296532653945, 45.56249120965429, 45.52203370353778, 45.53961066076051, 45.55114485440528, 45.5313114537718, 45.54717058947268 ], "legendgroup": "peak_hour=3", "line": { "color": "#ab63fa" }, "lon": [ -73.5795698515998, -73.56209061086564, -73.59114755541647, -73.5677884080307, -73.57255202228934, -73.62439363857662, -73.57271916651166, -73.617846092248, -73.6047044738415, -73.63946019785875, -73.60597173479003, -73.59658041602984, -73.58132388945316, -73.5829101943345, -73.53904284095108, -73.60783357287939, -73.62750959017946, -73.56861361257508, -73.60012669507964, -73.57466650421921, -73.60552201275354, -73.613329142374, -73.58761174867594, -73.58319715388312, -73.57113021855815, -73.62661841692122, -73.53770269990457, -73.58372215024325, -73.55625786283633 ], "mode": "lines", "name": "peak_hour=3", "showlegend": true, "type": "scattermapbox", "uid": "cc3dbc08-3df5-4bce-86a5-93bd454b1464" }, { "hovertemplate": "peak_hour=4
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.46892041666329, 45.459862270272, 45.54836167081622, 45.542945623835706, 45.47963265657448, 45.51792291961748, 45.46777843101408, 45.5357675600397, 45.45408718820735, 45.48910798882796, 45.47510964560247, 45.50713730344406, 45.525401751306156, 45.47790745068288, 45.55467713142161, 45.46427660479596, 45.47417720458765 ], "legendgroup": "peak_hour=4", "line": { "color": "#19d3f3" }, "lon": [ -73.61587858172172, -73.58285531458277, -73.58539717879967, -73.62128455035952, -73.62987341664497, -73.58980729398638, -73.63595141045859, -73.59674218487977, -73.5871111898369, -73.63146223580041, -73.56317906950511, -73.63043341873463, -73.61022133725439, -73.62640937405116, -73.54632265433347, -73.64748824071867, -73.59403776813001 ], "mode": "lines", "name": "peak_hour=4", "showlegend": true, "type": "scattermapbox", "uid": "3da05d94-2ab9-4337-ba98-26fdc7722666" }, { "hovertemplate": "peak_hour=5
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.480026123563874, 45.54515565293561, 45.531215706332375, 45.529617524254725, 45.494032055366404, 45.56579154043406, 45.556594441979996, 45.54445300313406, 45.53344000001958, 45.53453717264379, 45.534297593562314, 45.55095552442233, 45.54237585056225, 45.46417997825539, 45.48897149612501, 45.509217063208105, 45.54733066622103, 45.53747370045657, 45.50192689559106, 45.53782697365083, 45.552978247410785, 45.53256430507208 ], "legendgroup": "peak_hour=5", "line": { "color": "#e763fa" }, "lon": [ -73.58239204679344, -73.6172218179539, -73.60636943656155, -73.59016001500189, -73.61062703452248, -73.59801021780001, -73.53214371066534, -73.54776346337367, -73.5547199999811, -73.59256240577943, -73.6104176459635, -73.59145464281356, -73.55538289355314, -73.62592082119164, -73.62783793313959, -73.61862500763354, -73.60149624886525, -73.57729937169172, -73.62989603799815, -73.61519170037559, -73.59484359129024, -73.5675347056023 ], "mode": "lines", "name": "peak_hour=5", "showlegend": true, "type": "scattermapbox", "uid": "725c55da-06e7-4dd2-ad36-9fc507913e39" }, { "hovertemplate": "peak_hour=6
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.44890318504734, 45.46715978062781, 45.481028563111394, 45.53978806387313 ], "legendgroup": "peak_hour=6", "line": { "color": "#fecb52" }, "lon": [ -73.59297686556374, -73.64277864672296, -73.62384266869233, -73.54278601036688 ], "mode": "lines", "name": "peak_hour=6", "showlegend": true, "type": "scattermapbox", "uid": "0c1c9e8e-8704-49f5-a8f3-c2b619e97f2a" }, { "hovertemplate": "peak_hour=7
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.539789045655915, 45.592896967066345, 45.54915899878871, 45.54220224528534, 45.57044282123756 ], "legendgroup": "peak_hour=7", "line": { "color": "#ffa15a" }, "lon": [ -73.5647843753964, -73.56283021327646, -73.63292319176229, -73.61142929406647, -73.52518192920604 ], "mode": "lines", "name": "peak_hour=7", "showlegend": true, "type": "scattermapbox", "uid": "d489f752-e4d6-4e17-b7a2-9a347ed5f30f" }, { "hovertemplate": "peak_hour=8
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.58042126024095, 45.5463084423235, 45.506014494884326, 45.553018953670026, 45.495523127814025 ], "legendgroup": "peak_hour=8", "line": { "color": "#ff6692" }, "lon": [ -73.62450277147559, -73.60685622581383, -73.62601031881216, -73.58388794985183, -73.62772501663683 ], "mode": "lines", "name": "peak_hour=8", "showlegend": true, "type": "scattermapbox", "uid": "d08b2781-91b0-45fa-bb32-7b977092acef" }, { "hovertemplate": "peak_hour=9
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.58212955989256, 45.57894266654677, 45.4810627259832, 45.53280566796843, 45.54384295424465, 45.57484789346844 ], "legendgroup": "peak_hour=9", "line": { "color": "#b6e880" }, "lon": [ -73.5214125066963, -73.57226220211079, -73.56087334817683, -73.64048496482263, -73.58224236729227, -73.56353923367821 ], "mode": "lines", "name": "peak_hour=9", "showlegend": true, "type": "scattermapbox", "uid": "a9a258cb-4f1e-4366-a6aa-57142acf2cfc" }, { "hovertemplate": "peak_hour=10
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.55267826328372, 45.552242186431826, 45.56172666348032, 45.48308997243082, 45.477285035079355, 45.52430638232657, 45.57092278674685 ], "legendgroup": "peak_hour=10", "line": { "color": "#636efa" }, "lon": [ -73.60186065688765, -73.5567248443471, -73.61316030479037, -73.63467979451553, -73.58122340486779, -73.58198744370928, -73.57715490720365 ], "mode": "lines", "name": "peak_hour=10", "showlegend": true, "type": "scattermapbox", "uid": "ca8b3bd1-1d47-48d9-bfec-4c8807f240fd" }, { "hovertemplate": "peak_hour=11
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.502981092849524, 45.52915993898732, 45.5386616499238, 45.50017958704209, 45.472705529178775, 45.53036120501041, 45.49848094816177, 45.52852537252346, 45.51492803793101, 45.525274515446824, 45.53361097030694 ], "legendgroup": "peak_hour=11", "line": { "color": "#EF553B" }, "lon": [ -73.62748995674825, -73.61182738988052, -73.65684895574016, -73.57356239315693, -73.60760805947413, -73.62029730985503, -73.61967423595867, -73.6015303551942, -73.5716441021712, -73.5938625905676, -73.60106645724453 ], "mode": "lines", "name": "peak_hour=11", "showlegend": true, "type": "scattermapbox", "uid": "99148482-7750-4c19-b631-2753744bc01b" }, { "hovertemplate": "peak_hour=12
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.52792120774532, 45.51117458455963, 45.48934750923581, 45.50110763484297, 45.479542279363784, 45.50559257327809, 45.47669980415977, 45.52641793678303 ], "legendgroup": "peak_hour=12", "line": { "color": "#00cc96" }, "lon": [ -73.61477370856916, -73.57114931189176, -73.57095543068031, -73.63443884623426, -73.54759113967883, -73.62277637402323, -73.61960578900425, -73.59653658066381 ], "mode": "lines", "name": "peak_hour=12", "showlegend": true, "type": "scattermapbox", "uid": "57818d7a-2ba6-4a6f-bbaf-e8c633714e79" }, { "hovertemplate": "peak_hour=13
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.50851711032711, 45.50689566111847, 45.504296529501325, 45.50743686739271, 45.496434131952114, 45.52524090241434, 45.52764608144713, 45.49619083697144 ], "legendgroup": "peak_hour=13", "line": { "color": "#ab63fa" }, "lon": [ -73.56361361279801, -73.63992985736495, -73.56520883274013, -73.57429268607511, -73.5526723966116, -73.59981458158266, -73.59350797166334, -73.62436735080054 ], "mode": "lines", "name": "peak_hour=13", "showlegend": true, "type": "scattermapbox", "uid": "af4fffa2-e3de-4ad3-bbe2-48624750ce8e" }, { "hovertemplate": "peak_hour=14
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.49919320522112, 45.4783482754511, 45.50643446059914, 45.48012052331579 ], "legendgroup": "peak_hour=14", "line": { "color": "#19d3f3" }, "lon": [ -73.56194373919256, -73.57856784133362, -73.55280978474548, -73.57250207253962 ], "mode": "lines", "name": "peak_hour=14", "showlegend": true, "type": "scattermapbox", "uid": "ecc40a2f-9099-4dbe-a9c8-1cceb10a8e9d" }, { "hovertemplate": "peak_hour=15
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.503030898950044, 45.51646059071525, 45.49619305656642, 45.51089062167478, 45.524096796711646 ], "legendgroup": "peak_hour=15", "line": { "color": "#e763fa" }, "lon": [ -73.5790295367978, -73.55492741665877, -73.58337891052281, -73.57633721593862, -73.57841797764475 ], "mode": "lines", "name": "peak_hour=15", "showlegend": true, "type": "scattermapbox", "uid": "c0b2aaff-e18f-4c9c-b6ca-4fabc94b1d32" }, { "hovertemplate": "peak_hour=16
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.50814302347108, 45.458865207037036, 45.494951534596034, 45.483355402004655, 45.5167063995161 ], "legendgroup": "peak_hour=16", "line": { "color": "#fecb52" }, "lon": [ -73.61443790111136, -73.65393428057348, -73.55953118048146, -73.58250497434213, -73.5785555677143 ], "mode": "lines", "name": "peak_hour=16", "showlegend": true, "type": "scattermapbox", "uid": "4d8a0a41-1f44-4a32-b308-211e44c85bdd" }, { "hovertemplate": "peak_hour=17
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.58530574012526, 45.55427699436828, 45.52119924708915 ], "legendgroup": "peak_hour=17", "line": { "color": "#ffa15a" }, "lon": [ -73.556671023514, -73.62166601126063, -73.581789228748 ], "mode": "lines", "name": "peak_hour=17", "showlegend": true, "type": "scattermapbox", "uid": "b1b77fd1-4dcd-4962-800b-fb96c7bfb874" }, { "hovertemplate": "peak_hour=18
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.53005389171565, 45.46508822490786, 45.49152352552419, 45.53658915333015, 45.52940323053624, 45.486260242824926 ], "legendgroup": "peak_hour=18", "line": { "color": "#ff6692" }, "lon": [ -73.62803605045727, -73.65258509641738, -73.63722045431894, -73.62157941242944, -73.58716197505838, -73.63860168141315 ], "mode": "lines", "name": "peak_hour=18", "showlegend": true, "type": "scattermapbox", "uid": "ca253df8-e331-4b74-9031-3de9dc631838" }, { "hovertemplate": "peak_hour=19
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.45397130964701, 45.53306824136229, 45.57635821927521, 45.451460528082634, 45.561211827035706, 45.603264184302844, 45.455662882205324 ], "legendgroup": "peak_hour=19", "line": { "color": "#b6e880" }, "lon": [ -73.73894559925054, -73.58586652140238, -73.55658769397527, -73.60077524293251, -73.5902004112542, -73.53716899543986, -73.64576984962405 ], "mode": "lines", "name": "peak_hour=19", "showlegend": true, "type": "scattermapbox", "uid": "8f8ce922-3488-4b11-b9e2-a338c57a5086" }, { "hovertemplate": "peak_hour=20
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.4876395818664, 45.56857291481607, 45.48805868783629, 45.51827128926588, 45.457225801995705, 45.49780367877612, 45.47196677288637, 45.582046254444144, 45.493394635897225, 45.49971820106133, 45.52543292800497, 45.56923339719061, 45.610878926788864, 45.472656262772894, 45.57221159337733, 45.51177396205147, 45.518606229301774, 45.522477796467626, 45.58895991968114 ], "legendgroup": "peak_hour=20", "line": { "color": "#636efa" }, "lon": [ -73.6427670307733, -73.5608434095333, -73.62175707085049, -73.53518132112848, -73.64714572525091, -73.64552238789665, -73.645100544613, -73.5329739761722, -73.62504495384513, -73.6544874970073, -73.62642522019199, -73.56970219899235, -73.53187026901544, -73.62370107695055, -73.54796924219626, -73.63749469512531, -73.59475241426873, -73.57478446870937, -73.53758992480975 ], "mode": "lines", "name": "peak_hour=20", "showlegend": true, "type": "scattermapbox", "uid": "299e3c73-9886-49e1-980b-098a053a5c79" }, { "hovertemplate": "peak_hour=21
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.56545642757568, 45.530662983670226, 45.519690256787385, 45.55742769063361, 45.46746637549487, 45.54048050327387, 45.58207387417318, 45.51923221924688, 45.52339721689325, 45.522279670736744 ], "legendgroup": "peak_hour=21", "line": { "color": "#EF553B" }, "lon": [ -73.64201176723445, -73.61566624177722, -73.56818790168714, -73.60077343846366, -73.59078190259487, -73.63688048862373, -73.5482689398773, -73.57244658989525, -73.60671288562884, -73.5684337774366 ], "mode": "lines", "name": "peak_hour=21", "showlegend": true, "type": "scattermapbox", "uid": "82bc49cb-2d7b-45d8-acb3-4f08b41df114" }, { "hovertemplate": "peak_hour=22
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.52405372692176, 45.516989138854456 ], "legendgroup": "peak_hour=22", "line": { "color": "#00cc96" }, "lon": [ -73.5653588020603, -73.58364027226555 ], "mode": "lines", "name": "peak_hour=22", "showlegend": true, "type": "scattermapbox", "uid": "29f065cb-8c29-49d8-9559-1bdf27e440bd" }, { "hovertemplate": "peak_hour=23
centroid_lat=%{lat}
centroid_lon=%{lon}", "lat": [ 45.543865066744225, 45.52286967122903, 45.56903061932889, 45.559598360083115, 45.465546068371886, 45.45863614550253, 45.48313978581276 ], "legendgroup": "peak_hour=23", "line": { "color": "#ab63fa" }, "lon": [ -73.56245583980697, -73.59567725081808, -73.52573081459545, -73.53735411019555, -73.62067736676947, -73.64348260405826, -73.57653648384526 ], "mode": "lines", "name": "peak_hour=23", "showlegend": true, "type": "scattermapbox", "uid": "6ec749fe-aeb2-414f-9943-afbf8c609842" } ], "layout": { "height": 600, "legend": { "tracegroupgap": 0 }, "mapbox": { "accesstoken": "pk.eyJ1Ijoibmljb2xhc2tydWNodGVuIiwiYSI6IjhaTGpSVkEifQ.eHpmuBO21_JYVm0D5OeAdQ", "center": { "lat": 45.52341668343996, "lon": -73.59183434290806 }, "zoom": 8 }, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.set_mapbox_access_token(open(\".mapbox_token\").read())\n", "px.line_mapbox(carshare, lat=\"centroid_lat\", lon=\"centroid_lon\", color=\"peak_hour\")" ] }, { "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": [ { "hovertemplate": "%{hovertext}

year=1952
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo", "uid": "e025e24f-7623-4131-8295-251f433ba138" }, { "hovertemplate": "%{hovertext}

year=1952
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo", "uid": "f5a79e58-5215-45bb-9c9b-a548923bacc8" }, { "hovertemplate": "%{hovertext}

year=1952
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo", "uid": "96184175-8bc8-4fd2-a08b-a440cfa3d01a" }, { "hovertemplate": "%{hovertext}

year=1952
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo", "uid": "252343fa-7f96-40e3-a19d-d527604221e6" }, { "hovertemplate": "%{hovertext}

year=1952
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 8691212, 1994794 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo", "uid": "4d212cd8-8299-45e8-8017-ab422b676cbf" } ], "frames": [ { "data": [ { "hovertemplate": "%{hovertext}

year=1952
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1952
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1952
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1952
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1952
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 8691212, 1994794 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "1952" }, { "data": [ { "hovertemplate": "%{hovertext}

year=1957
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1957
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1957
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1957
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1957
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 9712569, 2229407 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "1957" }, { "data": [ { "hovertemplate": "%{hovertext}

year=1962
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1962
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1962
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1962
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1962
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 10794968, 2488550 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "1962" }, { "data": [ { "hovertemplate": "%{hovertext}

year=1967
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1967
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1967
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1967
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1967
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 11872264, 2728150 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "1967" }, { "data": [ { "hovertemplate": "%{hovertext}

year=1972
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1972
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1972
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1972
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1972
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 13177000, 2929100 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "1972" }, { "data": [ { "hovertemplate": "%{hovertext}

year=1977
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1977
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1977
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1977
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1977
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 14074100, 3164900 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "1977" }, { "data": [ { "hovertemplate": "%{hovertext}

year=1982
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1982
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1982
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1982
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1982
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 15184200, 3210650 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "1982" }, { "data": [ { "hovertemplate": "%{hovertext}

year=1987
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1987
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1987
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1987
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1987
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 16257249, 3317166 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "1987" }, { "data": [ { "hovertemplate": "%{hovertext}

year=1992
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1992
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1992
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1992
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1992
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 17481977, 3437674 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "1992" }, { "data": [ { "hovertemplate": "%{hovertext}

year=1997
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1997
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1997
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1997
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=1997
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 18565243, 3676187 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "1997" }, { "data": [ { "hovertemplate": "%{hovertext}

year=2002
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=2002
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=2002
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=2002
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=2002
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 19546792, 3908037 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "2002" }, { "data": [ { "hovertemplate": "%{hovertext}

year=2007
continent=Africa
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "marker": { "color": "#636efa", "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": 3296707.74 }, "name": "continent=Africa", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=2007
continent=Americas
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "marker": { "color": "#EF553B", "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": 3296707.74 }, "name": "continent=Americas", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=2007
continent=Asia
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "marker": { "color": "#00cc96", "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": 3296707.74 }, "name": "continent=Asia", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=2007
continent=Europe
pop=%{marker.size}
iso_alpha=%{location}", "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", "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "marker": { "color": "#ab63fa", "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": 3296707.74 }, "name": "continent=Europe", "showlegend": true, "type": "scattergeo" }, { "hovertemplate": "%{hovertext}

year=2007
continent=Oceania
pop=%{marker.size}
iso_alpha=%{location}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "continent=Oceania", "locations": [ "AUS", "NZL" ], "marker": { "color": "#19d3f3", "size": [ 20434176, 4115771 ], "sizemode": "area", "sizeref": 3296707.74 }, "name": "continent=Oceania", "showlegend": true, "type": "scattergeo" } ], "name": "2007" } ], "layout": { "geo": { "center": {}, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter_geo(gapminder, locations=\"iso_alpha\", color=\"continent\", hover_name=\"country\", size=\"pop\", \n", " animation_frame=\"year\", projection=\"natural earth\")" ] }, { "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": [ { "hovertemplate": "continent=Africa
iso_alpha=%{location}", "legendgroup": "continent=Africa", "line": { "color": "#636efa", "dash": "solid" }, "locations": [ "DZA", "AGO", "BEN", "BWA", "BFA", "BDI", "CMR", "CAF", "TCD", "COM", "COD", "COG", "CIV", "DJI", "EGY", "GNQ", "ERI", "ETH", "GAB", "GMB", "GHA", "GIN", "GNB", "KEN", "LSO", "LBR", "LBY", "MDG", "MWI", "MLI", "MRT", "MUS", "MAR", "MOZ", "NAM", "NER", "NGA", "REU", "RWA", "STP", "SEN", "SLE", "SOM", "ZAF", "SDN", "SWZ", "TZA", "TGO", "TUN", "UGA", "ZMB", "ZWE" ], "mode": "lines", "name": "continent=Africa", "showlegend": true, "type": "scattergeo", "uid": "6c8a053a-2a8c-4756-8dc5-998d0e484b9c" }, { "hovertemplate": "continent=Americas
iso_alpha=%{location}", "legendgroup": "continent=Americas", "line": { "color": "#EF553B", "dash": "solid" }, "locations": [ "ARG", "BOL", "BRA", "CAN", "CHL", "COL", "CRI", "CUB", "DOM", "ECU", "SLV", "GTM", "HTI", "HND", "JAM", "MEX", "NIC", "PAN", "PRY", "PER", "PRI", "TTO", "USA", "URY", "VEN" ], "mode": "lines", "name": "continent=Americas", "showlegend": true, "type": "scattergeo", "uid": "f553d148-ed50-455a-8877-5c0d21c27074" }, { "hovertemplate": "continent=Asia
iso_alpha=%{location}", "legendgroup": "continent=Asia", "line": { "color": "#00cc96", "dash": "solid" }, "locations": [ "AFG", "BHR", "BGD", "KHM", "CHN", "HKG", "IND", "IDN", "IRN", "IRQ", "ISR", "JPN", "JOR", "KOR", "KOR", "KWT", "LBN", "MYS", "MNG", "MMR", "NPL", "OMN", "PAK", "PHL", "SAU", "SGP", "LKA", "SYR", "TWN", "THA", "VNM", "PSE", "YEM" ], "mode": "lines", "name": "continent=Asia", "showlegend": true, "type": "scattergeo", "uid": "de09fea8-1155-42f3-bea3-b96f935475c0" }, { "hovertemplate": "continent=Europe
iso_alpha=%{location}", "legendgroup": "continent=Europe", "line": { "color": "#ab63fa", "dash": "solid" }, "locations": [ "ALB", "AUT", "BEL", "BIH", "BGR", "HRV", "CZE", "DNK", "FIN", "FRA", "DEU", "GRC", "HUN", "ISL", "IRL", "ITA", "MNE", "NLD", "NOR", "POL", "PRT", "ROU", "SRB", "SVK", "SVN", "ESP", "SWE", "CHE", "TUR", "GBR" ], "mode": "lines", "name": "continent=Europe", "showlegend": true, "type": "scattergeo", "uid": "7132c2e8-0902-4258-a9c3-ebe6d72bb02c" }, { "hovertemplate": "continent=Oceania
iso_alpha=%{location}", "legendgroup": "continent=Oceania", "line": { "color": "#19d3f3", "dash": "solid" }, "locations": [ "AUS", "NZL" ], "mode": "lines", "name": "continent=Oceania", "showlegend": true, "type": "scattergeo", "uid": "0dfe2b8f-2c67-45e2-917c-a86e3664bbf9" } ], "layout": { "geo": { "center": {}, "projection": { "type": "orthographic" } }, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.line_geo(gapminder.query(\"year==2007\"), locations=\"iso_alpha\", color=\"continent\", projection=\"orthographic\")" ] }, { "cell_type": "code", "execution_count": 45, "metadata": { "scrolled": false }, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "showscale": true, "type": "choropleth", "uid": "2862ea13-31a0-4591-aee8-8383ef844628", "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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" ] ], "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" ], "legendgroup": "", "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": " ", "showlegend": false, "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": { "center": {} }, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.choropleth(gapminder, locations=\"iso_alpha\", color=\"lifeExp\", hover_name=\"country\", animation_frame=\"year\",\n", " color_continuous_scale=px.colors.sequential.Plasma)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Built-in Color Scales and Sequences (and a way to see them!)" ] }, { "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": [ { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(229, 134, 6)", "rgb(93, 105, 177)", "rgb(82, 188, 163)", "rgb(153, 201, 69)", "rgb(204, 97, 176)", "rgb(36, 121, 108)", "rgb(218, 165, 27)", "rgb(47, 138, 196)", "rgb(118, 78, 159)", "rgb(237, 100, 90)", "rgb(165, 170, 153)" ] }, "orientation": "h", "type": "bar", "uid": "d0d92ec1-5d5c-4ae4-ae90-be22fe1b357f", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(136, 204, 238)", "rgb(204, 102, 119)", "rgb(221, 204, 119)", "rgb(17, 119, 51)", "rgb(51, 34, 136)", "rgb(170, 68, 153)", "rgb(68, 170, 153)", "rgb(153, 153, 51)", "rgb(136, 34, 85)", "rgb(102, 17, 0)", "rgb(136, 136, 136)" ] }, "orientation": "h", "type": "bar", "uid": "ddeb87f1-ec14-4b17-8962-3248fa514f14", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Safe", "Safe", "Safe", "Safe", "Safe", "Safe", "Safe", "Safe", "Safe", "Safe", "Safe" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(95, 70, 144)", "rgb(29, 105, 150)", "rgb(56, 166, 165)", "rgb(15, 133, 84)", "rgb(115, 175, 72)", "rgb(237, 173, 8)", "rgb(225, 124, 5)", "rgb(204, 80, 62)", "rgb(148, 52, 110)", "rgb(111, 64, 112)", "rgb(102, 102, 102)" ] }, "orientation": "h", "type": "bar", "uid": "a286b4ba-2178-4226-95b6-55147a02ec70", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Prism", "Prism", "Prism", "Prism", "Prism", "Prism", "Prism", "Prism", "Prism", "Prism", "Prism" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(102, 197, 204)", "rgb(246, 207, 113)", "rgb(248, 156, 116)", "rgb(220, 176, 242)", "rgb(135, 197, 95)", "rgb(158, 185, 243)", "rgb(254, 136, 177)", "rgb(201, 219, 116)", "rgb(139, 224, 164)", "rgb(180, 151, 231)", "rgb(179, 179, 179)" ] }, "orientation": "h", "type": "bar", "uid": "62ef2d27-f992-41a3-a990-fdc9e50a5cdc", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(127, 60, 141)", "rgb(17, 165, 121)", "rgb(57, 105, 172)", "rgb(242, 183, 1)", "rgb(231, 63, 116)", "rgb(128, 186, 90)", "rgb(230, 131, 16)", "rgb(0, 134, 149)", "rgb(207, 28, 144)", "rgb(249, 123, 114)", "rgb(165, 170, 153)" ] }, "orientation": "h", "type": "bar", "uid": "3448de25-c3a3-4724-96bd-d2e8e260b850", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Bold", "Bold", "Bold", "Bold", "Bold", "Bold", "Bold", "Bold", "Bold", "Bold", "Bold" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(133, 92, 117)", "rgb(217, 175, 107)", "rgb(175, 100, 88)", "rgb(115, 111, 76)", "rgb(82, 106, 131)", "rgb(98, 83, 119)", "rgb(104, 133, 92)", "rgb(156, 156, 94)", "rgb(160, 97, 119)", "rgb(140, 120, 93)", "rgb(124, 124, 124)" ] }, "orientation": "h", "type": "bar", "uid": "f5a20f56-8d9c-4f78-95bb-129403aaa287", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Antique", "Antique", "Antique", "Antique", "Antique", "Antique", "Antique", "Antique", "Antique", "Antique", "Antique" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(141,211,199)", "rgb(255,255,179)", "rgb(190,186,218)", "rgb(251,128,114)", "rgb(128,177,211)", "rgb(253,180,98)", "rgb(179,222,105)", "rgb(252,205,229)", "rgb(217,217,217)", "rgb(188,128,189)", "rgb(204,235,197)", "rgb(255,237,111)" ] }, "orientation": "h", "type": "bar", "uid": "f3bf447d-485b-467c-88ab-8668848c0bad", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(179,226,205)", "rgb(253,205,172)", "rgb(203,213,232)", "rgb(244,202,228)", "rgb(230,245,201)", "rgb(255,242,174)", "rgb(241,226,204)", "rgb(204,204,204)" ] }, "orientation": "h", "type": "bar", "uid": "99c2f9d3-cf49-4aea-b21c-491194fba36c", "x": [ 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Pastel2", "Pastel2", "Pastel2", "Pastel2", "Pastel2", "Pastel2", "Pastel2", "Pastel2" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(102,194,165)", "rgb(252,141,98)", "rgb(141,160,203)", "rgb(231,138,195)", "rgb(166,216,84)", "rgb(255,217,47)", "rgb(229,196,148)", "rgb(179,179,179)" ] }, "orientation": "h", "type": "bar", "uid": "1bbd75ee-60c3-444c-a5f3-fce60c05df49", "x": [ 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Set2", "Set2", "Set2", "Set2", "Set2", "Set2", "Set2", "Set2" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(27,158,119)", "rgb(217,95,2)", "rgb(117,112,179)", "rgb(231,41,138)", "rgb(102,166,30)", "rgb(230,171,2)", "rgb(166,118,29)", "rgb(102,102,102)" ] }, "orientation": "h", "type": "bar", "uid": "a6b8d026-d3c2-43d2-8fe3-8dbb81fefaea", "x": [ 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Dark2", "Dark2", "Dark2", "Dark2", "Dark2", "Dark2", "Dark2", "Dark2" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(251,180,174)", "rgb(179,205,227)", "rgb(204,235,197)", "rgb(222,203,228)", "rgb(254,217,166)", "rgb(255,255,204)", "rgb(229,216,189)", "rgb(253,218,236)", "rgb(242,242,242)" ] }, "orientation": "h", "type": "bar", "uid": "fdcf62e0-2cf4-4d8c-8112-88513dd47591", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Pastel1", "Pastel1", "Pastel1", "Pastel1", "Pastel1", "Pastel1", "Pastel1", "Pastel1", "Pastel1" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(228,26,28)", "rgb(55,126,184)", "rgb(77,175,74)", "rgb(152,78,163)", "rgb(255,127,0)", "rgb(255,255,51)", "rgb(166,86,40)", "rgb(247,129,191)", "rgb(153,153,153)" ] }, "orientation": "h", "type": "bar", "uid": "3445f588-95bf-4d6e-a5c1-cf8961062d06", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Set1", "Set1", "Set1", "Set1", "Set1", "Set1", "Set1", "Set1", "Set1" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#FD3216", "#00FE35", "#6A76FC", "#FED4C4", "#FE00CE", "#0DF9FF", "#F6F926", "#FF9616", "#479B55", "#EEA6FB", "#DC587D", "#D626FF", "#6E899C", "#00B5F7", "#B68E00", "#C9FBE5", "#FF0092", "#22FFA7", "#E3EE9E", "#86CE00", "#BC7196", "#7E7DCD", "#FC6955", "#E48F72" ] }, "orientation": "h", "type": "bar", "uid": "e015ee35-f328-48bb-b7f0-ebdc96c4d2db", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24", "Light24" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#2E91E5", "#E15F99", "#1CA71C", "#FB0D0D", "#DA16FF", "#222A2A", "#B68100", "#750D86", "#EB663B", "#511CFB", "#00A08B", "#FB00D1", "#FC0080", "#B2828D", "#6C7C32", "#778AAE", "#862A16", "#A777F1", "#620042", "#1616A7", "#DA60CA", "#6C4516", "#0D2A63", "#AF0038" ] }, "orientation": "h", "type": "bar", "uid": "8efafa39-2745-497c-88bd-1b08d50bc72c", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24", "Dark24" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#AA0DFE", "#3283FE", "#85660D", "#782AB6", "#565656", "#1C8356", "#16FF32", "#F7E1A0", "#E2E2E2", "#1CBE4F", "#C4451C", "#DEA0FD", "#FE00FA", "#325A9B", "#FEAF16", "#F8A19F", "#90AD1C", "#F6222E", "#1CFFCE", "#2ED9FF", "#B10DA1", "#C075A6", "#FC1CBF", "#B00068", "#FBE426", "#FA0087" ] }, "orientation": "h", "type": "bar", "uid": "01cc07a2-9930-4999-8c35-f053b8cbbce2", "x": [ 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 ], "y": [ "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet", "Alphabet" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#4c78a8", "#f58518", "#e45756", "#72b7b2", "#54a24b", "#eeca3b", "#b279a2", "#ff9da6", "#9d755d", "#bab0ac" ] }, "orientation": "h", "type": "bar", "uid": "67df5045-8ba7-4ccb-ab9e-43006b1b4fd0", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "T10", "T10", "T10", "T10", "T10", "T10", "T10", "T10", "T10", "T10" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#3366cc", "#dc3912", "#ff9900", "#109618", "#990099", "#0099c6", "#dd4477", "#66aa00", "#b82e2e", "#316395" ] }, "orientation": "h", "type": "bar", "uid": "fdedcbad-80a2-4fde-b7e5-7aa22ddc6884", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "G10", "G10", "G10", "G10", "G10", "G10", "G10", "G10", "G10", "G10" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd", "#8c564b", "#e377c2", "#7f7f7f", "#bcbd22", "#17becf" ] }, "orientation": "h", "type": "bar", "uid": "9b9fefec-d897-4140-9d4a-2e6c54c0a476", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "D3", "D3", "D3", "D3", "D3", "D3", "D3", "D3", "D3", "D3" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#636efa", "#EF553B", "#00cc96", "#ab63fa", "#19d3f3", "#e763fa", "#fecb52", "#ffa15a", "#ff6692", "#b6e880" ] }, "orientation": "h", "type": "bar", "uid": "9952b6ad-9750-4bd5-899c-e5736e33564c", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly" ] } ], "layout": { "bargap": 0.5, "barmode": "stack", "barnorm": "fraction", "height": 760, "showlegend": false, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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 } } }, "title": { "text": "plotly_express.colors.qualitative" }, "xaxis": { "range": [ -0.02, 1.02 ], "showgrid": false, "showticklabels": false } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.colors.qualitative.swatches()" ] }, { "cell_type": "code", "execution_count": 47, "metadata": { "scrolled": false }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(237, 229, 207)", "rgb(224, 194, 162)", "rgb(211, 156, 131)", "rgb(193, 118, 111)", "rgb(166, 84, 97)", "rgb(129, 55, 83)", "rgb(84, 31, 63)" ] }, "orientation": "h", "type": "bar", "uid": "730be614-4f3c-46bd-b039-6e136f801d68", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Brwnyl", "Brwnyl", "Brwnyl", "Brwnyl", "Brwnyl", "Brwnyl", "Brwnyl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(75, 41, 145)", "rgb(135, 44, 162)", "rgb(192, 54, 157)", "rgb(234, 79, 136)", "rgb(250, 120, 118)", "rgb(246, 169, 122)", "rgb(237, 217, 163)" ] }, "orientation": "h", "type": "bar", "uid": "a841d1be-009b-4fb6-bbf3-7e1063549beb", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Agsunset", "Agsunset", "Agsunset", "Agsunset", "Agsunset", "Agsunset", "Agsunset" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(252, 222, 156)", "rgb(250, 164, 118)", "rgb(240, 116, 110)", "rgb(227, 79, 111)", "rgb(220, 57, 119)", "rgb(185, 37, 122)", "rgb(124, 29, 111)" ] }, "orientation": "h", "type": "bar", "uid": "7126a8bf-d674-4589-8325-37e3b61341c3", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Sunsetdark", "Sunsetdark", "Sunsetdark", "Sunsetdark", "Sunsetdark", "Sunsetdark", "Sunsetdark" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(243, 203, 211)", "rgb(234, 169, 189)", "rgb(221, 136, 172)", "rgb(202, 105, 157)", "rgb(177, 77, 142)", "rgb(145, 53, 125)", "rgb(108, 33, 103)" ] }, "orientation": "h", "type": "bar", "uid": "cae86d00-f033-4f67-b4d2-4d7af95f3bdd", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Magenta", "Magenta", "Magenta", "Magenta", "Magenta", "Magenta", "Magenta" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(243, 231, 155)", "rgb(250, 196, 132)", "rgb(248, 160, 126)", "rgb(235, 127, 134)", "rgb(206, 102, 147)", "rgb(160, 89, 160)", "rgb(92, 83, 165)" ] }, "orientation": "h", "type": "bar", "uid": "64fea879-e96a-485c-b395-4a35aece8d77", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Sunset", "Sunset", "Sunset", "Sunset", "Sunset", "Sunset", "Sunset" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(249, 221, 218)", "rgb(242, 185, 196)", "rgb(229, 151, 185)", "rgb(206, 120, 179)", "rgb(173, 95, 173)", "rgb(131, 75, 160)", "rgb(87, 59, 136)" ] }, "orientation": "h", "type": "bar", "uid": "5b078175-d384-4429-b985-076a3c4992ac", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Purpor", "Purpor", "Purpor", "Purpor", "Purpor", "Purpor", "Purpor" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(243, 224, 247)", "rgb(228, 199, 241)", "rgb(209, 175, 232)", "rgb(185, 152, 221)", "rgb(159, 130, 206)", "rgb(130, 109, 186)", "rgb(99, 88, 159)" ] }, "orientation": "h", "type": "bar", "uid": "8ffa1ff3-d57c-43db-9b74-dcf587e0203d", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Purp", "Purp", "Purp", "Purp", "Purp", "Purp", "Purp" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(176, 242, 188)", "rgb(137, 232, 172)", "rgb(103, 219, 165)", "rgb(76, 200, 163)", "rgb(56, 178, 163)", "rgb(44, 152, 160)", "rgb(37, 125, 152)" ] }, "orientation": "h", "type": "bar", "uid": "50ddc3ce-4f44-46fa-b3a4-3f3904ff88c7", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Tealgrn", "Tealgrn", "Tealgrn", "Tealgrn", "Tealgrn", "Tealgrn", "Tealgrn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(209, 238, 234)", "rgb(168, 219, 217)", "rgb(133, 196, 201)", "rgb(104, 171, 184)", "rgb(79, 144, 166)", "rgb(59, 115, 143)", "rgb(42, 86, 116)" ] }, "orientation": "h", "type": "bar", "uid": "834647ab-90b6-45e3-80c1-02496cb94b30", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Teal", "Teal", "Teal", "Teal", "Teal", "Teal", "Teal" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247, 254, 174)", "rgb(183, 230, 165)", "rgb(124, 203, 162)", "rgb(70, 174, 160)", "rgb(8, 144, 153)", "rgb(0, 113, 139)", "rgb(4, 82, 117)" ] }, "orientation": "h", "type": "bar", "uid": "217048f6-e440-49c7-ab03-9594455ba1c3", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Bluyl", "Bluyl", "Bluyl", "Bluyl", "Bluyl", "Bluyl", "Bluyl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(36, 86, 104)", "rgb(15, 114, 121)", "rgb(13, 143, 129)", "rgb(57, 171, 126)", "rgb(110, 197, 116)", "rgb(169, 220, 103)", "rgb(237, 239, 93)" ] }, "orientation": "h", "type": "bar", "uid": "6ec8f6b6-e63c-4b7c-8d4d-6c8e00dbcb98", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Aggrnyl", "Aggrnyl", "Aggrnyl", "Aggrnyl", "Aggrnyl", "Aggrnyl", "Aggrnyl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(211, 242, 163)", "rgb(151, 225, 150)", "rgb(108, 192, 139)", "rgb(76, 155, 130)", "rgb(33, 122, 121)", "rgb(16, 89, 101)", "rgb(7, 64, 80)" ] }, "orientation": "h", "type": "bar", "uid": "101d604c-f748-409c-bdd0-68916d12350e", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Emrld", "Emrld", "Emrld", "Emrld", "Emrld", "Emrld", "Emrld" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(210, 251, 212)", "rgb(165, 219, 194)", "rgb(123, 188, 176)", "rgb(85, 156, 158)", "rgb(58, 124, 137)", "rgb(35, 93, 114)", "rgb(18, 63, 90)" ] }, "orientation": "h", "type": "bar", "uid": "7a458bf0-8bcb-4b63-ae28-0b42f223757b", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Darkmint", "Darkmint", "Darkmint", "Darkmint", "Darkmint", "Darkmint", "Darkmint" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(196, 230, 195)", "rgb(150, 210, 164)", "rgb(109, 188, 144)", "rgb(77, 162, 132)", "rgb(54, 135, 122)", "rgb(38, 107, 110)", "rgb(29, 79, 96)" ] }, "orientation": "h", "type": "bar", "uid": "09f215a1-53cd-4c72-b071-443e5b0f3af5", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Blugrn", "Blugrn", "Blugrn", "Blugrn", "Blugrn", "Blugrn", "Blugrn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(228, 241, 225)", "rgb(180, 217, 204)", "rgb(137, 192, 182)", "rgb(99, 166, 160)", "rgb(68, 140, 138)", "rgb(40, 114, 116)", "rgb(13, 88, 95)" ] }, "orientation": "h", "type": "bar", "uid": "946ce685-3d9e-4fc8-9090-c9e0a343790d", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Mint", "Mint", "Mint", "Mint", "Mint", "Mint", "Mint" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(254, 246, 181)", "rgb(255, 221, 154)", "rgb(255, 194, 133)", "rgb(255, 166, 121)", "rgb(250, 138, 118)", "rgb(241, 109, 122)", "rgb(225, 83, 131)" ] }, "orientation": "h", "type": "bar", "uid": "c9e389bc-5be1-426f-8ae1-9e956b5bc079", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Pinkyl", "Pinkyl", "Pinkyl", "Pinkyl", "Pinkyl", "Pinkyl", "Pinkyl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(253, 224, 197)", "rgb(250, 203, 166)", "rgb(248, 181, 139)", "rgb(245, 158, 114)", "rgb(242, 133, 93)", "rgb(239, 106, 76)", "rgb(235, 74, 64)" ] }, "orientation": "h", "type": "bar", "uid": "07b742ba-6cdc-4146-bb01-970683ad14c8", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Peach", "Peach", "Peach", "Peach", "Peach", "Peach", "Peach" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(236, 218, 154)", "rgb(239, 196, 126)", "rgb(243, 173, 106)", "rgb(247, 148, 93)", "rgb(249, 123, 87)", "rgb(246, 99, 86)", "rgb(238, 77, 90)" ] }, "orientation": "h", "type": "bar", "uid": "ab9c8387-aafe-45a6-9d0e-205ed2a00e83", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Oryel", "Oryel", "Oryel", "Oryel", "Oryel", "Oryel", "Oryel" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(246, 210, 169)", "rgb(245, 183, 142)", "rgb(241, 156, 124)", "rgb(234, 129, 113)", "rgb(221, 104, 108)", "rgb(202, 82, 104)", "rgb(177, 63, 100)" ] }, "orientation": "h", "type": "bar", "uid": "e22392cf-b325-4fb6-a249-4410538aed13", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Redor", "Redor", "Redor", "Redor", "Redor", "Redor", "Redor" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(251, 230, 197)", "rgb(245, 186, 152)", "rgb(238, 138, 130)", "rgb(220, 113, 118)", "rgb(200, 88, 108)", "rgb(156, 63, 93)", "rgb(112, 40, 74)" ] }, "orientation": "h", "type": "bar", "uid": "8a4549dc-325a-45ed-b931-52428f13dc38", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Burgyl", "Burgyl", "Burgyl", "Burgyl", "Burgyl", "Burgyl", "Burgyl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255, 198, 196)", "rgb(244, 163, 168)", "rgb(227, 129, 145)", "rgb(204, 96, 125)", "rgb(173, 70, 108)", "rgb(139, 48, 88)", "rgb(103, 32, 68)" ] }, "orientation": "h", "type": "bar", "uid": "cf74bbd1-bcfb-44da-b126-9b3218fa90f2", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Burg", "Burg", "Burg", "Burg", "Burg", "Burg", "Burg" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(254, 245, 244)", "rgb(222, 224, 210)", "rgb(189, 206, 181)", "rgb(153, 189, 156)", "rgb(110, 173, 138)", "rgb(65, 157, 129)", "rgb(25, 137, 125)", "rgb(18, 116, 117)", "rgb(25, 94, 106)", "rgb(28, 72, 93)", "rgb(25, 51, 80)", "rgb(20, 29, 67)" ] }, "orientation": "h", "type": "bar", "uid": "9f4f27ed-040a-49b3-b231-da68d452b0ad", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(241, 236, 236)", "rgb(230, 209, 203)", "rgb(221, 182, 170)", "rgb(213, 156, 137)", "rgb(205, 129, 103)", "rgb(196, 102, 73)", "rgb(186, 74, 47)", "rgb(172, 44, 36)", "rgb(149, 19, 39)", "rgb(120, 14, 40)", "rgb(89, 13, 31)", "rgb(60, 9, 17)" ] }, "orientation": "h", "type": "bar", "uid": "b03e6f89-e021-4425-b224-959342ff0621", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "amp", "amp", "amp", "amp", "amp", "amp", "amp", "amp", "amp", "amp", "amp", "amp" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(254, 252, 205)", "rgb(239, 225, 156)", "rgb(221, 201, 106)", "rgb(194, 182, 59)", "rgb(157, 167, 21)", "rgb(116, 153, 5)", "rgb(75, 138, 20)", "rgb(35, 121, 36)", "rgb(11, 100, 44)", "rgb(18, 78, 43)", "rgb(25, 56, 34)", "rgb(23, 35, 18)" ] }, "orientation": "h", "type": "bar", "uid": "718cbe4c-0180-48b4-85f4-73065f4fcc20", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "speed", "speed", "speed", "speed", "speed", "speed", "speed", "speed", "speed", "speed", "speed", "speed" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(253, 237, 176)", "rgb(250, 205, 145)", "rgb(246, 173, 119)", "rgb(240, 142, 98)", "rgb(231, 109, 84)", "rgb(216, 80, 83)", "rgb(195, 56, 90)", "rgb(168, 40, 96)", "rgb(138, 29, 99)", "rgb(107, 24, 93)", "rgb(76, 21, 80)", "rgb(47, 15, 61)" ] }, "orientation": "h", "type": "bar", "uid": "e96c667d-2406-468e-adb9-b206e94e30ed", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "matter", "matter", "matter", "matter", "matter", "matter", "matter", "matter", "matter", "matter", "matter", "matter" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(214, 249, 207)", "rgb(186, 228, 174)", "rgb(156, 209, 143)", "rgb(124, 191, 115)", "rgb(85, 174, 91)", "rgb(37, 157, 81)", "rgb(7, 138, 78)", "rgb(13, 117, 71)", "rgb(23, 95, 61)", "rgb(25, 75, 49)", "rgb(23, 55, 35)", "rgb(17, 36, 20)" ] }, "orientation": "h", "type": "bar", "uid": "0289a5e3-3e06-4128-b7a4-dc23e962c698", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(230, 240, 240)", "rgb(191, 221, 229)", "rgb(156, 201, 226)", "rgb(129, 180, 227)", "rgb(115, 154, 228)", "rgb(117, 127, 221)", "rgb(120, 100, 202)", "rgb(119, 74, 175)", "rgb(113, 50, 141)", "rgb(100, 31, 104)", "rgb(80, 20, 66)", "rgb(54, 14, 36)" ] }, "orientation": "h", "type": "bar", "uid": "5a8a4c49-ff97-4a06-879b-0a3fe96367de", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "dense", "dense", "dense", "dense", "dense", "dense", "dense", "dense", "dense", "dense", "dense", "dense" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(253, 253, 204)", "rgb(206, 236, 179)", "rgb(156, 219, 165)", "rgb(111, 201, 163)", "rgb(86, 177, 163)", "rgb(76, 153, 160)", "rgb(68, 130, 155)", "rgb(62, 108, 150)", "rgb(62, 82, 143)", "rgb(64, 60, 115)", "rgb(54, 43, 77)", "rgb(39, 26, 44)" ] }, "orientation": "h", "type": "bar", "uid": "389c9848-35e6-46d4-b4cd-75c4181c4320", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(0, 0, 0)", "rgb(16, 16, 16)", "rgb(38, 38, 38)", "rgb(59, 59, 59)", "rgb(81, 80, 80)", "rgb(102, 101, 101)", "rgb(124, 123, 122)", "rgb(146, 146, 145)", "rgb(171, 171, 170)", "rgb(197, 197, 195)", "rgb(224, 224, 223)", "rgb(254, 254, 253)" ] }, "orientation": "h", "type": "bar", "uid": "c2a2a83d-6e93-4f95-902e-98e21fe50d0e", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(3, 5, 18)", "rgb(25, 25, 51)", "rgb(44, 42, 87)", "rgb(58, 60, 125)", "rgb(62, 83, 160)", "rgb(62, 109, 178)", "rgb(72, 134, 187)", "rgb(89, 159, 196)", "rgb(114, 184, 205)", "rgb(149, 207, 216)", "rgb(192, 229, 232)", "rgb(234, 252, 253)" ] }, "orientation": "h", "type": "bar", "uid": "91f94f97-ccb2-46e9-83aa-4777a6342bcf", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "ice", "ice", "ice", "ice", "ice", "ice", "ice", "ice", "ice", "ice", "ice", "ice" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(51, 19, 23)", "rgb(79, 28, 33)", "rgb(108, 36, 36)", "rgb(135, 47, 32)", "rgb(157, 66, 25)", "rgb(174, 88, 20)", "rgb(188, 111, 19)", "rgb(199, 137, 22)", "rgb(209, 164, 32)", "rgb(217, 192, 44)", "rgb(222, 222, 59)", "rgb(224, 253, 74)" ] }, "orientation": "h", "type": "bar", "uid": "ba3a0720-77f4-4624-8cdf-ad5d269059ca", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "solar", "solar", "solar", "solar", "solar", "solar", "solar", "solar", "solar", "solar", "solar", "solar" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(41, 24, 107)", "rgb(42, 35, 160)", "rgb(15, 71, 153)", "rgb(18, 95, 142)", "rgb(38, 116, 137)", "rgb(53, 136, 136)", "rgb(65, 157, 133)", "rgb(81, 178, 124)", "rgb(111, 198, 107)", "rgb(160, 214, 91)", "rgb(212, 225, 112)", "rgb(253, 238, 153)" ] }, "orientation": "h", "type": "bar", "uid": "469e6be5-67d0-4690-ba1e-9d2fd0a1dad5", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "haline", "haline", "haline", "haline", "haline", "haline", "haline", "haline", "haline", "haline", "haline", "haline" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(3, 35, 51)", "rgb(13, 48, 100)", "rgb(53, 50, 155)", "rgb(93, 62, 153)", "rgb(126, 77, 143)", "rgb(158, 89, 135)", "rgb(193, 100, 121)", "rgb(225, 113, 97)", "rgb(246, 139, 69)", "rgb(251, 173, 60)", "rgb(246, 211, 70)", "rgb(231, 250, 90)" ] }, "orientation": "h", "type": "bar", "uid": "991aab72-85fa-4ab9-adad-84ee00900672", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(232, 245, 171)", "rgb(220, 219, 137)", "rgb(209, 193, 107)", "rgb(199, 168, 83)", "rgb(186, 143, 66)", "rgb(170, 121, 60)", "rgb(151, 103, 58)", "rgb(129, 87, 56)", "rgb(104, 72, 53)", "rgb(80, 59, 46)", "rgb(57, 45, 37)", "rgb(34, 30, 27)" ] }, "orientation": "h", "type": "bar", "uid": "2dc3f60c-e91a-4da8-8a7d-53dd59df4b64", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,255,204)", "rgb(255,237,160)", "rgb(254,217,118)", "rgb(254,178,76)", "rgb(253,141,60)", "rgb(252,78,42)", "rgb(227,26,28)", "rgb(189,0,38)", "rgb(128,0,38)" ] }, "orientation": "h", "type": "bar", "uid": "eef346c3-6387-42a1-97fd-c5d3a8b1acb9", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,255,229)", "rgb(255,247,188)", "rgb(254,227,145)", "rgb(254,196,79)", "rgb(254,153,41)", "rgb(236,112,20)", "rgb(204,76,2)", "rgb(153,52,4)", "rgb(102,37,6)" ] }, "orientation": "h", "type": "bar", "uid": "c8740982-b25d-4c5f-9f96-f90998047fca", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,255,217)", "rgb(237,248,177)", "rgb(199,233,180)", "rgb(127,205,187)", "rgb(65,182,196)", "rgb(29,145,192)", "rgb(34,94,168)", "rgb(37,52,148)", "rgb(8,29,88)" ] }, "orientation": "h", "type": "bar", "uid": "85c193c7-4b68-4d4b-9a0d-b61632bbd05b", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,255,229)", "rgb(247,252,185)", "rgb(217,240,163)", "rgb(173,221,142)", "rgb(120,198,121)", "rgb(65,171,93)", "rgb(35,132,67)", "rgb(0,104,55)", "rgb(0,69,41)" ] }, "orientation": "h", "type": "bar", "uid": "37d33bee-f19f-4285-b0d5-9abe5ce75421", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "YlGn", "YlGn", "YlGn", "YlGn", "YlGn", "YlGn", "YlGn", "YlGn", "YlGn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,245,240)", "rgb(254,224,210)", "rgb(252,187,161)", "rgb(252,146,114)", "rgb(251,106,74)", "rgb(239,59,44)", "rgb(203,24,29)", "rgb(165,15,21)", "rgb(103,0,13)" ] }, "orientation": "h", "type": "bar", "uid": "977fa617-aaf9-4555-a2c0-5f71e3722c34", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Reds", "Reds", "Reds", "Reds", "Reds", "Reds", "Reds", "Reds", "Reds" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,247,243)", "rgb(253,224,221)", "rgb(252,197,192)", "rgb(250,159,181)", "rgb(247,104,161)", "rgb(221,52,151)", "rgb(174,1,126)", "rgb(122,1,119)", "rgb(73,0,106)" ] }, "orientation": "h", "type": "bar", "uid": "6b5636df-502d-4c45-be0f-8a8e951f5704", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "RdPu", "RdPu", "RdPu", "RdPu", "RdPu", "RdPu", "RdPu", "RdPu", "RdPu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(252,251,253)", "rgb(239,237,245)", "rgb(218,218,235)", "rgb(188,189,220)", "rgb(158,154,200)", "rgb(128,125,186)", "rgb(106,81,163)", "rgb(84,39,143)", "rgb(63,0,125)" ] }, "orientation": "h", "type": "bar", "uid": "f470f7d2-d87d-4ace-a4d7-68bd68197580", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Purples", "Purples", "Purples", "Purples", "Purples", "Purples", "Purples", "Purples", "Purples" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,244,249)", "rgb(231,225,239)", "rgb(212,185,218)", "rgb(201,148,199)", "rgb(223,101,176)", "rgb(231,41,138)", "rgb(206,18,86)", "rgb(152,0,67)", "rgb(103,0,31)" ] }, "orientation": "h", "type": "bar", "uid": "c4da3c91-f702-4dd9-acbf-9a72323c1a67", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PuRd", "PuRd", "PuRd", "PuRd", "PuRd", "PuRd", "PuRd", "PuRd", "PuRd" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,247,251)", "rgb(236,226,240)", "rgb(208,209,230)", "rgb(166,189,219)", "rgb(103,169,207)", "rgb(54,144,192)", "rgb(2,129,138)", "rgb(1,108,89)", "rgb(1,70,54)" ] }, "orientation": "h", "type": "bar", "uid": "7c1ede65-4e1a-4566-9f79-8534446684b3", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,247,251)", "rgb(236,231,242)", "rgb(208,209,230)", "rgb(166,189,219)", "rgb(116,169,207)", "rgb(54,144,192)", "rgb(5,112,176)", "rgb(4,90,141)", "rgb(2,56,88)" ] }, "orientation": "h", "type": "bar", "uid": "dd3ab80f-eb53-4c2b-99b4-90e821139a61", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PuBu", "PuBu", "PuBu", "PuBu", "PuBu", "PuBu", "PuBu", "PuBu", "PuBu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,245,235)", "rgb(254,230,206)", "rgb(253,208,162)", "rgb(253,174,107)", "rgb(253,141,60)", "rgb(241,105,19)", "rgb(217,72,1)", "rgb(166,54,3)", "rgb(127,39,4)" ] }, "orientation": "h", "type": "bar", "uid": "81c0ee23-18cd-4301-abb0-0825c4dc2c62", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Oranges", "Oranges", "Oranges", "Oranges", "Oranges", "Oranges", "Oranges", "Oranges", "Oranges" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,247,236)", "rgb(254,232,200)", "rgb(253,212,158)", "rgb(253,187,132)", "rgb(252,141,89)", "rgb(239,101,72)", "rgb(215,48,31)", "rgb(179,0,0)", "rgb(127,0,0)" ] }, "orientation": "h", "type": "bar", "uid": "e05b7106-25d4-4e3e-b269-79064d8fa416", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "OrRd", "OrRd", "OrRd", "OrRd", "OrRd", "OrRd", "OrRd", "OrRd", "OrRd" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,255,255)", "rgb(240,240,240)", "rgb(217,217,217)", "rgb(189,189,189)", "rgb(150,150,150)", "rgb(115,115,115)", "rgb(82,82,82)", "rgb(37,37,37)", "rgb(0,0,0)" ] }, "orientation": "h", "type": "bar", "uid": "e3de6933-e0a0-4d66-b4bb-64e7fed4ed06", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Greys", "Greys", "Greys", "Greys", "Greys", "Greys", "Greys", "Greys", "Greys" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,252,245)", "rgb(229,245,224)", "rgb(199,233,192)", "rgb(161,217,155)", "rgb(116,196,118)", "rgb(65,171,93)", "rgb(35,139,69)", "rgb(0,109,44)", "rgb(0,68,27)" ] }, "orientation": "h", "type": "bar", "uid": "f99e99fb-f2c0-456a-bf4e-214464997378", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Greens", "Greens", "Greens", "Greens", "Greens", "Greens", "Greens", "Greens", "Greens" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,252,240)", "rgb(224,243,219)", "rgb(204,235,197)", "rgb(168,221,181)", "rgb(123,204,196)", "rgb(78,179,211)", "rgb(43,140,190)", "rgb(8,104,172)", "rgb(8,64,129)" ] }, "orientation": "h", "type": "bar", "uid": "1af52ddd-f0ca-4454-99f5-7b5bff6b83fe", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "GnBu", "GnBu", "GnBu", "GnBu", "GnBu", "GnBu", "GnBu", "GnBu", "GnBu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,252,253)", "rgb(224,236,244)", "rgb(191,211,230)", "rgb(158,188,218)", "rgb(140,150,198)", "rgb(140,107,177)", "rgb(136,65,157)", "rgb(129,15,124)", "rgb(77,0,75)" ] }, "orientation": "h", "type": "bar", "uid": "f2b52653-d715-49cc-996e-06c509834f00", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "BuPu", "BuPu", "BuPu", "BuPu", "BuPu", "BuPu", "BuPu", "BuPu", "BuPu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,252,253)", "rgb(229,245,249)", "rgb(204,236,230)", "rgb(153,216,201)", "rgb(102,194,164)", "rgb(65,174,118)", "rgb(35,139,69)", "rgb(0,109,44)", "rgb(0,68,27)" ] }, "orientation": "h", "type": "bar", "uid": "3eef8cac-04d1-4c65-8461-07f6562db2cf", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "BuGn", "BuGn", "BuGn", "BuGn", "BuGn", "BuGn", "BuGn", "BuGn", "BuGn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,251,255)", "rgb(222,235,247)", "rgb(198,219,239)", "rgb(158,202,225)", "rgb(107,174,214)", "rgb(66,146,198)", "rgb(33,113,181)", "rgb(8,81,156)", "rgb(8,48,107)" ] }, "orientation": "h", "type": "bar", "uid": "a16eb9fb-5fc2-4c9e-8498-369a2451af34", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Blues", "Blues", "Blues", "Blues", "Blues", "Blues", "Blues", "Blues", "Blues" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#0d0887", "#46039f", "#7201a8", "#9c179e", "#bd3786", "#d8576b", "#ed7953", "#fb9f3a", "#fdca26", "#f0f921" ] }, "orientation": "h", "type": "bar", "uid": "4e82fc31-6238-4309-9d84-32d9a07c9e8e", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Plasma", "Plasma", "Plasma", "Plasma", "Plasma", "Plasma", "Plasma", "Plasma", "Plasma", "Plasma" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#000004", "#180f3d", "#440f76", "#721f81", "#9e2f7f", "#cd4071", "#f1605d", "#fd9668", "#feca8d", "#fcfdbf" ] }, "orientation": "h", "type": "bar", "uid": "05f855a7-2928-4b0d-8fad-a852e02896cb", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Magma", "Magma", "Magma", "Magma", "Magma", "Magma", "Magma", "Magma", "Magma", "Magma" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#000004", "#1b0c41", "#4a0c6b", "#781c6d", "#a52c60", "#cf4446", "#ed6925", "#fb9b06", "#f7d13d", "#fcffa4" ] }, "orientation": "h", "type": "bar", "uid": "547c5011-d912-4d96-bf1f-550fd9376ed0", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Inferno", "Inferno", "Inferno", "Inferno", "Inferno", "Inferno", "Inferno", "Inferno", "Inferno", "Inferno" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#00224e", "#123570", "#3b496c", "#575d6d", "#707173", "#8a8678", "#a59c74", "#c3b369", "#e1cc55", "#fee838" ] }, "orientation": "h", "type": "bar", "uid": "9c9f4bfa-82fd-401d-9396-da477c4eb357", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Cividis", "Cividis", "Cividis", "Cividis", "Cividis", "Cividis", "Cividis", "Cividis", "Cividis", "Cividis" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#440154", "#482878", "#3e4989", "#31688e", "#26828e", "#1f9e89", "#35b779", "#6ece58", "#b5de2b", "#fde725" ] }, "orientation": "h", "type": "bar", "uid": "8b42b5d2-9910-4b55-8b6b-77cad40bfbbf", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Viridis", "Viridis", "Viridis", "Viridis", "Viridis", "Viridis", "Viridis", "Viridis", "Viridis", "Viridis" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#0508b8", "#1910d8", "#3c19f0", "#6b1cfb", "#981cfd", "#bf1cfd", "#dd2bfd", "#f246fe", "#fc67fd", "#fe88fc", "#fea5fd", "#febefe", "#fec3fe" ] }, "orientation": "h", "type": "bar", "uid": "355fec66-f299-4582-b16c-75112c3df970", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly", "Plotly" ] } ], "layout": { "bargap": 0.5, "barmode": "stack", "barnorm": "fraction", "height": 2320, "showlegend": false, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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 } } }, "title": { "text": "plotly_express.colors.sequential" }, "xaxis": { "range": [ -0.02, 1.02 ], "showgrid": false, "showticklabels": false } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.colors.sequential.swatches()" ] }, { "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": [ { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(161, 105, 40)", "rgb(189, 146, 90)", "rgb(214, 189, 141)", "rgb(237, 234, 194)", "rgb(181, 200, 184)", "rgb(121, 167, 172)", "rgb(40, 135, 161)" ] }, "orientation": "h", "type": "bar", "uid": "e99ba579-972b-4ccd-9fd9-955e2109b7f8", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Earth", "Earth", "Earth", "Earth", "Earth", "Earth", "Earth" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(0, 155, 158)", "rgb(66, 183, 185)", "rgb(167, 211, 212)", "rgb(241, 241, 241)", "rgb(228, 193, 217)", "rgb(214, 145, 193)", "rgb(199, 93, 171)" ] }, "orientation": "h", "type": "bar", "uid": "fa5b2b5b-d628-49f6-b9c5-289c12e3e588", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Tropic", "Tropic", "Tropic", "Tropic", "Tropic", "Tropic", "Tropic" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(0, 147, 146)", "rgb(114, 170, 161)", "rgb(177, 199, 179)", "rgb(241, 234, 200)", "rgb(229, 185, 173)", "rgb(217, 137, 148)", "rgb(208, 88, 126)" ] }, "orientation": "h", "type": "bar", "uid": "a22cd206-8a8e-4eb1-a4d3-8dccb10a2767", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Tealrose", "Tealrose", "Tealrose", "Tealrose", "Tealrose", "Tealrose", "Tealrose" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(0, 147, 146)", "rgb(57, 177, 133)", "rgb(156, 203, 134)", "rgb(233, 226, 156)", "rgb(238, 180, 121)", "rgb(232, 132, 113)", "rgb(207, 89, 126)" ] }, "orientation": "h", "type": "bar", "uid": "9384d203-6839-4d19-93ce-3dced8c2fb62", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Temps", "Temps", "Temps", "Temps", "Temps", "Temps", "Temps" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(0, 128, 128)", "rgb(112, 164, 148)", "rgb(180, 200, 168)", "rgb(246, 237, 189)", "rgb(237, 187, 138)", "rgb(222, 138, 90)", "rgb(202, 86, 44)" ] }, "orientation": "h", "type": "bar", "uid": "4ec75afe-1469-4157-b8ec-2979f5c22266", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Geyser", "Geyser", "Geyser", "Geyser", "Geyser", "Geyser", "Geyser" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(61, 89, 65)", "rgb(119, 136, 104)", "rgb(181, 185, 145)", "rgb(246, 237, 189)", "rgb(237, 187, 138)", "rgb(222, 138, 90)", "rgb(202, 86, 44)" ] }, "orientation": "h", "type": "bar", "uid": "f1a4d12b-74da-496e-a6ca-5f8b3ce119d3", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Fall", "Fall", "Fall", "Fall", "Fall", "Fall", "Fall" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(121, 130, 52)", "rgb(163, 173, 98)", "rgb(208, 211, 162)", "rgb(253, 251, 228)", "rgb(240, 198, 195)", "rgb(223, 145, 163)", "rgb(212, 103, 128)" ] }, "orientation": "h", "type": "bar", "uid": "0a92d4bd-48c2-4727-87a6-e16b97be0516", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Armyrose", "Armyrose", "Armyrose", "Armyrose", "Armyrose", "Armyrose", "Armyrose" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(20, 29, 67)", "rgb(28, 72, 93)", "rgb(18, 115, 117)", "rgb(63, 156, 129)", "rgb(153, 189, 156)", "rgb(223, 225, 211)", "rgb(241, 218, 206)", "rgb(224, 160, 137)", "rgb(203, 101, 99)", "rgb(164, 54, 96)", "rgb(111, 23, 91)", "rgb(51, 13, 53)" ] }, "orientation": "h", "type": "bar", "uid": "d4c302ac-269d-4407-907d-2750ddbf99f7", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "curl", "curl", "curl", "curl", "curl", "curl", "curl", "curl", "curl", "curl", "curl", "curl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(16, 31, 63)", "rgb(38, 62, 144)", "rgb(30, 110, 161)", "rgb(60, 154, 171)", "rgb(140, 193, 186)", "rgb(217, 229, 218)", "rgb(239, 226, 156)", "rgb(195, 182, 59)", "rgb(115, 152, 5)", "rgb(34, 120, 36)", "rgb(18, 78, 43)", "rgb(23, 35, 18)" ] }, "orientation": "h", "type": "bar", "uid": "cc16b1d9-6234-4361-ab9c-30a664844e5e", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "delta", "delta", "delta", "delta", "delta", "delta", "delta", "delta", "delta", "delta", "delta", "delta" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(23, 28, 66)", "rgb(41, 58, 143)", "rgb(11, 102, 189)", "rgb(69, 144, 185)", "rgb(142, 181, 194)", "rgb(210, 216, 219)", "rgb(230, 210, 204)", "rgb(213, 157, 137)", "rgb(196, 101, 72)", "rgb(172, 43, 36)", "rgb(120, 14, 40)", "rgb(60, 9, 17)" ] }, "orientation": "h", "type": "bar", "uid": "87576818-4b97-409c-9744-15a3d3fe0918", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "balance", "balance", "balance", "balance", "balance", "balance", "balance", "balance", "balance", "balance", "balance", "balance" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(158,1,66)", "rgb(213,62,79)", "rgb(244,109,67)", "rgb(253,174,97)", "rgb(254,224,139)", "rgb(255,255,191)", "rgb(230,245,152)", "rgb(171,221,164)", "rgb(102,194,165)", "rgb(50,136,189)", "rgb(94,79,162)" ] }, "orientation": "h", "type": "bar", "uid": "3d01fd2e-daab-4ae9-8650-60505cbe2fec", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(165,0,38)", "rgb(215,48,39)", "rgb(244,109,67)", "rgb(253,174,97)", "rgb(254,224,139)", "rgb(255,255,191)", "rgb(217,239,139)", "rgb(166,217,106)", "rgb(102,189,99)", "rgb(26,152,80)", "rgb(0,104,55)" ] }, "orientation": "h", "type": "bar", "uid": "0341336b-67c7-4b45-86dd-aca19d9fb796", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(165,0,38)", "rgb(215,48,39)", "rgb(244,109,67)", "rgb(253,174,97)", "rgb(254,224,144)", "rgb(255,255,191)", "rgb(224,243,248)", "rgb(171,217,233)", "rgb(116,173,209)", "rgb(69,117,180)", "rgb(49,54,149)" ] }, "orientation": "h", "type": "bar", "uid": "8ec19fcb-8a36-4e81-9780-3efc8148d6d4", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(103,0,31)", "rgb(178,24,43)", "rgb(214,96,77)", "rgb(244,165,130)", "rgb(253,219,199)", "rgb(255,255,255)", "rgb(224,224,224)", "rgb(186,186,186)", "rgb(135,135,135)", "rgb(77,77,77)", "rgb(26,26,26)" ] }, "orientation": "h", "type": "bar", "uid": "92fefc97-59aa-4593-8b96-354c68db29a0", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(103,0,31)", "rgb(178,24,43)", "rgb(214,96,77)", "rgb(244,165,130)", "rgb(253,219,199)", "rgb(247,247,247)", "rgb(209,229,240)", "rgb(146,197,222)", "rgb(67,147,195)", "rgb(33,102,172)", "rgb(5,48,97)" ] }, "orientation": "h", "type": "bar", "uid": "09259165-1b2e-4dc0-b819-0517dae7c442", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(127,59,8)", "rgb(179,88,6)", "rgb(224,130,20)", "rgb(253,184,99)", "rgb(254,224,182)", "rgb(247,247,247)", "rgb(216,218,235)", "rgb(178,171,210)", "rgb(128,115,172)", "rgb(84,39,136)", "rgb(45,0,75)" ] }, "orientation": "h", "type": "bar", "uid": "07186b22-61f5-42a0-a066-d88e1a09283c", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(142,1,82)", "rgb(197,27,125)", "rgb(222,119,174)", "rgb(241,182,218)", "rgb(253,224,239)", "rgb(247,247,247)", "rgb(230,245,208)", "rgb(184,225,134)", "rgb(127,188,65)", "rgb(77,146,33)", "rgb(39,100,25)" ] }, "orientation": "h", "type": "bar", "uid": "3364ee02-8c80-466c-b083-f5939d9eda92", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(64,0,75)", "rgb(118,42,131)", "rgb(153,112,171)", "rgb(194,165,207)", "rgb(231,212,232)", "rgb(247,247,247)", "rgb(217,240,211)", "rgb(166,219,160)", "rgb(90,174,97)", "rgb(27,120,55)", "rgb(0,68,27)" ] }, "orientation": "h", "type": "bar", "uid": "b0705125-f401-4612-baa7-f515f5c4963a", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(84,48,5)", "rgb(140,81,10)", "rgb(191,129,45)", "rgb(223,194,125)", "rgb(246,232,195)", "rgb(245,245,245)", "rgb(199,234,229)", "rgb(128,205,193)", "rgb(53,151,143)", "rgb(1,102,94)", "rgb(0,60,48)" ] }, "orientation": "h", "type": "bar", "uid": "5f56badc-3ef7-424b-80f0-e6abe22d6839", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG" ] } ], "layout": { "bargap": 0.5, "barmode": "stack", "barnorm": "fraction", "height": 760, "showlegend": false, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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 } } }, "title": { "text": "plotly_express.colors.diverging" }, "xaxis": { "range": [ -0.02, 1.02 ], "showgrid": false, "showticklabels": false } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.colors.diverging.swatches()" ] }, { "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": [ { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#ef55f1", "#fb84ce", "#fbafa1", "#fcd471", "#f0ed35", "#c6e516", "#96d310", "#61c10b", "#31ac28", "#439064", "#3d719a", "#284ec8", "#2e21ea", "#6324f5", "#9139fa", "#c543fa" ] }, "orientation": "h", "type": "bar", "uid": "37e57d86-1321-4286-bf0d-7363022f7bfe", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm", "mygbm" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#f884f7", "#f968c4", "#ea4388", "#cf244b", "#b51a15", "#bd4304", "#cc6904", "#d58f04", "#cfaa27", "#a19f62", "#588a93", "#2269c4", "#3e3ef0", "#6b4ef9", "#956bfa", "#cd7dfe" ] }, "orientation": "h", "type": "bar", "uid": "b8769136-cf65-425b-8ab6-e0b53c1047be", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm", "mrybm" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#ff0000", "#ffa700", "#afff00", "#08ff00", "#00ff9f", "#00b7ff", "#0010ff", "#9700ff", "#ff00bf", "#ff0018" ] }, "orientation": "h", "type": "bar", "uid": "a07defc9-afec-45bb-b5cb-9e8a4e1957f4", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "HSV", "HSV", "HSV", "HSV", "HSV", "HSV", "HSV", "HSV", "HSV", "HSV" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(167, 119, 12)", "rgb(197, 96, 51)", "rgb(217, 67, 96)", "rgb(221, 38, 163)", "rgb(196, 59, 224)", "rgb(153, 97, 244)", "rgb(95, 127, 228)", "rgb(40, 144, 183)", "rgb(15, 151, 136)", "rgb(39, 153, 79)", "rgb(119, 141, 17)", "rgb(167, 119, 12)" ] }, "orientation": "h", "type": "bar", "uid": "3b42aa8f-d07f-47a1-afdf-144cb252f5c3", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Phase", "Phase", "Phase", "Phase", "Phase", "Phase", "Phase", "Phase", "Phase", "Phase", "Phase", "Phase" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#313131", "#3d019d", "#3810dc", "#2d47f9", "#2593ff", "#2adef6", "#60fdfa", "#aefdff", "#f3f3f1", "#fffda9", "#fafd5b", "#f7da29", "#ff8e25", "#f8432d", "#d90d39", "#97023d", "#313131" ] }, "orientation": "h", "type": "bar", "uid": "7b9aabf4-da4f-4cdb-a45d-856c3df8ba65", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge", "Edge" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#000000", "#001f4d", "#003786", "#0e58a8", "#217eb8", "#30a4ca", "#54c8df", "#9be4ef", "#e1e9d1", "#f3d573", "#e7b000", "#da8200", "#c65400", "#ac2301", "#820000", "#4c0000", "#040100" ] }, "orientation": "h", "type": "bar", "uid": "6ffd6062-bb76-44ec-b605-7a76b094d7b8", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire", "IceFire" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "#e2d9e2", "#9ebbc9", "#6785be", "#5e43a5", "#421257", "#471340", "#8e2c50", "#ba6657", "#ceac94", "#e2d9e2" ] }, "orientation": "h", "type": "bar", "uid": "ab10d165-f6ab-46e8-9c7b-09ea2a6bf1b0", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Twilight", "Twilight", "Twilight", "Twilight", "Twilight", "Twilight", "Twilight", "Twilight", "Twilight", "Twilight" ] } ], "layout": { "bargap": 0.5, "barmode": "stack", "barnorm": "fraction", "height": 600, "showlegend": false, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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 } } }, "title": { "text": "plotly_express.colors.cyclical" }, "xaxis": { "range": [ -0.02, 1.02 ], "showgrid": false, "showticklabels": false } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.colors.cyclical.swatches()" ] }, { "cell_type": "code", "execution_count": 50, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "linkText": "Export to plot.ly", "plotlyServerURL": "https://plot.ly", "showLink": false }, "data": [ { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,255,204)", "rgb(255,237,160)", "rgb(254,217,118)", "rgb(254,178,76)", "rgb(253,141,60)", "rgb(252,78,42)", "rgb(227,26,28)", "rgb(189,0,38)", "rgb(128,0,38)" ] }, "orientation": "h", "type": "bar", "uid": "73be4ee3-734d-4eca-a7fb-91900cf3377a", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd", "YlOrRd" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,255,229)", "rgb(255,247,188)", "rgb(254,227,145)", "rgb(254,196,79)", "rgb(254,153,41)", "rgb(236,112,20)", "rgb(204,76,2)", "rgb(153,52,4)", "rgb(102,37,6)" ] }, "orientation": "h", "type": "bar", "uid": "a0f2e80a-bc55-41f6-8c90-6ed2a6ae8c62", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr", "YlOrBr" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,255,217)", "rgb(237,248,177)", "rgb(199,233,180)", "rgb(127,205,187)", "rgb(65,182,196)", "rgb(29,145,192)", "rgb(34,94,168)", "rgb(37,52,148)", "rgb(8,29,88)" ] }, "orientation": "h", "type": "bar", "uid": "d5ddb1a0-d900-4499-a396-b3d074b2bcf6", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu", "YlGnBu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,255,229)", "rgb(247,252,185)", "rgb(217,240,163)", "rgb(173,221,142)", "rgb(120,198,121)", "rgb(65,171,93)", "rgb(35,132,67)", "rgb(0,104,55)", "rgb(0,69,41)" ] }, "orientation": "h", "type": "bar", "uid": "fc956609-a1b3-465a-9fbd-c286177e29f1", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "YlGn", "YlGn", "YlGn", "YlGn", "YlGn", "YlGn", "YlGn", "YlGn", "YlGn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,245,240)", "rgb(254,224,210)", "rgb(252,187,161)", "rgb(252,146,114)", "rgb(251,106,74)", "rgb(239,59,44)", "rgb(203,24,29)", "rgb(165,15,21)", "rgb(103,0,13)" ] }, "orientation": "h", "type": "bar", "uid": "a774bb33-9b2f-4998-86b6-68e4bff33d15", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Reds", "Reds", "Reds", "Reds", "Reds", "Reds", "Reds", "Reds", "Reds" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,247,243)", "rgb(253,224,221)", "rgb(252,197,192)", "rgb(250,159,181)", "rgb(247,104,161)", "rgb(221,52,151)", "rgb(174,1,126)", "rgb(122,1,119)", "rgb(73,0,106)" ] }, "orientation": "h", "type": "bar", "uid": "4587a285-a9b1-4c04-b54b-a2b8f286f06a", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "RdPu", "RdPu", "RdPu", "RdPu", "RdPu", "RdPu", "RdPu", "RdPu", "RdPu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(252,251,253)", "rgb(239,237,245)", "rgb(218,218,235)", "rgb(188,189,220)", "rgb(158,154,200)", "rgb(128,125,186)", "rgb(106,81,163)", "rgb(84,39,143)", "rgb(63,0,125)" ] }, "orientation": "h", "type": "bar", "uid": "652c8e6e-7768-4649-8424-9dc5059b7e15", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Purples", "Purples", "Purples", "Purples", "Purples", "Purples", "Purples", "Purples", "Purples" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,244,249)", "rgb(231,225,239)", "rgb(212,185,218)", "rgb(201,148,199)", "rgb(223,101,176)", "rgb(231,41,138)", "rgb(206,18,86)", "rgb(152,0,67)", "rgb(103,0,31)" ] }, "orientation": "h", "type": "bar", "uid": "adfc1cd1-48df-41fe-b382-f6fe3b4b6829", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PuRd", "PuRd", "PuRd", "PuRd", "PuRd", "PuRd", "PuRd", "PuRd", "PuRd" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,247,251)", "rgb(236,226,240)", "rgb(208,209,230)", "rgb(166,189,219)", "rgb(103,169,207)", "rgb(54,144,192)", "rgb(2,129,138)", "rgb(1,108,89)", "rgb(1,70,54)" ] }, "orientation": "h", "type": "bar", "uid": "0d55675a-b649-4af7-8b47-87d6176945d7", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn", "PuBuGn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,247,251)", "rgb(236,231,242)", "rgb(208,209,230)", "rgb(166,189,219)", "rgb(116,169,207)", "rgb(54,144,192)", "rgb(5,112,176)", "rgb(4,90,141)", "rgb(2,56,88)" ] }, "orientation": "h", "type": "bar", "uid": "946fb04b-efee-4554-9092-eed1a02d4c0f", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PuBu", "PuBu", "PuBu", "PuBu", "PuBu", "PuBu", "PuBu", "PuBu", "PuBu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,245,235)", "rgb(254,230,206)", "rgb(253,208,162)", "rgb(253,174,107)", "rgb(253,141,60)", "rgb(241,105,19)", "rgb(217,72,1)", "rgb(166,54,3)", "rgb(127,39,4)" ] }, "orientation": "h", "type": "bar", "uid": "7633ab96-95f1-44d2-bc6c-62dd8b943f4c", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Oranges", "Oranges", "Oranges", "Oranges", "Oranges", "Oranges", "Oranges", "Oranges", "Oranges" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,247,236)", "rgb(254,232,200)", "rgb(253,212,158)", "rgb(253,187,132)", "rgb(252,141,89)", "rgb(239,101,72)", "rgb(215,48,31)", "rgb(179,0,0)", "rgb(127,0,0)" ] }, "orientation": "h", "type": "bar", "uid": "b120c7e2-c368-47c5-b3af-1d9b6b0ffd25", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "OrRd", "OrRd", "OrRd", "OrRd", "OrRd", "OrRd", "OrRd", "OrRd", "OrRd" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255,255,255)", "rgb(240,240,240)", "rgb(217,217,217)", "rgb(189,189,189)", "rgb(150,150,150)", "rgb(115,115,115)", "rgb(82,82,82)", "rgb(37,37,37)", "rgb(0,0,0)" ] }, "orientation": "h", "type": "bar", "uid": "e85c7df8-6f9c-4579-b6b0-a6c3492f3ac3", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Greys", "Greys", "Greys", "Greys", "Greys", "Greys", "Greys", "Greys", "Greys" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,252,245)", "rgb(229,245,224)", "rgb(199,233,192)", "rgb(161,217,155)", "rgb(116,196,118)", "rgb(65,171,93)", "rgb(35,139,69)", "rgb(0,109,44)", "rgb(0,68,27)" ] }, "orientation": "h", "type": "bar", "uid": "8f9e2abe-e89b-426c-9e34-e662dcf1fc41", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Greens", "Greens", "Greens", "Greens", "Greens", "Greens", "Greens", "Greens", "Greens" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,252,240)", "rgb(224,243,219)", "rgb(204,235,197)", "rgb(168,221,181)", "rgb(123,204,196)", "rgb(78,179,211)", "rgb(43,140,190)", "rgb(8,104,172)", "rgb(8,64,129)" ] }, "orientation": "h", "type": "bar", "uid": "7f05c69b-e0b0-480c-bc29-1dee97760116", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "GnBu", "GnBu", "GnBu", "GnBu", "GnBu", "GnBu", "GnBu", "GnBu", "GnBu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,252,253)", "rgb(224,236,244)", "rgb(191,211,230)", "rgb(158,188,218)", "rgb(140,150,198)", "rgb(140,107,177)", "rgb(136,65,157)", "rgb(129,15,124)", "rgb(77,0,75)" ] }, "orientation": "h", "type": "bar", "uid": "08f70b99-314f-4555-917b-2c6b00790e76", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "BuPu", "BuPu", "BuPu", "BuPu", "BuPu", "BuPu", "BuPu", "BuPu", "BuPu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,252,253)", "rgb(229,245,249)", "rgb(204,236,230)", "rgb(153,216,201)", "rgb(102,194,164)", "rgb(65,174,118)", "rgb(35,139,69)", "rgb(0,109,44)", "rgb(0,68,27)" ] }, "orientation": "h", "type": "bar", "uid": "299ec7e4-f64d-4e91-bfec-e8adc9666c8a", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "BuGn", "BuGn", "BuGn", "BuGn", "BuGn", "BuGn", "BuGn", "BuGn", "BuGn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247,251,255)", "rgb(222,235,247)", "rgb(198,219,239)", "rgb(158,202,225)", "rgb(107,174,214)", "rgb(66,146,198)", "rgb(33,113,181)", "rgb(8,81,156)", "rgb(8,48,107)" ] }, "orientation": "h", "type": "bar", "uid": "8bc8a05c-a19c-496a-b7c5-2e2f4e8c5f74", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Blues", "Blues", "Blues", "Blues", "Blues", "Blues", "Blues", "Blues", "Blues" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(166,206,227)", "rgb(31,120,180)", "rgb(178,223,138)", "rgb(51,160,44)", "rgb(251,154,153)", "rgb(227,26,28)", "rgb(253,191,111)", "rgb(255,127,0)", "rgb(202,178,214)", "rgb(106,61,154)", "rgb(255,255,153)", "rgb(177,89,40)" ] }, "orientation": "h", "type": "bar", "uid": "9c245abb-edcd-4e73-a30a-3856dbc904ff", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Paired", "Paired", "Paired", "Paired", "Paired", "Paired", "Paired", "Paired", "Paired", "Paired", "Paired", "Paired" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(127,201,127)", "rgb(190,174,212)", "rgb(253,192,134)", "rgb(255,255,153)", "rgb(56,108,176)", "rgb(240,2,127)", "rgb(191,91,23)", "rgb(102,102,102)" ] }, "orientation": "h", "type": "bar", "uid": "f861615f-e0bd-4a05-999f-15ca0759cf92", "x": [ 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Accent", "Accent", "Accent", "Accent", "Accent", "Accent", "Accent", "Accent" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(141,211,199)", "rgb(255,255,179)", "rgb(190,186,218)", "rgb(251,128,114)", "rgb(128,177,211)", "rgb(253,180,98)", "rgb(179,222,105)", "rgb(252,205,229)", "rgb(217,217,217)", "rgb(188,128,189)", "rgb(204,235,197)", "rgb(255,237,111)" ] }, "orientation": "h", "type": "bar", "uid": "6f1587d6-ab22-4e49-be04-790d2e276e77", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3", "Set3" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(179,226,205)", "rgb(253,205,172)", "rgb(203,213,232)", "rgb(244,202,228)", "rgb(230,245,201)", "rgb(255,242,174)", "rgb(241,226,204)", "rgb(204,204,204)" ] }, "orientation": "h", "type": "bar", "uid": "5dfad383-cf8e-4098-8dab-40cdabb3d9fc", "x": [ 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Pastel2", "Pastel2", "Pastel2", "Pastel2", "Pastel2", "Pastel2", "Pastel2", "Pastel2" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(102,194,165)", "rgb(252,141,98)", "rgb(141,160,203)", "rgb(231,138,195)", "rgb(166,216,84)", "rgb(255,217,47)", "rgb(229,196,148)", "rgb(179,179,179)" ] }, "orientation": "h", "type": "bar", "uid": "f494272a-b4fa-4ebd-aad1-8b8e0face1c6", "x": [ 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Set2", "Set2", "Set2", "Set2", "Set2", "Set2", "Set2", "Set2" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(27,158,119)", "rgb(217,95,2)", "rgb(117,112,179)", "rgb(231,41,138)", "rgb(102,166,30)", "rgb(230,171,2)", "rgb(166,118,29)", "rgb(102,102,102)" ] }, "orientation": "h", "type": "bar", "uid": "c861c483-3e23-41e5-991d-5e11796fc4a2", "x": [ 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Dark2", "Dark2", "Dark2", "Dark2", "Dark2", "Dark2", "Dark2", "Dark2" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(251,180,174)", "rgb(179,205,227)", "rgb(204,235,197)", "rgb(222,203,228)", "rgb(254,217,166)", "rgb(255,255,204)", "rgb(229,216,189)", "rgb(253,218,236)", "rgb(242,242,242)" ] }, "orientation": "h", "type": "bar", "uid": "2e6e265b-c305-408e-a0ad-f2e5cf0d4742", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Pastel1", "Pastel1", "Pastel1", "Pastel1", "Pastel1", "Pastel1", "Pastel1", "Pastel1", "Pastel1" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(228,26,28)", "rgb(55,126,184)", "rgb(77,175,74)", "rgb(152,78,163)", "rgb(255,127,0)", "rgb(255,255,51)", "rgb(166,86,40)", "rgb(247,129,191)", "rgb(153,153,153)" ] }, "orientation": "h", "type": "bar", "uid": "772c00c4-88cb-4497-b4e2-fdfd66f9cb37", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Set1", "Set1", "Set1", "Set1", "Set1", "Set1", "Set1", "Set1", "Set1" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(158,1,66)", "rgb(213,62,79)", "rgb(244,109,67)", "rgb(253,174,97)", "rgb(254,224,139)", "rgb(255,255,191)", "rgb(230,245,152)", "rgb(171,221,164)", "rgb(102,194,165)", "rgb(50,136,189)", "rgb(94,79,162)" ] }, "orientation": "h", "type": "bar", "uid": "9549aa22-ec6a-43b3-8c81-116cebc9b1aa", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral", "Spectral" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(165,0,38)", "rgb(215,48,39)", "rgb(244,109,67)", "rgb(253,174,97)", "rgb(254,224,139)", "rgb(255,255,191)", "rgb(217,239,139)", "rgb(166,217,106)", "rgb(102,189,99)", "rgb(26,152,80)", "rgb(0,104,55)" ] }, "orientation": "h", "type": "bar", "uid": "f8804b24-64e1-4411-b1eb-b9cd287b7086", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn", "RdYlGn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(165,0,38)", "rgb(215,48,39)", "rgb(244,109,67)", "rgb(253,174,97)", "rgb(254,224,144)", "rgb(255,255,191)", "rgb(224,243,248)", "rgb(171,217,233)", "rgb(116,173,209)", "rgb(69,117,180)", "rgb(49,54,149)" ] }, "orientation": "h", "type": "bar", "uid": "83642aa6-98d4-4112-be1d-ef3174e1b3d3", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu", "RdYlBu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(103,0,31)", "rgb(178,24,43)", "rgb(214,96,77)", "rgb(244,165,130)", "rgb(253,219,199)", "rgb(255,255,255)", "rgb(224,224,224)", "rgb(186,186,186)", "rgb(135,135,135)", "rgb(77,77,77)", "rgb(26,26,26)" ] }, "orientation": "h", "type": "bar", "uid": "cb83694b-4526-4638-bbb0-5f1a42cce464", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy", "RdGy" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(103,0,31)", "rgb(178,24,43)", "rgb(214,96,77)", "rgb(244,165,130)", "rgb(253,219,199)", "rgb(247,247,247)", "rgb(209,229,240)", "rgb(146,197,222)", "rgb(67,147,195)", "rgb(33,102,172)", "rgb(5,48,97)" ] }, "orientation": "h", "type": "bar", "uid": "06923529-c430-4cf4-bb32-4e9318ddfcd2", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu", "RdBu" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(127,59,8)", "rgb(179,88,6)", "rgb(224,130,20)", "rgb(253,184,99)", "rgb(254,224,182)", "rgb(247,247,247)", "rgb(216,218,235)", "rgb(178,171,210)", "rgb(128,115,172)", "rgb(84,39,136)", "rgb(45,0,75)" ] }, "orientation": "h", "type": "bar", "uid": "315e70dd-66b4-4546-b009-c0d66b19fd3d", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr", "PuOr" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(142,1,82)", "rgb(197,27,125)", "rgb(222,119,174)", "rgb(241,182,218)", "rgb(253,224,239)", "rgb(247,247,247)", "rgb(230,245,208)", "rgb(184,225,134)", "rgb(127,188,65)", "rgb(77,146,33)", "rgb(39,100,25)" ] }, "orientation": "h", "type": "bar", "uid": "cbcf2a8a-9e1b-493e-ab78-123dd13a5934", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG", "PiYG" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(64,0,75)", "rgb(118,42,131)", "rgb(153,112,171)", "rgb(194,165,207)", "rgb(231,212,232)", "rgb(247,247,247)", "rgb(217,240,211)", "rgb(166,219,160)", "rgb(90,174,97)", "rgb(27,120,55)", "rgb(0,68,27)" ] }, "orientation": "h", "type": "bar", "uid": "50d256dc-27b1-4bcd-8409-f7149cae796a", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn", "PRGn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(84,48,5)", "rgb(140,81,10)", "rgb(191,129,45)", "rgb(223,194,125)", "rgb(246,232,195)", "rgb(245,245,245)", "rgb(199,234,229)", "rgb(128,205,193)", "rgb(53,151,143)", "rgb(1,102,94)", "rgb(0,60,48)" ] }, "orientation": "h", "type": "bar", "uid": "ab5dfe3b-3570-48be-a7dc-8506b89027fd", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG", "BrBG" ] } ], "layout": { "bargap": 0.5, "barmode": "stack", "barnorm": "fraction", "height": 1400, "showlegend": false, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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 } } }, "title": { "text": "plotly_express.colors.colorbrewer" }, "xaxis": { "range": [ -0.02, 1.02 ], "showgrid": false, "showticklabels": false } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.colors.colorbrewer.swatches()" ] }, { "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": [ { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(20, 29, 67)", "rgb(28, 72, 93)", "rgb(18, 115, 117)", "rgb(63, 156, 129)", "rgb(153, 189, 156)", "rgb(223, 225, 211)", "rgb(241, 218, 206)", "rgb(224, 160, 137)", "rgb(203, 101, 99)", "rgb(164, 54, 96)", "rgb(111, 23, 91)", "rgb(51, 13, 53)" ] }, "orientation": "h", "type": "bar", "uid": "21b0c4f5-7b38-4f59-bb9d-634bf8e369e5", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "curl", "curl", "curl", "curl", "curl", "curl", "curl", "curl", "curl", "curl", "curl", "curl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(16, 31, 63)", "rgb(38, 62, 144)", "rgb(30, 110, 161)", "rgb(60, 154, 171)", "rgb(140, 193, 186)", "rgb(217, 229, 218)", "rgb(239, 226, 156)", "rgb(195, 182, 59)", "rgb(115, 152, 5)", "rgb(34, 120, 36)", "rgb(18, 78, 43)", "rgb(23, 35, 18)" ] }, "orientation": "h", "type": "bar", "uid": "beddfc36-d830-4ba8-be5e-bb0d2ff93d6b", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "delta", "delta", "delta", "delta", "delta", "delta", "delta", "delta", "delta", "delta", "delta", "delta" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(23, 28, 66)", "rgb(41, 58, 143)", "rgb(11, 102, 189)", "rgb(69, 144, 185)", "rgb(142, 181, 194)", "rgb(210, 216, 219)", "rgb(230, 210, 204)", "rgb(213, 157, 137)", "rgb(196, 101, 72)", "rgb(172, 43, 36)", "rgb(120, 14, 40)", "rgb(60, 9, 17)" ] }, "orientation": "h", "type": "bar", "uid": "dcaa6e7f-24a2-4c5e-ae3a-376e71bffd99", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "balance", "balance", "balance", "balance", "balance", "balance", "balance", "balance", "balance", "balance", "balance", "balance" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(167, 119, 12)", "rgb(197, 96, 51)", "rgb(217, 67, 96)", "rgb(221, 38, 163)", "rgb(196, 59, 224)", "rgb(153, 97, 244)", "rgb(95, 127, 228)", "rgb(40, 144, 183)", "rgb(15, 151, 136)", "rgb(39, 153, 79)", "rgb(119, 141, 17)", "rgb(167, 119, 12)" ] }, "orientation": "h", "type": "bar", "uid": "28146440-235d-4696-8a1c-334d95814cb4", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "phase", "phase", "phase", "phase", "phase", "phase", "phase", "phase", "phase", "phase", "phase", "phase" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(254, 245, 244)", "rgb(222, 224, 210)", "rgb(189, 206, 181)", "rgb(153, 189, 156)", "rgb(110, 173, 138)", "rgb(65, 157, 129)", "rgb(25, 137, 125)", "rgb(18, 116, 117)", "rgb(25, 94, 106)", "rgb(28, 72, 93)", "rgb(25, 51, 80)", "rgb(20, 29, 67)" ] }, "orientation": "h", "type": "bar", "uid": "f6ad1b04-c4bf-42fb-98bd-2474f2366c93", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo", "tempo" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(241, 236, 236)", "rgb(230, 209, 203)", "rgb(221, 182, 170)", "rgb(213, 156, 137)", "rgb(205, 129, 103)", "rgb(196, 102, 73)", "rgb(186, 74, 47)", "rgb(172, 44, 36)", "rgb(149, 19, 39)", "rgb(120, 14, 40)", "rgb(89, 13, 31)", "rgb(60, 9, 17)" ] }, "orientation": "h", "type": "bar", "uid": "a1fab3b3-8014-4dba-a752-011fc28eba34", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "amp", "amp", "amp", "amp", "amp", "amp", "amp", "amp", "amp", "amp", "amp", "amp" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(254, 252, 205)", "rgb(239, 225, 156)", "rgb(221, 201, 106)", "rgb(194, 182, 59)", "rgb(157, 167, 21)", "rgb(116, 153, 5)", "rgb(75, 138, 20)", "rgb(35, 121, 36)", "rgb(11, 100, 44)", "rgb(18, 78, 43)", "rgb(25, 56, 34)", "rgb(23, 35, 18)" ] }, "orientation": "h", "type": "bar", "uid": "3fbe414e-16ff-48a5-9efc-c69748a262f6", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "speed", "speed", "speed", "speed", "speed", "speed", "speed", "speed", "speed", "speed", "speed", "speed" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(253, 237, 176)", "rgb(250, 205, 145)", "rgb(246, 173, 119)", "rgb(240, 142, 98)", "rgb(231, 109, 84)", "rgb(216, 80, 83)", "rgb(195, 56, 90)", "rgb(168, 40, 96)", "rgb(138, 29, 99)", "rgb(107, 24, 93)", "rgb(76, 21, 80)", "rgb(47, 15, 61)" ] }, "orientation": "h", "type": "bar", "uid": "bd274972-f376-485c-99ea-ae080fe91a08", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "matter", "matter", "matter", "matter", "matter", "matter", "matter", "matter", "matter", "matter", "matter", "matter" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(214, 249, 207)", "rgb(186, 228, 174)", "rgb(156, 209, 143)", "rgb(124, 191, 115)", "rgb(85, 174, 91)", "rgb(37, 157, 81)", "rgb(7, 138, 78)", "rgb(13, 117, 71)", "rgb(23, 95, 61)", "rgb(25, 75, 49)", "rgb(23, 55, 35)", "rgb(17, 36, 20)" ] }, "orientation": "h", "type": "bar", "uid": "571feb73-4dbc-4487-8fe8-2c9e67746c0a", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae", "algae" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(230, 240, 240)", "rgb(191, 221, 229)", "rgb(156, 201, 226)", "rgb(129, 180, 227)", "rgb(115, 154, 228)", "rgb(117, 127, 221)", "rgb(120, 100, 202)", "rgb(119, 74, 175)", "rgb(113, 50, 141)", "rgb(100, 31, 104)", "rgb(80, 20, 66)", "rgb(54, 14, 36)" ] }, "orientation": "h", "type": "bar", "uid": "3f26c67d-9932-4b61-a33f-c2e34d48ae20", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "dense", "dense", "dense", "dense", "dense", "dense", "dense", "dense", "dense", "dense", "dense", "dense" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(253, 253, 204)", "rgb(206, 236, 179)", "rgb(156, 219, 165)", "rgb(111, 201, 163)", "rgb(86, 177, 163)", "rgb(76, 153, 160)", "rgb(68, 130, 155)", "rgb(62, 108, 150)", "rgb(62, 82, 143)", "rgb(64, 60, 115)", "rgb(54, 43, 77)", "rgb(39, 26, 44)" ] }, "orientation": "h", "type": "bar", "uid": "ca992979-eb61-4f17-954f-c8589df53e09", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep", "deep" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(63, 5, 5)", "rgb(101, 6, 13)", "rgb(138, 17, 9)", "rgb(96, 95, 95)", "rgb(119, 118, 118)", "rgb(142, 141, 141)", "rgb(166, 166, 165)", "rgb(193, 192, 191)", "rgb(222, 222, 220)", "rgb(239, 248, 90)", "rgb(230, 210, 41)", "rgb(220, 174, 25)" ] }, "orientation": "h", "type": "bar", "uid": "fe755925-3c19-4487-bd46-dc84d8b8f455", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "oxy", "oxy", "oxy", "oxy", "oxy", "oxy", "oxy", "oxy", "oxy", "oxy", "oxy", "oxy" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(0, 0, 0)", "rgb(16, 16, 16)", "rgb(38, 38, 38)", "rgb(59, 59, 59)", "rgb(81, 80, 80)", "rgb(102, 101, 101)", "rgb(124, 123, 122)", "rgb(146, 146, 145)", "rgb(171, 171, 170)", "rgb(197, 197, 195)", "rgb(224, 224, 223)", "rgb(254, 254, 253)" ] }, "orientation": "h", "type": "bar", "uid": "6b6f160e-9db3-4aae-9dc2-177e3551b302", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray", "gray" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(3, 5, 18)", "rgb(25, 25, 51)", "rgb(44, 42, 87)", "rgb(58, 60, 125)", "rgb(62, 83, 160)", "rgb(62, 109, 178)", "rgb(72, 134, 187)", "rgb(89, 159, 196)", "rgb(114, 184, 205)", "rgb(149, 207, 216)", "rgb(192, 229, 232)", "rgb(234, 252, 253)" ] }, "orientation": "h", "type": "bar", "uid": "20537429-0178-42aa-bfcd-b3f601391257", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "ice", "ice", "ice", "ice", "ice", "ice", "ice", "ice", "ice", "ice", "ice", "ice" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(51, 19, 23)", "rgb(79, 28, 33)", "rgb(108, 36, 36)", "rgb(135, 47, 32)", "rgb(157, 66, 25)", "rgb(174, 88, 20)", "rgb(188, 111, 19)", "rgb(199, 137, 22)", "rgb(209, 164, 32)", "rgb(217, 192, 44)", "rgb(222, 222, 59)", "rgb(224, 253, 74)" ] }, "orientation": "h", "type": "bar", "uid": "8b40fdb8-88eb-40ce-9e61-4cc8c4d5c767", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "solar", "solar", "solar", "solar", "solar", "solar", "solar", "solar", "solar", "solar", "solar", "solar" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(41, 24, 107)", "rgb(42, 35, 160)", "rgb(15, 71, 153)", "rgb(18, 95, 142)", "rgb(38, 116, 137)", "rgb(53, 136, 136)", "rgb(65, 157, 133)", "rgb(81, 178, 124)", "rgb(111, 198, 107)", "rgb(160, 214, 91)", "rgb(212, 225, 112)", "rgb(253, 238, 153)" ] }, "orientation": "h", "type": "bar", "uid": "c01510ac-e946-4340-85ec-35009eab00c8", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "haline", "haline", "haline", "haline", "haline", "haline", "haline", "haline", "haline", "haline", "haline", "haline" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(3, 35, 51)", "rgb(13, 48, 100)", "rgb(53, 50, 155)", "rgb(93, 62, 153)", "rgb(126, 77, 143)", "rgb(158, 89, 135)", "rgb(193, 100, 121)", "rgb(225, 113, 97)", "rgb(246, 139, 69)", "rgb(251, 173, 60)", "rgb(246, 211, 70)", "rgb(231, 250, 90)" ] }, "orientation": "h", "type": "bar", "uid": "127ecfe6-91c2-469b-85a4-7022b81e6148", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal", "thermal" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(232, 245, 171)", "rgb(220, 219, 137)", "rgb(209, 193, 107)", "rgb(199, 168, 83)", "rgb(186, 143, 66)", "rgb(170, 121, 60)", "rgb(151, 103, 58)", "rgb(129, 87, 56)", "rgb(104, 72, 53)", "rgb(80, 59, 46)", "rgb(57, 45, 37)", "rgb(34, 30, 27)" ] }, "orientation": "h", "type": "bar", "uid": "aa7ea0c6-2814-4c1f-a4a1-c12c4acfd502", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid", "turbid" ] } ], "layout": { "bargap": 0.5, "barmode": "stack", "barnorm": "fraction", "height": 720, "showlegend": false, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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 } } }, "title": { "text": "plotly_express.colors.cmocean" }, "xaxis": { "range": [ -0.02, 1.02 ], "showgrid": false, "showticklabels": false } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.colors.cmocean.swatches()" ] }, { "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": [ { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(229, 134, 6)", "rgb(93, 105, 177)", "rgb(82, 188, 163)", "rgb(153, 201, 69)", "rgb(204, 97, 176)", "rgb(36, 121, 108)", "rgb(218, 165, 27)", "rgb(47, 138, 196)", "rgb(118, 78, 159)", "rgb(237, 100, 90)", "rgb(165, 170, 153)" ] }, "orientation": "h", "type": "bar", "uid": "85bc89ea-ea06-4e6b-95e1-bf78b0f132c6", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid", "Vivid" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(136, 204, 238)", "rgb(204, 102, 119)", "rgb(221, 204, 119)", "rgb(17, 119, 51)", "rgb(51, 34, 136)", "rgb(170, 68, 153)", "rgb(68, 170, 153)", "rgb(153, 153, 51)", "rgb(136, 34, 85)", "rgb(102, 17, 0)", "rgb(136, 136, 136)" ] }, "orientation": "h", "type": "bar", "uid": "6e5c4720-c40f-4c4d-a862-c1c8bffb9f0a", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Safe", "Safe", "Safe", "Safe", "Safe", "Safe", "Safe", "Safe", "Safe", "Safe", "Safe" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(95, 70, 144)", "rgb(29, 105, 150)", "rgb(56, 166, 165)", "rgb(15, 133, 84)", "rgb(115, 175, 72)", "rgb(237, 173, 8)", "rgb(225, 124, 5)", "rgb(204, 80, 62)", "rgb(148, 52, 110)", "rgb(111, 64, 112)", "rgb(102, 102, 102)" ] }, "orientation": "h", "type": "bar", "uid": "a7265f19-7edd-4c3a-8448-df6a27334d6f", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Prism", "Prism", "Prism", "Prism", "Prism", "Prism", "Prism", "Prism", "Prism", "Prism", "Prism" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(102, 197, 204)", "rgb(246, 207, 113)", "rgb(248, 156, 116)", "rgb(220, 176, 242)", "rgb(135, 197, 95)", "rgb(158, 185, 243)", "rgb(254, 136, 177)", "rgb(201, 219, 116)", "rgb(139, 224, 164)", "rgb(180, 151, 231)", "rgb(179, 179, 179)" ] }, "orientation": "h", "type": "bar", "uid": "16aeaaf5-9e11-4407-80e1-9b4c23986d3c", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel", "Pastel" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(127, 60, 141)", "rgb(17, 165, 121)", "rgb(57, 105, 172)", "rgb(242, 183, 1)", "rgb(231, 63, 116)", "rgb(128, 186, 90)", "rgb(230, 131, 16)", "rgb(0, 134, 149)", "rgb(207, 28, 144)", "rgb(249, 123, 114)", "rgb(165, 170, 153)" ] }, "orientation": "h", "type": "bar", "uid": "d5b5cc64-89e3-4df0-b58c-361be79690f9", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Bold", "Bold", "Bold", "Bold", "Bold", "Bold", "Bold", "Bold", "Bold", "Bold", "Bold" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(133, 92, 117)", "rgb(217, 175, 107)", "rgb(175, 100, 88)", "rgb(115, 111, 76)", "rgb(82, 106, 131)", "rgb(98, 83, 119)", "rgb(104, 133, 92)", "rgb(156, 156, 94)", "rgb(160, 97, 119)", "rgb(140, 120, 93)", "rgb(124, 124, 124)" ] }, "orientation": "h", "type": "bar", "uid": "ef92b327-93c6-453b-8620-201db0816d8f", "x": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Antique", "Antique", "Antique", "Antique", "Antique", "Antique", "Antique", "Antique", "Antique", "Antique", "Antique" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(161, 105, 40)", "rgb(189, 146, 90)", "rgb(214, 189, 141)", "rgb(237, 234, 194)", "rgb(181, 200, 184)", "rgb(121, 167, 172)", "rgb(40, 135, 161)" ] }, "orientation": "h", "type": "bar", "uid": "7dc78a99-4468-4406-976e-48c41b6eac72", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Earth", "Earth", "Earth", "Earth", "Earth", "Earth", "Earth" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(0, 155, 158)", "rgb(66, 183, 185)", "rgb(167, 211, 212)", "rgb(241, 241, 241)", "rgb(228, 193, 217)", "rgb(214, 145, 193)", "rgb(199, 93, 171)" ] }, "orientation": "h", "type": "bar", "uid": "e5a8145d-42ad-4b23-aa0a-c599a2d5946b", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Tropic", "Tropic", "Tropic", "Tropic", "Tropic", "Tropic", "Tropic" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(0, 147, 146)", "rgb(114, 170, 161)", "rgb(177, 199, 179)", "rgb(241, 234, 200)", "rgb(229, 185, 173)", "rgb(217, 137, 148)", "rgb(208, 88, 126)" ] }, "orientation": "h", "type": "bar", "uid": "b77fd980-9c9a-4985-802f-ddc3d0e52d75", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Tealrose", "Tealrose", "Tealrose", "Tealrose", "Tealrose", "Tealrose", "Tealrose" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(0, 147, 146)", "rgb(57, 177, 133)", "rgb(156, 203, 134)", "rgb(233, 226, 156)", "rgb(238, 180, 121)", "rgb(232, 132, 113)", "rgb(207, 89, 126)" ] }, "orientation": "h", "type": "bar", "uid": "488a7180-ac2c-4322-88ab-25a28ec7409d", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Temps", "Temps", "Temps", "Temps", "Temps", "Temps", "Temps" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(0, 128, 128)", "rgb(112, 164, 148)", "rgb(180, 200, 168)", "rgb(246, 237, 189)", "rgb(237, 187, 138)", "rgb(222, 138, 90)", "rgb(202, 86, 44)" ] }, "orientation": "h", "type": "bar", "uid": "b1e10a10-ed0c-4436-a982-08311fbaa194", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Geyser", "Geyser", "Geyser", "Geyser", "Geyser", "Geyser", "Geyser" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(61, 89, 65)", "rgb(119, 136, 104)", "rgb(181, 185, 145)", "rgb(246, 237, 189)", "rgb(237, 187, 138)", "rgb(222, 138, 90)", "rgb(202, 86, 44)" ] }, "orientation": "h", "type": "bar", "uid": "c63f3172-a963-4efc-abda-c972777cfe5d", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Fall", "Fall", "Fall", "Fall", "Fall", "Fall", "Fall" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(121, 130, 52)", "rgb(163, 173, 98)", "rgb(208, 211, 162)", "rgb(253, 251, 228)", "rgb(240, 198, 195)", "rgb(223, 145, 163)", "rgb(212, 103, 128)" ] }, "orientation": "h", "type": "bar", "uid": "7a6762bb-0647-4566-9f7f-5b2a0b26e594", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Armyrose", "Armyrose", "Armyrose", "Armyrose", "Armyrose", "Armyrose", "Armyrose" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(237, 229, 207)", "rgb(224, 194, 162)", "rgb(211, 156, 131)", "rgb(193, 118, 111)", "rgb(166, 84, 97)", "rgb(129, 55, 83)", "rgb(84, 31, 63)" ] }, "orientation": "h", "type": "bar", "uid": "2c19d858-e43e-4841-a314-1f2b3cc7b628", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Brwnyl", "Brwnyl", "Brwnyl", "Brwnyl", "Brwnyl", "Brwnyl", "Brwnyl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(75, 41, 145)", "rgb(135, 44, 162)", "rgb(192, 54, 157)", "rgb(234, 79, 136)", "rgb(250, 120, 118)", "rgb(246, 169, 122)", "rgb(237, 217, 163)" ] }, "orientation": "h", "type": "bar", "uid": "a4e0e0fa-786d-4d1f-a1e7-0b35ffa503be", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Agsunset", "Agsunset", "Agsunset", "Agsunset", "Agsunset", "Agsunset", "Agsunset" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(252, 222, 156)", "rgb(250, 164, 118)", "rgb(240, 116, 110)", "rgb(227, 79, 111)", "rgb(220, 57, 119)", "rgb(185, 37, 122)", "rgb(124, 29, 111)" ] }, "orientation": "h", "type": "bar", "uid": "86e7e0b4-c8dc-4011-b542-012314382786", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Sunsetdark", "Sunsetdark", "Sunsetdark", "Sunsetdark", "Sunsetdark", "Sunsetdark", "Sunsetdark" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(243, 203, 211)", "rgb(234, 169, 189)", "rgb(221, 136, 172)", "rgb(202, 105, 157)", "rgb(177, 77, 142)", "rgb(145, 53, 125)", "rgb(108, 33, 103)" ] }, "orientation": "h", "type": "bar", "uid": "06f43d4a-ccb4-420f-ba70-31f22ee62277", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Magenta", "Magenta", "Magenta", "Magenta", "Magenta", "Magenta", "Magenta" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(243, 231, 155)", "rgb(250, 196, 132)", "rgb(248, 160, 126)", "rgb(235, 127, 134)", "rgb(206, 102, 147)", "rgb(160, 89, 160)", "rgb(92, 83, 165)" ] }, "orientation": "h", "type": "bar", "uid": "84e0735a-4078-4a71-8126-ad59cfc1e3df", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Sunset", "Sunset", "Sunset", "Sunset", "Sunset", "Sunset", "Sunset" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(249, 221, 218)", "rgb(242, 185, 196)", "rgb(229, 151, 185)", "rgb(206, 120, 179)", "rgb(173, 95, 173)", "rgb(131, 75, 160)", "rgb(87, 59, 136)" ] }, "orientation": "h", "type": "bar", "uid": "17fddf6a-9048-422f-b5c3-a842412efa26", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Purpor", "Purpor", "Purpor", "Purpor", "Purpor", "Purpor", "Purpor" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(243, 224, 247)", "rgb(228, 199, 241)", "rgb(209, 175, 232)", "rgb(185, 152, 221)", "rgb(159, 130, 206)", "rgb(130, 109, 186)", "rgb(99, 88, 159)" ] }, "orientation": "h", "type": "bar", "uid": "46f0dd6d-b887-44fd-aa03-3ba29914c046", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Purp", "Purp", "Purp", "Purp", "Purp", "Purp", "Purp" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(176, 242, 188)", "rgb(137, 232, 172)", "rgb(103, 219, 165)", "rgb(76, 200, 163)", "rgb(56, 178, 163)", "rgb(44, 152, 160)", "rgb(37, 125, 152)" ] }, "orientation": "h", "type": "bar", "uid": "a7da0095-401b-4a60-bed6-3363567d41ab", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Tealgrn", "Tealgrn", "Tealgrn", "Tealgrn", "Tealgrn", "Tealgrn", "Tealgrn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(209, 238, 234)", "rgb(168, 219, 217)", "rgb(133, 196, 201)", "rgb(104, 171, 184)", "rgb(79, 144, 166)", "rgb(59, 115, 143)", "rgb(42, 86, 116)" ] }, "orientation": "h", "type": "bar", "uid": "7eafa7b3-d9a3-43ee-a396-7ece084214e7", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Teal", "Teal", "Teal", "Teal", "Teal", "Teal", "Teal" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(247, 254, 174)", "rgb(183, 230, 165)", "rgb(124, 203, 162)", "rgb(70, 174, 160)", "rgb(8, 144, 153)", "rgb(0, 113, 139)", "rgb(4, 82, 117)" ] }, "orientation": "h", "type": "bar", "uid": "dc807f8d-9f99-4977-83bc-70d0b92cd1c2", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Bluyl", "Bluyl", "Bluyl", "Bluyl", "Bluyl", "Bluyl", "Bluyl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(36, 86, 104)", "rgb(15, 114, 121)", "rgb(13, 143, 129)", "rgb(57, 171, 126)", "rgb(110, 197, 116)", "rgb(169, 220, 103)", "rgb(237, 239, 93)" ] }, "orientation": "h", "type": "bar", "uid": "54f50eed-0773-4675-8976-79f1ca7d6112", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Aggrnyl", "Aggrnyl", "Aggrnyl", "Aggrnyl", "Aggrnyl", "Aggrnyl", "Aggrnyl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(211, 242, 163)", "rgb(151, 225, 150)", "rgb(108, 192, 139)", "rgb(76, 155, 130)", "rgb(33, 122, 121)", "rgb(16, 89, 101)", "rgb(7, 64, 80)" ] }, "orientation": "h", "type": "bar", "uid": "f16d2f01-b218-4514-ad1d-b1f0ae3405f4", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Emrld", "Emrld", "Emrld", "Emrld", "Emrld", "Emrld", "Emrld" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(210, 251, 212)", "rgb(165, 219, 194)", "rgb(123, 188, 176)", "rgb(85, 156, 158)", "rgb(58, 124, 137)", "rgb(35, 93, 114)", "rgb(18, 63, 90)" ] }, "orientation": "h", "type": "bar", "uid": "2a935452-c221-454a-83c0-255f817ebf0f", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Darkmint", "Darkmint", "Darkmint", "Darkmint", "Darkmint", "Darkmint", "Darkmint" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(196, 230, 195)", "rgb(150, 210, 164)", "rgb(109, 188, 144)", "rgb(77, 162, 132)", "rgb(54, 135, 122)", "rgb(38, 107, 110)", "rgb(29, 79, 96)" ] }, "orientation": "h", "type": "bar", "uid": "aefebe42-052c-4221-892a-1a5b5a200d9a", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Blugrn", "Blugrn", "Blugrn", "Blugrn", "Blugrn", "Blugrn", "Blugrn" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(228, 241, 225)", "rgb(180, 217, 204)", "rgb(137, 192, 182)", "rgb(99, 166, 160)", "rgb(68, 140, 138)", "rgb(40, 114, 116)", "rgb(13, 88, 95)" ] }, "orientation": "h", "type": "bar", "uid": "c93b213e-6f21-4050-8be8-ba13b0aa1f58", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Mint", "Mint", "Mint", "Mint", "Mint", "Mint", "Mint" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(254, 246, 181)", "rgb(255, 221, 154)", "rgb(255, 194, 133)", "rgb(255, 166, 121)", "rgb(250, 138, 118)", "rgb(241, 109, 122)", "rgb(225, 83, 131)" ] }, "orientation": "h", "type": "bar", "uid": "b23fa26a-30d9-4a86-99a1-8a2379c844b0", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Pinkyl", "Pinkyl", "Pinkyl", "Pinkyl", "Pinkyl", "Pinkyl", "Pinkyl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(253, 224, 197)", "rgb(250, 203, 166)", "rgb(248, 181, 139)", "rgb(245, 158, 114)", "rgb(242, 133, 93)", "rgb(239, 106, 76)", "rgb(235, 74, 64)" ] }, "orientation": "h", "type": "bar", "uid": "7bdd7f9b-50bc-459c-88cc-8e72e699d1a3", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Peach", "Peach", "Peach", "Peach", "Peach", "Peach", "Peach" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(236, 218, 154)", "rgb(239, 196, 126)", "rgb(243, 173, 106)", "rgb(247, 148, 93)", "rgb(249, 123, 87)", "rgb(246, 99, 86)", "rgb(238, 77, 90)" ] }, "orientation": "h", "type": "bar", "uid": "1758ac8e-78af-42ee-b526-ca2d9b5f5661", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Oryel", "Oryel", "Oryel", "Oryel", "Oryel", "Oryel", "Oryel" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(246, 210, 169)", "rgb(245, 183, 142)", "rgb(241, 156, 124)", "rgb(234, 129, 113)", "rgb(221, 104, 108)", "rgb(202, 82, 104)", "rgb(177, 63, 100)" ] }, "orientation": "h", "type": "bar", "uid": "fca20bc8-2b38-43fb-9382-46248c387741", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Redor", "Redor", "Redor", "Redor", "Redor", "Redor", "Redor" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(251, 230, 197)", "rgb(245, 186, 152)", "rgb(238, 138, 130)", "rgb(220, 113, 118)", "rgb(200, 88, 108)", "rgb(156, 63, 93)", "rgb(112, 40, 74)" ] }, "orientation": "h", "type": "bar", "uid": "78970db2-92e5-46b1-8004-20b1be061000", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Burgyl", "Burgyl", "Burgyl", "Burgyl", "Burgyl", "Burgyl", "Burgyl" ] }, { "customdata": [ 0, 1, 2, 3, 4, 5, 6 ], "hovertemplate": "%{y}[%{customdata}] = %{marker.color}", "marker": { "color": [ "rgb(255, 198, 196)", "rgb(244, 163, 168)", "rgb(227, 129, 145)", "rgb(204, 96, 125)", "rgb(173, 70, 108)", "rgb(139, 48, 88)", "rgb(103, 32, 68)" ] }, "orientation": "h", "type": "bar", "uid": "1c700071-e71a-4431-b240-cd9171920cd0", "x": [ 1, 1, 1, 1, 1, 1, 1 ], "y": [ "Burg", "Burg", "Burg", "Burg", "Burg", "Burg", "Burg" ] } ], "layout": { "bargap": 0.5, "barmode": "stack", "barnorm": "fraction", "height": 1360, "showlegend": false, "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": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "contourcarpet" } ], "heatmap": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "heatmapgl" } ], "histogram": [ { "marker": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "type": "histogram" } ], "histogram2d": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "type": "histogram2d" } ], "histogram2dcontour": [ { "autocolorscale": true, "colorbar": { "outlinewidth": 0, "ticks": "" }, "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" }, "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 } } }, "title": { "text": "plotly_express.colors.carto" }, "xaxis": { "range": [ -0.02, 1.02 ], "showgrid": false, "showticklabels": false } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.colors.carto.swatches()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Next steps\n", "\n", "Phew, you've made it this far! If you want to use Plotly Express yourself, just `pip install plotly_express` to install it and head on over to our [reference documentation](https://plotly.github.io/plotly_express/plotly_express/) or just copy-paste from the examples above!" ] } ], "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.6.7" } }, "nbformat": 4, "nbformat_minor": 2 }