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 2020/08/28 04:02:42 UTC

[GitHub] [incubator-echarts] InfinityMo commented on issue #13204: saveAsImage 当div高度过低时,导出的图片底部有一条横线

InfinityMo commented on issue #13204:
URL: https://github.com/apache/incubator-echarts/issues/13204#issuecomment-682312177


   
   ![img](https://user-images.githubusercontent.com/68720016/91519402-14306880-e925-11ea-8a26-57a9e48a1e19.png)
   
   
   <div id="chart" style="width:100%;height:151px"></div>
   option = {
           tooltip: {
             show: true
           },
           toolbox: {
             feature: {
               saveAsImage: {
                 name: '词云图',
                 backgroundColor: '#fff',
                 connectedBackgroundColor: '#fff'
               }
             }
           },
           series: [{
             type: 'wordCloud',
             gridSize: 3, // 字体间的间距
             sizeRange: [20,50], // 最小字体和最大字体
             rotationRange: [0,0], // 字体旋转角度的范围
             shape: 'circle', 
             textStyle: {
               normal: '#6E6E6E',
               emphasis:'bold'
             },
             data: [
     {
       name: '多少钱',
       value: 41
     }, {
       name: '价格',
       value: 36
     }, {
       name: '贵',
       value: 29
     }, {
       name: '便宜',
       value: 19
     }, {
       name: '折扣',
       value: 7
     }, {
       name: '赠品',
       value: 7
     }, {
       name: '心痛',
       value: 7
     }, {
       name: '信用卡',
       value: 7
     }, {
       name: '银子',
       value: 6
     }, {
       name: '退税',
       value: 6
     }, {
       name: '太贵',
       value: 4
     }, {
       name: 'RMB',
       value: 4
     }, {
       name: '汇率',
       value: 4
     }, {
       name: '最贵',
       value: 2
     }, {
       name: '没钱',
       value: 2
     }
   ]
           }]
         }
   


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

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