Skip to content
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

Fix #19247 - [Bug fixing] Echart splitline not showing on interval function (issue 19247) #19382

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

JohnLYYN123
Copy link

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

This PR fixes the issue mentioned in issue 19247, where the splitline does not display at the right interval when there is only one tick given by the user.

Fixed issues

#19247

Details

Before: What was the problem?

When the given data array (which represents the intervals) has only one tick, the split line only appears at the left side of the graph. Datazoom-in also shows incorrect splitline.

Before Zooming in
image

After Zooming in
image

After: How does it behave after the fixing?

After the fix, the left splitline appears next to the correct interval given by the given data array. Datazoom-in also shows right interval splitline.

Before Zooming in
image

After zooming in
image

Document Info

One of the following should be checked.

  • 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

Axis.ts has been modified to fix the bug and a new html test file called splitline_2.html has been added under the test folder.

Copy link

echarts-bot bot commented Dec 11, 2023

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.

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants