-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
[Feature] add jitter option for scatter plots #18432
Comments
Jitter is data transformation that can be done before the plot. |
i cant do that when i use a categorical variable in one of axes like this example: option = {
xAxis: { type: 'category' },
yAxis: {},
series: {
data: [
['a', 8.04],
['a', 6.95],
['b', 7.58],
['b', 8.21],
['c', 8.33],
['c', 9.12]
],
type: 'scatter'
}
}; or using singleAxis like: option = {
singleAxis: {},
series: {
data: [[8.04], [6.95], [7.58], [8.21], [8.33], [9.12]],
type: 'scatter',
coordinateSystem: 'singleAxis'
}
}; |
Workaround with two X-axes - Demo Code |
thank you @helgasoft . if anyone have more ideas ill be grateful, |
maybe we could add a more universal way to do this? like
the added this way no hidden redundant axis is needed, nor a redundant dataset and/or a encoding |
What problem does this feature solve?
when we want to plot a scatter plot where one of axis types is category or we have only a singleAxis, and we want to clearly see the distribution of the points, especially on dense areas.
What does the proposed API look like?
having an option to add jitter parameter on a scatter series object.
The text was updated successfully, but these errors were encountered: