JohnLYYN123 opened a new pull request, #19382:
URL: https://github.com/apache/echarts/pull/19382

   <!-- Please fill in the following information to help us review your PR more 
efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
   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
   
   <!--
   - #xxxx: ...
   -->
   https://github.com/apache/echarts/issues/19247
   
   
   
   ## Details
   
   ### Before: What was the problem?
   
   <!-- DESCRIBE THE BUG OR REQUIREMENT HERE. -->
   
   <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
   
   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](https://github.com/apache/echarts/assets/96747053/9ef6b7de-71dc-4122-a276-6e4245667c6a)
   
   **After Zooming in**
   
![image](https://github.com/apache/echarts/assets/96747053/b72101d7-1f71-4fdf-bc2e-90268fac3e01)
   
   
   ### After: How does it behave after the fixing?
   
   <!-- THE RESULT AFTER FIXING AND A SIMPLE EXPLANATION ABOUT HOW IT IS FIXED. 
-->
   
   <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
   
   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](https://github.com/apache/echarts/assets/96747053/9a36fbd9-b9c4-4763-84c8-8d0667d5e54b)
   
   **After zooming in**
   
![image](https://github.com/apache/echarts/assets/96747053/59e87e48-121d-4c79-92c6-fc82c6a48b34)
   
   
   ## 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
   
   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to