Skip to content

Conversation

Ovilia
Copy link
Contributor

@Ovilia Ovilia commented Sep 5, 2024

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

This PR supports roaming for Sankey series. It works similar to the roaming of Graph/Treemap/Tree/... .

I'd like to add this feature in v6 so that we can also support thumbnail for sankey series.

Fixed issues

Details

Before: What was the problem?

After: How does it behave after the fixing?

Document Info

One of the following should be checked.

  • This PR doesn't relate to document changes
  • The document should be updated later
  • The document changes have been made in apache/echarts-doc#xxx

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

Copy link

echarts-bot bot commented Sep 5, 2024

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.

Copy link
Contributor

github-actions bot commented Sep 5, 2024

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

Copy link
Member

@linghaoSu linghaoSu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After changing the location of some sankey items, it seems to go back to the original location.

2024-09-26.10.30.40.mov

It looks like you can update the centre as if the tree had been triggered by sankeyRoam.

image

@pull-request-size pull-request-size bot added size/L and removed size/M labels Mar 10, 2025
@Ovilia Ovilia added this to the 6.0.0 milestone Mar 10, 2025
@Ovilia
Copy link
Contributor Author

Ovilia commented Mar 10, 2025

@linghaoSu Thanks! Fixed as suggested.

@Ovilia Ovilia merged commit a07d471 into v6 Mar 25, 2025
2 checks passed
Copy link

echarts-bot bot commented Mar 25, 2025

Congratulations! Your PR has been merged. Thanks for your contribution! 👍

@Ovilia Ovilia deleted the feat-sankey-roam branch March 25, 2025 03:12
100pah added a commit that referenced this pull request Jun 15, 2025
…ectVerticalAlign` for series.map/geo/series.graph in box layout (lay out by left/right/top/bottom/width/height).

(2) Support `clip` on geo/series.map
(3) Support `roamTigger: 'global' | 'selfRect'` to switch roam area to global on only self bounding rect.
(4) Support cursor style change when hovering the roaming enabled area to hint users.
(5) Fix that center and zoom option does not work in series.sankey, and no relevant test case. (the roam is introduced in impl in #20321, due v6).
(6) Fix the percent base of `center` (such as `center: ['40%', '50%']`) for all View coord sys based components/series (geo/series.map/series.graph/series.tree/series.sankey). #16904 introcuded percentage string here, such as '33%'. But it was based on canvas width/height, which is not reasonable - the unit may incorrect, and it is unpredictable if the `View['_rect']` is not calculated based on the current canvas rect. Therefore the percentage value is changed to based on `View['_rect'].width/height` since v6. Under this definition, users can use '0%' to map the top-left of `View['_rect']` to the center of `View['_viewRect']`.
(7) Enhance the behavior for roaming area overlapping - the upper one has higher precedence.
(8) Fix some `scaleLimit` missing.
(9) Some refactor and clarification of `RoamController` and `roamHelper`.
@100pah 100pah mentioned this pull request Jun 15, 2025
8 tasks
@Ovilia Ovilia changed the title (feat) Sankey roaming feat(sankey): roaming for sankey series Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: author is committer PR: awaiting doc Document changes is required for this PR. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants