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:49:22 UTC

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

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


   `<template>
   <div>
   
     <div ref="ddddd" style="width:300px;height:300px">1123</div>
     <div ref="ddddd2" style="width:300px;height:300px">1123</div>
   </div>
   </template>
   <script>
   import echarts from "echarts";
   export default {
     mounted() {
       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" },
             ],
           },
         ],
       };
       const dd = echarts.init(this.$refs.ddddd);
       dd.setOption(data);
     
       const dd2 = echarts.init(this.$refs.ddddd2,null,{
                 renderer: "svg"
               });
       dd2.setOption(data);
     
     },
   };
   </script>
   `
   注: 只有 在pie 下  legend type 为 scroll 的时候 才会造成legend 错乱    版本 4.9.0


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

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #15957:
URL: https://github.com/apache/echarts/issues/15957


   


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

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


   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,请使用 issue 模板重新创建 issue。
   
   如果您认为虽然没有使用模板,但您已经提供了复现问题的充分描述,或者您的问题无法使用模板表达,也可以重新 open 这个 issue。


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