Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Add brushing on all charts #108

Merged
merged 7 commits into from
Oct 21, 2022
Merged

Add brushing on all charts #108

merged 7 commits into from
Oct 21, 2022

Conversation

esheehan-gsl
Copy link
Contributor

Add support for brushing the histogram and heatmap. Fix the brushing on the map.

@esheehan-gsl esheehan-gsl linked an issue Oct 17, 2022 that may be closed by this pull request
@esheehan-gsl esheehan-gsl temporarily deployed to vlab October 17, 2022 15:29 Inactive
Implement the mouse interactions and selection rendering for the
histogram. No events are fired yet, so the brushing has no effect.
Fire a brush event from the ChartHistogram component. LoopDisplay
listens for the event and updates a store with the brushed range. The
range store is passed to the histograms, so that both loops will be
synced.
I moved the map selection drawing to a separate canvas to speed up
rendering. I have the region being set in the store and synced to the
histograms and other map.
@esheehan-gsl esheehan-gsl temporarily deployed to vlab October 19, 2022 14:57 Inactive
@esheehan-gsl esheehan-gsl temporarily deployed to vlab October 19, 2022 20:41 Inactive
Implement a selection mechanism for the 2D histogram. The chart-brush
event is being dispatched, but the filter logic in LoopDisplay needs to
be updated to support filtering on multiple dimensions.
Extract the `containedIn` filter definition to a reactive property that
can build the range object for vector ranges based on the variable type.
Separating this helps keep the mapData property a little more easy to
read.
Since the range filter for vectors is incompatible with the range filter
for scalars, we reset all the filters when you change variables.
@esheehan-gsl esheehan-gsl temporarily deployed to vlab October 20, 2022 19:55 Inactive
@esheehan-gsl esheehan-gsl marked this pull request as ready for review October 20, 2022 20:04
@esheehan-gsl esheehan-gsl requested a review from ian-noaa October 20, 2022 20:05
@esheehan-gsl esheehan-gsl self-assigned this Oct 20, 2022
@esheehan-gsl esheehan-gsl merged commit 3b50a84 into main Oct 21, 2022
@esheehan-gsl esheehan-gsl deleted the 87-brush-histograms branch October 21, 2022 14:39
@esheehan-gsl esheehan-gsl temporarily deployed to vlab October 21, 2022 14:39 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Brush histograms
1 participant