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

Scatter chart with jitter option #4910

Open
beldogueto opened this issue Jan 10, 2025 · 0 comments
Open

Scatter chart with jitter option #4910

beldogueto opened this issue Jan 10, 2025 · 0 comments
Labels
feature-request New feature or request

Comments

@beldogueto
Copy link

When plotting samples as grouped columns, the data points often overlap when there are many points. One way to solve this is by adding a small random 'jitter' to the X-axis values (or Y, for horizontal charts).

Same Data, Without and With an Improvised Jitter:

Without jitter (dots overlap):
image

With my improvised jitter (not the best, also when using this improvised jitter I lose the X-axis labels):
image

Code for this improvised jitter:
{
"name": "Group 1",
"data": [
[
-0.13267873780475706, <-random jitter
10 <- value to plot
],
[
0.15607770228760806,
20
]
]
}

Proposed API Changes
Introduce an optional jitter feature to prevent data overlap and maintain alignment of Y/X(value)-axis labels.

Intended Use Case
This feature would be especially useful when plotting many data points. For example:
image

Great for combining with boxplots for clearer representation:
image

Good to combined with bars:
image

@beldogueto beldogueto added the feature-request New feature or request label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant