Skip to content

feat(web): add checkboxes to control plot bubbles and confidence lines#16

Open
ivan-aksamentov wants to merge 1 commit intomasterfrom
feat/web-bubble-and-line-toggles
Open

feat(web): add checkboxes to control plot bubbles and confidence lines#16
ivan-aksamentov wants to merge 1 commit intomasterfrom
feat/web-bubble-and-line-toggles

Conversation

@ivan-aksamentov
Copy link
Member

@ivan-aksamentov ivan-aksamentov commented May 15, 2023

Suggested followup of: #11

/!\ WORK IN PROGRESS

As I suggested in the PR above, here I add recoil atoms to keep state (and remember it in the Local Storage), as well as checkbox elements, which would control display of bubbles and lines.

I hooked up the shouldShowBubbles state to completely disable the rendering of CustomizedDot. The rest is not connected yet.

This is merely a suggestion. We may or may not take this path. The exact logic may change according to projects' needs. We may keep checkboxes or use other UI elemets as appropriate. The 3 checkboxes give 9 combinations 8 combinations* of possible plot experiences. Not all of them may make sense. We can try to limit number of checkboxes, or to use for example 2-way switch toggles (or 3-way, or N-way) or a dropdown menu instead.

(Click "Visit preview" to see the preview deployment app on Vercel)

--

* - combinatorics is hard, sigh

@vercel
Copy link

vercel bot commented May 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
flu-frequencies ✅ Ready (Inspect) Visit Preview May 15, 2023 8:45am
@ivan-aksamentov ivan-aksamentov mentioned this pull request May 15, 2023
@ArtPoon ArtPoon marked this pull request as ready for review May 15, 2023 08:59
Base automatically changed from plot-tweaks to master May 16, 2023 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant