zakdokoni-lgtm commented on issue #18066:
URL: https://github.com/apache/echarts/issues/18066#issuecomment-7300476022

   I can reproduce this crash on ECharts 6.1.0 with the official line-simple 
demo editor, on Microsoft Edge / Windows.
   
   ### Minimal Reproduction
   ```js
   option = {
     xAxis: { type: 'category', data: 
['Mon','Tue','Wed','Thu','Fri','Sat','Sun'] },
     yAxis: { type: 'value' },
     visualMap: {
       type: 'piecewise',
       show: false,
       pieces: [{ lte: null, color: 'red' }]
     },
     series: [{ data: [150, 230, 224, 218, 135, 147, 260], type: 'line' }]
   };
   ```
   
   ### Actual
   The line is not rendered at all, and the console shows:
   `Uncaught TypeError: Cannot read properties of undefined (reading 'coord')`
   
   ### Expected
   The line is rendered with the piece color applied.
   
   ### Control
   With bounded pieces the same chart renders normally:
   `pieces: [{ gt: 0, lte: 200, color: 'green' }, { gt: 200, lte: 300, color: 
'red' }]`
   So only pieces missing a bound seem to trigger the crash.
   
   Related: PRs #21613 and #21666 reference this issue.
   
   (I used an LLM to help design the test cases; I ran the reproduction and 
verified the results myself.)


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