-
Notifications
You must be signed in to change notification settings - Fork 0
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
Map: Update 'Markers' menu entry to allow more advanced user configuration #190
Comments
Some implementation thoughts for the "Choose values" sorted checkbox list component: Assume #143 is merged or branching from it!
(* the However the checkbox table thing needs the full list of values. You can get these from Are we OK having two different bits of code calling Anyway, checking the checkboxes should update the |
Unless I'm mistaken, both uses are in relation to the overlay variable of the marker. It might make sense to pull that call out to a separate variable that gets returned by the marker hook. |
I'm not sure I understand. Also should we use the |
A few updates to the mockups that were discussed but are no where represented:
Let me know if it would be helpful to have these or other changes in mockup form! |
Thanks @asizemore - I think that's a great text summary, probably no need for mock-ups. |
Ah, I think I understand. When the original call is made to |
Sorry for the delayed response. Yes, the basic idea is that we get the distribution once, and pass them to the config menu and the legend, one way or another. I haven't thought about the specifics of how we would do it. There may be some challenges. |
Regarding debouncing, I suggest we wait and see if it's really needed. My theory is that most users will not be able to click more than one item within a reasonable debounce window. If that proves to be wrong, there is a very nice implementation of a react-friendly web-monorepo/packages/libs/web-common/src/components/SiteSearch/TypeAheadInput.tsx Lines 148 to 186 in 83035c0
ETA see this PR comment: #332 (comment) |
Additional tweaks from 2023-06-15 Map UX meeting:
- variable picker at top
- can we give this a
max-width
?- not discussed at meeting, but if it's at the very top, does it really need a "Color:" heading? (For continuous vars, is the color gradient really a color? maybe)
- plot next (in this case it's the marker preview)
- controls
- value picker distributions (checkbox table or histogram)
- chart marker: Marker X-axis controls (continuous only: contains "binning method"), Marker Y-axis controls (contains: count/proportion radio button and logscale toggle). The extra "Marker" in the headings might be overkill but let's see it first.
- donut marker: Doesn't have an X-axis. We just need to have a binning method selector for continuous variables. Do we just use a "Donut controls" heading? Bit of a grey area...
ContinousVariableMetadataResponse
contains three types of binRanges:equalInterval
,quantile
(actually decile) andstandardDeviation
. We are currently hardcoded to useequalInterval
somewhere. Should be simple to use the other two types based on the radio button-controlled state.- try labelling it "Raw distribution of over all filtered data" (tooltip could mention "equal-binned" ??)
- color uniform changes for taxon_id link and resource linl -refs #51670 #333 (add this to HistogramProps:
colorPalette: Array(8).fill('#333')
)- reduce margins (
spacingOptions
should hopefully do it)More categorical tweaks
- allow any number of checkbox selections
- but only use the last valid combination of checkboxes for the overlayConfig
- overlay a warning banner on top of the Summary marker (aka preview marker) to say "maximum 7 selections allowed, please deselect X values" (summary marker should always be visible, hence the scroll bar for the checkbox table)
General menu-related
mockups exist in figma.. ex screenshots as well
categorical
continuous
NOTE: I believe some changes were discussed after these mockups were made, but idk if the mockups were updated to reflect them. For ex, The histogram shown when configuring a continuous variable will always reflect the subset, rather than offering the visible vs filtered toggle.
@asizemore @bobular do you know of any other changes discussed which are important to note here?
The text was updated successfully, but these errors were encountered: