Curtis-Lockley opened a new issue, #20335:
URL: https://github.com/apache/echarts/issues/20335

   ### Version
   
   5.5.1
   
   ### Link to Minimal Reproduction
   
   https://jsfiddle.net/az4p58gs/
   
   ### Steps to Reproduce
   
   All you need to do once opening to reproduce the bug is to scroll around and 
zoom in/out until the crash occurs.
   
   
   
   
   
   ### Current Behavior
   
   Currently, there is a chance that when scrolling for a crash to occur as 
shown below.
   
![echarts-null-value](https://github.com/user-attachments/assets/e544cb53-dbb7-4bd9-868b-9aeb0f762cc1)
   
   Below is the error message
   ```
   echarts.min.js:45 Uncaught TypeError: Cannot read properties of null 
(reading 'offsetWidth')
       at t.getSize (echarts.min.js:45:781248)
       at e._updatePosition (echarts.min.js:45:792803)
       at e.<anonymous> (echarts.min.js:45:790188)
       at e._showOrMove (echarts.min.js:45:788953)
       at e._showAxisTooltip (echarts.min.js:45:790116)
       at e._tryShow (echarts.min.js:45:788458)
       at e.manuallyShowTip (echarts.min.js:45:787122)
       at echarts.min.js:45:786112
   ```
   
   ### Expected Behavior
   
   The intended behaviour is:
   
   - rebuild options from scratch using new data
   - remember the previous scroll position
   - not crash when scrolling/zooming
   
   ### Environment
   
   _No response_
   
   ### Any additional comments?
   
   In my real app, I've seen the issue even if the chart is rebuilt every 5 
seconds instead of 100ms. As it seems to happen whenever **chart.setOption**, 
the interval was lowered to make it quicker to reproduce.
   
   Although options does not change. In the real app, options could be built 
from the same data, but filtered to exclude certain data points.


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