fix: When showMinLabel&showMaxLabel are set to true, the second item will be hidden(#20997)
Brief Information
This pull request is in the type of:
- [x] bug fixing
- [ ] new feature
- [ ] others
What does this PR do?
When showMinLabel&showMaxLabel are set to true, the second item will be hidden(
Fixed issues
- #20997
Details
Before: What was the problem?
When setting showMinLabel and showMaxLabel to true, the label at the second position will be hidden
After: How does it behave after the fixing?
When setting showMinLabel and showMaxLabel to true, the label at the second position will not be hidden
Document Info
One of the following should be checked.
- [x] 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
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.
Why do I have different result (110% being hidden) when the container height is small before the change of this PR?
Why do I have different result (110% being hidden) when the container height is small before the change of this PR?
It can be seen from the API that showMinLabel and showMaxLabel are defined under axisLabel
I found that there is axisLabel.interval, which forces all labels to be displayed when this value is 0. But now it only takes effect for axis.type = 'category', I think it should take effect for all types
I think the reason why it only supports category is that for value axis, it's meaningless to display labels with interval 0.
Is this PR ready to be merged? thx
