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 2019/10/11 02:18:00 UTC

[GitHub] [incubator-echarts] lrusering opened a new issue #11380: echarts 在IE11 上使用svg, 文字会重复出现

lrusering opened a new issue #11380: echarts 在IE11 上使用svg, 文字会重复出现
URL: https://github.com/apache/incubator-echarts/issues/11380
 
 
   一开始初始化的时候就出现了
   ![image](https://user-images.githubusercontent.com/16329550/66619523-cd078f00-ec0f-11e9-948c-8aa853c3bc0e.png)
   配置如下:
   myCahrt2 = echarts.init(charts2, null, { renderer: 'svg' });
   
    myCahrt2.setOption(chartOption2);
   
   var chartOption2 = {
           backgroundColor: "#00155C",
           title: [
               {
                   text: '昨日归寝分析',
                   left: "center",
                   top: "10px",
                   textStyle: {
                       fontWeight: 'normal',
                       fontFamily: "微软雅黑",
                       color: "#F0F0F0"
                   },
               },
               {
                   text: '分析人数',
                   left: "44%",
                   top: "47%",
                   textStyle: {
                       fontFamily: "微软雅黑",
                       fontWeight: 'normal',
                       fontSize: 16,
                       color: "#F0F0F0",
                   },
                   textAlign: 'center',
                   subtext: '0',
                   subtextStyle: {
                       fontFamily: "微软雅黑",
                       //fontWeight: 'normal',
                       fontSize: 24,
                       color: colors.textColor,
                   }
               }
           ],
           clockwise: false, //饼图的扇区是否是顺时针排布
           minAngle: 2, //最小的扇区角度(0 ~ 360)
           color: colors.state,
           legend: {   // 图例组件
               orient: 'vertical', // 布局方向
               right: 20,
               top: "middle",
               align: "",
               itemWidth: 12,
               itemHeight: 12,
               selectedMode: false,    // 控制是否可以通过点击图例改变系列的显示状态
               data: ["正常", "晚归", "未归", "失联", "请假"],
               textStyle: {    // 字体样式
                   height: 18,
               }
           },
           tooltip: false,
           series: [{
               type: 'pie',    // pie 饼图
               radius: ["54%", "65%"],
               center: ["45%", "55%"], 
               data: [                 // 数据
                   { value: 0, name: '正常' },
                   { value: 0, name: '晚归' },
                   { value: 0, name: '未归' },
                   { value: 0, name: '失联' },
                   { value: 0, name: '请假' },
               ],
               label: {
                   //formatter: "{d}%  {c}人"
                   formatter: function (params) {
                       return params.percent + "% " + params.value + "人 ";
                   }
               }
           }]
       };
   
   我在网上搜索了一下,有人提出过类似的问题,但也没一个好的解决方案,希望能修复一下

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org