Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choropleth experiment using Altair and ipywidgets #2

Closed
5 tasks done
edwardchalstrey1 opened this issue Sep 17, 2021 · 5 comments
Closed
5 tasks done

Choropleth experiment using Altair and ipywidgets #2

edwardchalstrey1 opened this issue Sep 17, 2021 · 5 comments
Assignees
Labels

Comments

@edwardchalstrey1
Copy link
Member

edwardchalstrey1 commented Sep 17, 2021

Take the Choropleth charts in Altair (from James Trip) and add widgets for toggling between different colour-binning possibilities, plus appropriate metavisualisations based on the ones by Greg McInerny.

  • Tidy code (include chart function?)
  • Make the extent a double slider?
  • Can we have an extra subplot(s) with ipywidgets that show the binned data e.g. histogram - "metavisualisation", this is what the "WAYS" code does
  • Choropleth example using Plotly #16
  • Can we get all the options for scale and other params?
    • Ed note: this may well be impossible to do in an automated way, so it's possible that part of our "WAYS Workflow" could just say: "Look up the accepted values for your function online and add them to a list that gets used by Jupyter widgets dropdown...." or something
  • Select different dates slider?
  • Decorator experiment #15
@edwardchalstrey1
Copy link
Member Author

A second example could be choosing the colours or positions (or positioning algorithms?) of a network graph package

@edwardchalstrey1 edwardchalstrey1 self-assigned this Sep 20, 2021
@edwardchalstrey1
Copy link
Member Author

edwardchalstrey1 commented Sep 20, 2021

Approach taken here is to use jupyter widgets - see ways-py/notebooks/choropleth-play.ipynb

@rolyp rolyp changed the title Create minimal functioning example of WAYS Minimal functioning example for WAYS Sep 20, 2021
@rolyp rolyp changed the title Minimal functioning example for WAYS Choropleth experiment using ipywidgets Sep 21, 2021
@rolyp rolyp added the feature label Sep 21, 2021
@rolyp
Copy link
Collaborator

rolyp commented Sep 21, 2021

@edwardchalstrey1 Renamed this task to reflect our latest understanding of the scope.

@rolyp
Copy link
Collaborator

rolyp commented Sep 21, 2021

@edwardchalstrey1 Imported to do list from choropleth-play.ipynb.

@rolyp rolyp changed the title Choropleth experiment using ipywidgets Choropleth experiment using Altair and ipywidgets Sep 21, 2021
@rolyp
Copy link
Collaborator

rolyp commented Sep 27, 2021

@edwardchalstrey1 We can discuss this when we meet at 11, but I'll mention it here as well. If I remember correctly, in the example Greg showed us:

  • the histogram "metavisualisation" was to the left of the choropleth, and rotated anticlockwise by 90 degrees (so the x-axis/bins run vertically and the y-axis/record count runs horizontally to the left)
  • the histograms bars themselves weren't coloured; rather, the colours were used as the "bin labels" on the x-axis

So we might want to look at implementing one or both of these before the meeting on Thurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants