edgi-govdata-archiving / ECHO-Watershed

Watershed-based analysis of environmental pollution and compliance trends
https://colab.research.google.com/github/edgi-govdata-archiving/ECHO-Watershed/blob/main/ECHO_Watershed.ipynb
GNU General Public License v3.0
0 stars 2 forks source link

Allow users to select multiple watersheds #8

Closed ericnost closed 3 years ago

ericnost commented 3 years ago
  1. Reconfigure the notebook to allow selecting more than one watershed from a state. It's not entirely clear to me how this would work effectively. Currently we provide users the option of selecting their watershed of interest through a dropdown menu. That doesn't work for multiple selections. Could we do checkboxes?
  2. Reconfigure the notebook to display results for each selected watershed. Would we show these separately (easy, we've already done this for the congressional districts) or summed together (maybe even easier actually)?
shansen5 commented 3 years ago

There is a SelectMultiple widget that handles this pretty well. Ctrl-click adds to the selection, Shift-click extends the selection. I'm putting it into the notebook. I'll modify the DataSet behavior to account for a list of huc8s instead of just one.

shansen5 commented 3 years ago

This is done in the latest push to the add-DMR-code-blocks branch. Currently it is showing all results together, not separately by watershed. It is allowing selection of multiple watersheds, selecting multiple facilities within the selected watersheds, and selecting multiple pollutants discharged by the selected facilities. We'll need to decide how the data should be aggregated. The code blocks will be documented with markdown cells describing the selection soon.

Frijol commented 3 years ago

relevant PR: https://github.com/edgi-govdata-archiving/ECHO-Watershed/pull/7