You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/02/16 13:51:14 UTC

[GitHub] [echarts] YZKnight opened a new issue #16520: [Bug] 文档中echartsInstance. getDataURL在选择为svg时返回的应该是URLEncode内容非base64编码内容

YZKnight opened a new issue #16520:
URL: https://github.com/apache/echarts/issues/16520


   ### Version
   
   5.3.0
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   https://echarts.apache.org/en/api.html#echartsInstance.getDataURL
   中echartsInstance.getDataURL方法
   ![image](https://user-images.githubusercontent.com/8240724/154277887-73780d4e-8491-4765-b29a-cc0d5243836d.png)
   `var img = new Image();
   img.src = myChart.getDataURL({
       type:'svg'
   });`
   返回的是UrlEncode而非是Base64
   
   ### Current Behavior
   
   Exports chart image; returns a base64 URL; can be set to` src `of `Image`.
   
   ### Expected Behavior
   
   Exports chart image; returns a base64 URL ( when using 'png' and 'jpg' ) or a UrlEncode URL ( when using 'svg' ); can be set to` src `of `Image`.
   
   ### Environment
   
   ```markdown
   - OS: Windows 11
   - Browser: Chrome 98.0.4758.82
   - Framework: None
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #16520: [Bug] 文档中echartsInstance. getDataURL在选择为svg时返回的应该是URLEncode内容非base64编码内容

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16520:
URL: https://github.com/apache/echarts/issues/16520#issuecomment-1041512258


   @YZKnight It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] echartsInstance in documentation. GetDataURL when selected as svg should return URLEncode content non-base64 encoded content
   </details>


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org