Skip to content

feat(radar): add clockwise option#21143

Merged
Ovilia merged 2 commits intoapache:masterfrom
daidr:feat/radar-clockwise
Aug 7, 2025
Merged

feat(radar): add clockwise option#21143
Ovilia merged 2 commits intoapache:masterfrom
daidr:feat/radar-clockwise

Conversation

@daidr
Copy link
Contributor

@daidr daidr commented Jul 29, 2025

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

This pull request introduces support for configuring the direction of radar charts by adding a clockwise option.

Fixed issues

closes #5190

Details

Before: What was the problem?

The radar chart indicator axis can only be arranged anti-clockwise; the original data must be modified to change it to clockwise.

After: How does it behave after the fixing?

We can make the radar chart render in a clockwise direction using options.radar.clockwise (boolean).

image

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

  • test/radar-clockwise.html
  • test/radar-clockwise-interactive.html

Others

Merging options

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

Other information

daidr added 2 commits July 29, 2025 19:39
Support to control the direction of radar chart through `clockwise` field, which is anti-clockwise by default.
@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2025

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

Copy link
Contributor

@Ovilia Ovilia left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

The doc repo is https://github.com/apache/echarts-doc/tree/dev . Please add both zh and en docs to dev branch`. Thanks!

@Ovilia Ovilia merged commit 8c4653f into apache:master Aug 7, 2025
2 checks passed
@Ovilia Ovilia added this to the 6.0.1 milestone Aug 7, 2025
@plainheart plainheart changed the title feat(radar): add clockwise options support feat(radar): add clockwise option Dec 16, 2025
@echarts-bot
Copy link

echarts-bot bot commented Dec 16, 2025

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 echarts-bot bot added the PR: awaiting doc Document changes is required for this PR. label Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: awaiting doc Document changes is required for this PR. size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

雷达图没有clockwise选项,不能设置顺时针排列

2 participants