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/03/14 01:41:32 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #16673: [Bug] toolbox的saveAsImage选项的excludeComponents排除toolbox时,图标的title依然会被绘制在图中

echarts-bot[bot] commented on issue #16673:
URL: https://github.com/apache/echarts/issues/16673#issuecomment-1066252546


   @life-as-flowers 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] When the excludeComponents of the saveAsImage option of the toolbox excludes the toolbox, the title of the icon will still be drawn in the figure
   
   **BODY**
   
   ### Version
   
   5.3.0
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   let option = {
       toolbox: {
           show: true,
           feature: {
               dataZoom: {
                   yAxisIndex: "none"
               },
               dataView: {
                   readOnly: false
               },
               magicType: {
                   type: ["line", "bar"]
               },
               restore: {},
               saveAsImage: {
                   excludeComponents: ["toolbox"] // After excluding the toolbox component, the title of the component's icon will still be generated in the figure
               },
           }
       },
       xAxis: {
           type: "category",
           boundaryGap: false,
           data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
       },
       yAxis: {
           type: "value",
           axisLabel: {
               formatter: "{value} °C"
           }
       },
       series: [{
           name: "Maximum temperature",
           type: "line",
           data: [11, 11, 15, 13, 12, 13, 10],
           markPoint: {
               data: [{
                   type: "max",
                   name: "Max"
               }, {
                   type: "min",
                   name: "Min"
               }]
           },
           markLine: {
               data: [{
                   type: "average",
                   name: "Avg"
               }]
           }
       }, {
           name: "Minimum temperature",
           type: "line",
           data: [1, -2, 2, 5, 3, 2, 0],
           markPoint: {
               data: [{
                   name: "Week Minimum",
                   value: -2,
                   xAxis: 1,
                   yAxis: -1.5
               }]
           },
           markLine: {
               data: [{
                   type: "average",
                   name: "Avg"
               },
               [{
                   symbol: "none",
                   x: "90%",
                   yAxis: "max"
               }, {
                   symbol: "circle",
                   label: {
                       position: "start",
                       formatter: "Max"
                   },
                   type: "max",
                   name: "Top"
               }]
               ]
           }
       }]
   };
   
   export default option;
   
   
   ### Current Behavior
   
   When the excludeComponents of the saveAsImage option of the toolbox excludes the toolbox, the title of the icon will still be drawn in the figure (using the official example of the toolbox)
   
   ### Expected Behavior
   
   After excluding the specified component, all information about the component is not displayed
   
   ### Environment
   
   ````markdown
   - OS: win7
   - Browser:chrome 99
   - Framework: vue 2.6.11
   ````
   
   
   ### Any additional comments?
   
   _No response_
   </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