You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "plainheart (via GitHub)" <gi...@apache.org> on 2026/09/28 01:23:41 UTC
[PR] feat(scatter): add `jitterRng` / `jitterSeed` option to configure a custom random number generator or a random seed for deterministic jitter layout [echarts]
plainheart opened a new pull request, #21765:
URL: https://github.com/apache/echarts/pull/21765
## Brief Information
This pull request is in the type of:
- [ ] bug fixing
- [x] new feature
- [ ] others
### What does this PR do?
Introduce two new options for deterministic jitter layout; that is, the layout is fixed when data remains unchanged.
- `jitterSeed` - The seed for the random number generator. Defaults to `'echarts-jitter'`. Internally, it uses a simple RNG based on the [**_Mulberry32_**](https://github.com/cprosche/mulberry32.) algorithm.
- `jitterRng` - A fully custom random number generator for advanced usage.
### Fixed issues
Resolves #21753
## Details
### Before: What was the problem?
The jitter layout always changes even if the data remains unchanged.
### After: How does it behave after the fixing?
The jitter layout remains fixed when the data remains unchanged.
## Document Info
One of the following should be checked.
- [ ] This PR doesn't relate to document changes
- [x] The document should be updated later
- [ ] The document changes have been made in apache/echarts-doc#xxx
## Misc
### Security Checking
- [ ] This PR uses security-sensitive Web APIs.
<!-- PLEASE CHECK IT AGAINST: <https://github.com/apache/echarts/wiki/Security-Checklist-for-Code-Contributors> -->
### ZRender Changes
- [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
### Related test cases or examples to use the new APIs
TODO
### Merging options
- [ ] Please squash the commits into a single one when merging.
### Other information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [PR] feat(scatter): add `jitterRng` / `jitterSeed` option to configure a custom random number generator or a random seed for deterministic jitter layout [echarts]
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on PR #21765:
URL: https://github.com/apache/echarts/pull/21765#issuecomment-5861681363
Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout [the coding standard](https://echarts.apache.org/en/coding-standard.html) and Wiki about [How to make a pull request](https://github.com/apache/echarts/wiki/How-to-make-a-pull-request).
The pull request is marked to be `PR: author is committer` because you are a committer of this project.
Document changes are required in this PR. Please also make a PR to [apache/echarts-doc](https://github.com/apache/echarts-doc) for document changes and update the issue id in the PR description. When the doc PR is merged, the maintainers will remove the `PR: awaiting doc` label.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [PR] feat(scatter): add `jitterRng` / `jitterSeed` option to configure a custom random number generator or a random seed for deterministic jitter layout [echarts]
Posted by "jbdesbas (via GitHub)" <gi...@apache.org>.
jbdesbas commented on PR #21765:
URL: https://github.com/apache/echarts/pull/21765#issuecomment-6039086241
I encountered the issue of "dancing points" on each rerender, so I am very interested in your PR.
Thank u ! :+1:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org