Yhspehy opened a new issue #8120: 使用echarts-wordcloud导出base64图片信息不完整
URL: https://github.com/apache/incubator-echarts/issues/8120
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### 使用echarts-wordcloud导出base64图片信息的时候,发现base64位的编码信息不完整,放在img上后无法渲染出图片。
   
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:^3.8.5
   + Echarts-wordcloud [Echarts-wordcloud版本]:^1.1.3
   + Browser version [浏览器类型和版本]:Chrome 65
   + OS Version [操作系统类型和版本]: Win8
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   能够得到渲染出图片的base64字符串
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   let wordCloud = echarts.init(
       document.getElementById(id)
     )
     wordCloud.setOption({
       series: [{
         type: 'wordCloud',
         shape: 'circle',
         sizeRange: [12, 30],
         rotationRange: [-60, 60],
         textRotation: [0, 45, 90, -45],
         rotationStep: 45,
         width: 390,
         height: 370,
         drawOutOfBound: false,
         textStyle: {
           normal: {
             color: function () {
               return 'rgb(' + [
                 Math.round(Math.random() * 160),
                 Math.round(Math.random() * 160),
                 Math.round(Math.random() * 160)
               ].join(',') + ')'
             }
           },
           emphasis: {
             shadowBlur: 10,
             shadowColor: '#333'
           }
         },
         data: data.slice(0, 100)
       }]
     })
     return wordCloud.getDataURL({
       pixelRatio: 2,
       backgroundColor: '#fff'
     })
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org

Reply via email to