echarts icon indicating copy to clipboard operation
echarts copied to clipboard

feat(scatter): jittering for category data

Open Ovilia opened this issue 1 year ago • 3 comments

Brief Information

This pull request is in the type of:

  • [ ] bug fixing
  • [x] new feature
  • [ ] others

What does this PR do?

This PR proposes a jittering effect for category axes and single axes, solving #18432 as well as providing a foundation to support the violin series.

image image image

Fixed issues

#18432

API Changes

A new axis.jitter option in number type, which is the jitter max range in pixels.

Details

Jittering is useful in scatter plots for:

  • Overlapping Data Points: Prevents points with the same or similar values from overlapping.
  • Categorical Axes: Distinguishes points within the same category.
  • Small Sample Sizes: Separates closely clustered data points.
  • Discrete Data: Helps with data naturally falling into specific values (e.g., counts).

Document Info

One of the following should be checked.

  • [ ] This PR doesn't relate to document changes
  • [ ] The document should be updated later
  • [x] The document changes have been made in https://github.com/apache/echarts-doc/commit/5b6f4ecf9d195c03adf87b45e3926a58f0d10ea8

Misc

ZRender Changes

  • [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

N.A.

Others

Merging options

  • [ ] Please squash the commits into a single one when merging.

Other information

Ovilia avatar May 16 '24 11:05 Ovilia

Thanks for your contribution! The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about 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 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.

echarts-bot[bot] avatar May 16 '24 11:05 echarts-bot[bot]

The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-19941@c317bfe

github-actions[bot] avatar May 16 '24 11:05 github-actions[bot]

Demo: https://echarts.apache.org/examples/zh/editor.html?version=PR-19941%40ecfe583&code=MYewdgzgLgBAJgQygmBeGBtAugbgFABmIATjABQA2AprAJZowAMOM9APDAEyPMwDUfWgEoYAbzwx4SBADoADgFcIACzIYA5AnX9yAWSTKZBCiBJl9UQ8QRg4IALZkRAKhgAWEXxgBGIQBoYCysbO0cXHx4sIXwAXzw8EDkoWnAGcUkADwBBDNoIAC4xCUkYKABPOSpC9WAkKgBzEjL1P2LJRGRCjQRvFphNTj7NAGYhhDd1LFaSmAArWigoKmJC7mKY6ZgynLzC0Q3iiGXaKgKimfLK6ohaxeWWtqlkdbwYnCA

Ovilia avatar May 17 '24 02:05 Ovilia

@Ovilia 这个还有多久可以发布呢

xyy7260 avatar May 28 '24 06:05 xyy7260

@xyy7260 This feature is planned for ECharts 6.0, which is expected to be release in the first season of 2025. If you are interested in using it before then, you may fork it after being merged and use it locally.

Ovilia avatar May 29 '24 06:05 Ovilia

@Ovilia 没尝试过如何提前合并。 如果我要提前合并,在哪里查看你这个 fork

xyy7260 avatar Jun 05 '24 03:06 xyy7260

@Ovilia 没尝试过如何提前合并。 如果我要提前合并,在哪里查看你这个 fork

Step 1: Clone the repository or update your local repository with the latest changes.

git pull origin next Step 2: Switch to the base branch of the pull request.

git checkout next Step 3: Merge the head branch into the base branch.

git merge feat-scatter

Ovilia avatar Jun 05 '24 08:06 Ovilia

@Ovilia OK

xyy7260 avatar Jun 06 '24 02:06 xyy7260

@xyy7260该功能计划在 ECharts 6.0 版本中推出,预计 2025 年第一季度发布。如果您有兴趣在此之前使用它,可以合并后 fork 并在本地使用。

还有多久发布呢 太期待了

xyy7260 avatar Jan 15 '25 08:01 xyy7260