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 07:27:48 UTC

[GitHub] [echarts] zhouYji opened a new issue #16515: [Bug] svg渲染模式下载的svg图片背景色是黑色的

zhouYji opened a new issue #16515:
URL: https://github.com/apache/echarts/issues/16515


   ### Version
   
   4.8.0
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   const option = {
         ...boxOption,
         title: [{
           left: 'center'
         }],
         toolbox:{
           feature: {
             saveAsImage: {}
           }
         },
         xAxis: {
           ...boxOption.xAxis,
           data: newData.groupName,
           axisLabel: {
             // formatter: '{value}',
             rotate: -40,
             interval: 0,
           },
         },
         series: [
           {
             name: 'boxplot',
             type: 'boxplot',
             data: data.boxData,
             tooltip: {
               formatter: function (param) {
                 return [
                   'Experiment ' + param.name + ': ',
                   'upper: ' + param.value[5],
                   'Q3: ' + param.value[4],
                   'median: ' + param.value[3],
                   'Q1: ' + param.value[2],
                   'lower: ' + param.value[1]
                 ].join('<br/>');
               }
             }
           },
           // {
           //   name: 'outlier',
           //   type: 'scatter',
           //   data: data.outliers
           // }
         ]
       };
       myChart.setOption(option);
   
   ### Current Behavior
   
   通过svg渲染后下载svg图片,使用AI软件打开,背景色变成了黑色,为异常状态。
   
   ### Expected Behavior
   
   通过svg渲染后下载svg图片,使用AI软件打开,背景色正常
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### 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 #16515: [Bug] svg渲染模式下载的svg图片背景色是黑色的

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


   @zhouYji 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] The background color of svg images downloaded in svg rendering mode is black
   </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


[GitHub] [echarts] plainheart edited a comment on issue #16515: [Bug] svg渲染模式下载的svg图片背景色是黑色的

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #16515:
URL: https://github.com/apache/echarts/issues/16515#issuecomment-1041215245


   是黑色还是透明?如果想要有背景色,可以指定下 `backgroundColor`。试了下最新版本没有问题,4.8 可以考虑手动设置一下背景色。


-- 
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] plainheart commented on issue #16515: [Bug] svg渲染模式下载的svg图片背景色是黑色的

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16515:
URL: https://github.com/apache/echarts/issues/16515#issuecomment-1041215245


   是黑色还是透明?如果想要有背景色,可以指定下 `backgroundColor`


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