azavea / fb-gender-survey-dashboard

Interactive exploration of global results from the Facebook "Survey on Gender Equality At Home
https://gender-survey-dashboard.netlify.app/
Apache License 2.0
2 stars 2 forks source link

Allow saving state of particular visualization configurations #19

Closed mmcfarland closed 3 years ago

mmcfarland commented 3 years ago

Overview

Add a redux local storage persist library and establish a new reducer pathway to store a list of "saved charts". These entries will contain the data required to recreate the checkbox selection state of the Geography and Question selector pages (#11) and possibly the "final state" of the data that needs to be rendered on the vizualization page.

However, it may be sufficient (and desirable) to merely save the applied state (geos + questions) and simply let the visualization page render the graphs as normal. This has the benefit of not capturing stale data if the dataset changes, although we will need to gracefully handle cases where a persisted question or geography is not longer available. Whatever data structure is used, include a title key that defaults to the concatenation of selected geographies. The user can update this value later.

Aside from the "save charts" button to initiate this persistence, no other UI is needed for this card.