fzoboli opened a new issue, #20981:
URL: https://github.com/apache/echarts/issues/20981

   ### What problem does this feature solve?
   
   The current saveAsImage function in Apache ECharts allows users to download 
charts as images, but the dimensions are based on the chart's display size in 
the browser. This can lead to suboptimal image quality, especially on different 
screen resolutions.
   
   I propose adding options to specify the width and height for the downloaded 
image. This would ensure images are always in an optimal format for printing or 
sharing.
   
   Benefits:
   1. More control over image quality and dimensions.
   2. Consistent representation of charts regardless of display size.
   3. Enhanced usability for presentations and reports.
   
   ### What does the proposed API look like?
   
   Example Usage:
   
   `
   saveAsImage({
       type: 'png', // Image type
       width: 800,  // Desired width
       pixelRatio: 1 // Image resolution
   });
   `


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