ousmorez commented on issue #18147:
URL: https://github.com/apache/echarts/issues/18147#issuecomment-1387042675

   @Ovilia I tried to resize the chart before starting the print process using 
the following code:
   
   ```javascript
         var mediaQueryList = window.matchMedia('print');
         mediaQueryList.addListener(function(mql) {
           if (mql.matches) {
             myChart.resize();
           }
           else {
             myChart.resize();
           }
       });
   ```
   But I noticed that the resizing process starts immediately after opening the 
print dialog. After print dialog pops up the chart will resize, but print 
process will print the chart that is not resized yet.
   
   
![s](https://user-images.githubusercontent.com/50699824/213178797-cc5640c5-873c-4313-9c83-a83d98116a8f.gif)
   
   
   


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