fix(Axis): xAxis axisTick custom interval funciton work error with boundaryGap false#20436
fix(Axis): xAxis axisTick custom interval funciton work error with boundaryGap false#20436sz-p wants to merge 1 commit intoapache:masterfrom
Conversation
|
Thanks for your contribution! |
|
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-20436@951540f |
|
Thanks for the detailed test! Can you explain why there is a tick before What's the current policy for the last tick to show? |
|
The current logic is simple: add last one after intervalList. To form a tick pair, similar to the effect of boundaryGap: true, add an ending tick to the intervalList. A potential issue arises if the intervalList is [true, false]. By adding an end tick, it becomes [true, true], which might seem odd. A more intelligent way is if the tick is end of axis then add it. if not ignore it. Should we use this? |
|
I don't think axis ticks work in pairs, so I'd think add last one after intervalList works pretty intuitive to me. |
Ovilia
left a comment
There was a problem hiding this comment.
My expected behavior the the last tick to be show or not would be:
[true, true, true, true]: true
[false, false, false, false]: false
[true, false, false, false]: true
[true, false, true, true]: true
[true, false, true, false]: true
[false, true, true, true]: true
The logic is, the last one is not displayed only if none ticks is displayed. But I'm open to what you think. Please let me know your opinions on this and let's discuss about what's more intuitive.
|
Conflicts resolved. |





Brief Information
This pull request is in the type of:
What does this PR do?
Fixed issues
#20424
Details
Before: What was the problem?
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