apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.71k stars 19.62k forks source link

feat(custom): support disableTooltip for custom series #20447

Open Ovilia opened 1 month ago

Ovilia commented 1 month ago

Brief Information

This pull request is in the type of:

What does this PR do?

There was no way to ignore triggering tooltip for an element returned by renderItem. silent: true was usually used in such cases but we might want to use emphasis style when hovering.

Fixed issues

Details

Before: What was the problem?

There was no way to ignore triggering tooltip for an element returned by renderItem.

After: How does it behave after the fixing?

Elements returned by renderItem can set disableTooltip: true so that it won't trigger tooltip showing.

Document Info

One of the following should be checked.

Misc

ZRender Changes

Related test cases or examples to use the new APIs

N.A.

Others

Merging options

Other information

echarts-bot[bot] commented 1 month ago

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.

github-actions[bot] commented 1 month ago

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