covidcg icon indicating copy to clipboard operation
covidcg copied to clipboard

GroupStack plot – shift-click to select multiple groups

Open atc3 opened this issue 3 years ago • 0 comments

Allow range selection from our GroupStack plot

Basic workflow for this:

  1. Capture shift-click events and bubble them up to React to handle
  2. Since Vega (and not React) determines the order of groups, we'll have to grab this from Vega before further processing. See src/components/Vega/SurveillancePlot.js for an example of extracting data from Vega plots into React
  3. Create the range selection from the ordered list of groups. The group that was just shift-clicked on is the end of the range, and the previously selected group is the beginning of the range. If no groups are already selected, then only select the one group that was shift-clicked (The range starts and ends at the same group). If multiple groups were already selected, then start the range at the most recently selected lineage (should be the last element in configStore.selectedGroups).

atc3 avatar Sep 07 '21 12:09 atc3