Skip to content

Commit

Permalink
Auto-commit: Wed Nov 1 12:18:37 CDT 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
jnaiman committed Nov 1, 2023
1 parent 6b163df commit 9e26760
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions week11/prep_notebook_week11.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2792,31 +2792,31 @@
},
{
"cell_type": "markdown",
"id": "1b5e77b6",
"id": "541b5199",
"metadata": {},
"source": [
"## 6. Quick drop-down interactivity (if time)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ac9d3cf6",
"cell_type": "markdown",
"id": "07a56436",
"metadata": {},
"outputs": [],
"source": []
"source": [
"Let's make this rectangle plot again, but a little differently, with "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9959abf5",
"id": "8bf82003",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "6b1c7f77",
"id": "be3c1cb6",
"metadata": {},
"source": [
"Final plot all together:"
Expand All @@ -2825,15 +2825,15 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e70925d6",
"id": "c333be62",
"metadata": {},
"outputs": [],
"source": [
"brush = alt.selection_interval(encodings=['x','y']) # to select bins of student-teacher ratio and state\n",
"\n",
"# select what is plotted in the x-axis of the rectangle plot (assuming)\n",
"input_dropdown = alt.binding_select(options=['Mobility','Population','min','max','std'], \n",
" name='Statistic')\n",
"# select what is plotted in the histogram\n",
"input_dropdown = alt.binding_select(options=['Mobility','Population'])\n",
"selection_col = alt.selection_single(fields=[])\n",
"\n",
"\n",
"chart1 = alt.Chart(mobility).mark_rect().encode(\n",
Expand Down Expand Up @@ -2861,39 +2861,39 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cd1155bf",
"id": "ddc6fe86",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "633d0e60",
"id": "ac1ca086",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "5f992a8d",
"id": "d456ef2b",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "4cd3405d",
"id": "1af52bca",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "6bb8cc60",
"id": "053388ec",
"metadata": {},
"outputs": [],
"source": []
Expand Down

0 comments on commit 9e26760

Please sign in to comment.