Skip to content
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

Plot outliers in box & whisker graph #852

Closed
hugovoerman opened this issue Jul 3, 2023 · 3 comments
Closed

Plot outliers in box & whisker graph #852

hugovoerman opened this issue Jul 3, 2023 · 3 comments
Labels
demos question Further information is requested

Comments

@hugovoerman
Copy link

Question:

Did anyone added plotting the outliers to the Box & Whisker plot based on the demo Box & whisker plugin + legend-as-tooltip plugin?

I would like to have the outliers shown as demoed on Wikipedia Box plot figure 3

@hugovoerman
Copy link
Author

You are amazing! Thank you for this guidance. I will take it from here for my application.

@leeoniya
Copy link
Owner

leeoniya commented Jul 3, 2023

added outlier rendering to the demo in f2804d0. they're drawn on canvas, so you cannot interact with them without implementing a quadtree or some other spatial index, as is done in the bubble demo [1].

if you want them to be interactive, you could alternatively implement this rendering in the DOM (by adding elements to the u.over container), and get mouse events/interaction without a spatial index but at the cost of possibly hundreds or thousands of DOM nodes re-created on every zoom/re-render.

[1] https://leeoniya.github.io/uPlot/demos/scatter.html

@leeoniya leeoniya added question Further information is requested demos labels Jul 3, 2023
@hugovoerman
Copy link
Author

Perhaps you can give me a pointer in how to add the outliers to the tooltip. Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demos question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants