-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(axis): support tooltip for axis label #16315
Conversation
Thanks for your contribution! The pull request is marked to be |
怎么使用呢? |
@Thj007 可以参考 PR 里附加的测试用例 test/axisLabel.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried with the test case and it looks cool. LGTM
To reviewers: If this PR is going to be described in the changelog in the future release, please make sure this PR has one of the following labels: This message is shown because the PR description doesn't contain the document related template. |
@pissang Please double-click this PR. @plainheart I think a new option is probably required? Please check the "The API has been changed" and prepare the document later. |
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-16315@15a8f64 |
期待看到该功能的合并! |
Please, let's do it! We have the same requirement about tooltip on Axis label only whey they are overflowed. Thanks! |
… can be used in the upper program like echarts tooltip, as required by apache/echarts#16315 .
155653f
to
8f7773c
Compare
Congratulations! Your PR has been merged. Thanks for your contribution! 👍 |
Brief Information
This pull request is in the type of:
What does this PR do?
Support tooltip for the axis label. It's useful for the case in which the axis label is truncated for long text and hope to show the full text when hovering on the label.
Fixed issues
Details
Before: What was the problem?
No tooltip for showing the full text of a truncated axis label. The developer has to simulate a tooltip via listening to the mouse event like https://codepen.io/plainheart/pen/jOGBrmJ.
After: How is it fixed in this PR?
Misc
Related test cases or examples to use the new APIs
Please refer to the last test case in
test/axisLabel.html
.Others
Merging options
Other information