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

   <!-- 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?
   
   When markers such as marker line, marker pointer, and marker area exceed the 
default axis range, they will be discarded directly. When the user does not 
specify the axis range, the default axis range should take into account the 
marker value
   
   
   ## Details
   
   ### Before: What was the problem?
   
   ```
   {
                title: {
                   text: '主标题',
                   subtext: '副标题',
                   left: 'center',
                   top: 'top',
                   textAlign: 'center',
                   textVerticalAlign: 'top'
               },
               xAxis: {
                   type: 'category',
                   data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
               },
               yAxis: {
                   type: 'value'
               },
                series: [{
                       data: [150, 230, 224, 218, 135, 147, 260],
                       type: 'line',
                       markLine: {
                           data: [
                               {
                                   name: '两个屏幕坐标之间的标线',
                                   yAxis: 467,
                                   lineStyle: { color: 'red' }
                               }
                           ]
                       }
               }]
   }
   ```
   
   When markers such as marker line, marker pointer, and marker area exceed the 
default axis range, they will be discarded directly.
   
   <img width="1290" height="572" alt="image" 
src="https://github.com/user-attachments/assets/283d4107-1377-4a0e-a541-9d79c44e95b7";
 />
   
   
   
   ### After: How does it behave after the fixing?
   
   When the user does not specify the axis range, the default axis range should 
take into account the marker value
   
   <img width="1208" height="716" alt="image" 
src="https://github.com/user-attachments/assets/d3473649-fa21-4586-a748-d17b07fc81bf";
 />
   
   
   
   ## 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
   
   - [x] Please squash the commits into a single one when merging.
   
   ### Other information
   


-- 
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