-
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): enale boundaryGap for category axis #19638
Conversation
Thanks for your contribution! |
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 |
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.
This seems to be more like some kind of margin/padding
than boundaryGap
to me, since its value is in pixels rather than the unit of the axis.
Consider the real world cases where this feature should be useful and add the cases in the test. And when you are clear about where this feature should be used, give it a better name (margin?pardding?offset?...) to isolate from boundaryGap
.
So great. I need this feature. There has a line chart on the top of page, and a bar chart on the bottom of page. Although there xAxis is different, i want to align the left xAxis. |
@gooroodev review |
Summary of Changes
Issues, Bugs, and Typos
General Review of Code Quality and Style
Recommendations
ConclusionThe pull request introduces a useful feature for enabling Yours, Gooroo.dev. To receive reviews automatically, install Github App |
|
@gooroodev review |
Thanks, @xdbobname, for the ping! {mistakes: 1, typos: 1, security: 0, performance: 0, code_styling: 1, others: 0} Summary of Changes:
Issues, Bugs, and Typos:
General Review of Code Quality and Style:
Code Improvements:
Yours, Gooroo.dev. React or reply to give your feedback! |
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.
#19228 provides the ability to align the first/last label. From there, we could adjust category axis label with alignMinLabel/alignMaxLabel
to change accordingly.
the 1st or last label align-self independent will shrink/grow the first and last gap, but behave good |
Brief Information
This pull request is in the type of:
What does this PR do?
I'd like to align ending axis labels with the boundary, but the boundaryGap not suitable for category axis chart.
Fixed issues
#19636
Details
Before: What was the problem?
place axis label space-between
After: How does it behave after the fixing?
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