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 2021/10/27 12:55:27 UTC

[GitHub] [echarts] 467469274 opened a new issue #15958: 一个模块init两个不同模式的echarts 造成错乱

467469274 opened a new issue #15958:
URL: https://github.com/apache/echarts/issues/15958


   ### Version
   4.9.0
   
   ### Steps to reproduce
   
   ```
       const data = {
         tooltip: {
           trigger: "item",
           formatter: "{a} <br/>{b}: {c} ({d}%)",
         },
         legend: {
           type: "scroll",
           orient: "vertical",
           left: 10,
           data: [
             "直接访问",
             "邮件营销",
             "联盟广告",
             "视频广告",
             "搜索引擎",
             "直接访问1",
             "邮件营销2",
             "联盟广告3",
             "视频广告4",
             "搜索引擎5",
             "直接访问11",
             "邮件营销22",
             "联盟广告33",
             "视频广告44",
             "搜索引擎55",
           ],
         },
         series: [
           {
             name: "访问来源",
             type: "pie",
             radius: ["50%", "70%"],
             avoidLabelOverlap: false,
             label: {
               show: false,
               position: "center",
             },
             emphasis: {
               label: {
                 show: true,
                 fontSize: "30",
                 fontWeight: "bold",
               },
             },
             labelLine: {
               show: false,
             },
             data: [
               { value: 335, name: "直接访问" },
               { value: 310, name: "邮件营销" },
               { value: 234, name: "联盟广告" },
               { value: 135, name: "视频广告" },
               { value: 1548, name: "搜索引擎" },
               { value: 335, name: "直接访问1" },
               { value: 310, name: "邮件营销2" },
               { value: 234, name: "联盟广告3" },
               { value: 135, name: "视频广告4" },
               { value: 1548, name: "搜索引擎5" },
               { value: 335, name: "直接访问11" },
               { value: 310, name: "邮件营销22" },
               { value: 234, name: "联盟广告33" },
               { value: 135, name: "视频广告44" },
               { value: 1548, name: "搜索引擎55" },
             ],
           },
         ]
   将数据 init  
   
       const dd = echarts.init(this.$refs.ddddd);
       dd.setOption(data);
     
       const dd2 = echarts.init(this.$refs.ddddd2,null,{
                 renderer: "svg"
               });
       dd2.setOption(data);
   ```
   
   将以上数据丢到 vue 2* 任意模块。 可以看到 下方legend 显示不全。  注:只会在legend type 为scroll 的情况下才会复现
   
   ### What is expected?
   legend 展示完全
   
   ### What is actually happening?
   展示不全
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   


-- 
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 #15958: 一个模块init两个不同模式的echarts 造成错乱

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






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