wmathor commented on issue #19508:
URL: https://github.com/apache/echarts/issues/19508#issuecomment-1894864553

   > I've seen this happening when two charts are displayed on two separate 
tabs.
   > As suggested, 
[resize](https://echarts.apache.org/en/api.html#echartsInstance.resize) is the 
solution. Try it in _onfocus_ event, without parameters.
   
   I tried to add the code
   ```
   document.getElemntById('LAY-index-normline').addEventListener('focus', 
function() {
       echnormline[0].resize();
   });
   ```
   But it doesn't feel elegant because the user will first see an incorrectly 
loaded graph, and then it requires the user to FOCUS and the graph becomes 
correct again, and this interaction feels bad!


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