echarts icon indicating copy to clipboard operation
echarts copied to clipboard

ie10 ie11 配置了itemstyle的shadow之后图出不来,控制台显示“意外地调用了方法或属性访问”

Open peterchealse opened this issue 10 years ago • 6 comments

问题简述 (One-line summary)

ie10 ie11 配置了itemstyle的shadow之后图出不来,控制台显示“意外地调用了方法或属性访问”,ie9反而没有这个问题

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version): echart3
  • 浏览器类型和版本 (Browser version): ie10,ie11
  • 操作系统类型和版本 (OS Version): win10

重现步骤 (Steps to reproduce)

  1. 希望有个阴影的效果,加上了 itemStyle:{ normal:{ shadowColor: '#e3a9fd', shadowBlur: 3, } }, chrome正常 显示,ie10,ie11出错 ,“意外地调用了方法或属性访问”,图表没出来;鼠标悬浮在没有 出来的图表上,同样报此错误。

期望结果 (Expected behaviour)

配置了shadow的图表在ie9 ie11下正常 显示

可能哪里有问题 (What went wrong)

ECharts配置项 (ECharts option)

option = {
    "color": ["#2D78DD", "#6C43D3"],
    "title": {
        "text": "两客一危状态占比",
        "left": "left",
        "textStyle": {
            "color": "#b1a9b8",
            "fontFamily": "微软雅黑",
            "fontWeight": 200,
            "fontSize": 22
        }
    },
    "tooltip": {
        "trigger": "item",
        "formatter": "{b}: {c} ({d}%)"
    },
    "legend": {},
    "series": [{
        "type": "pie",
        "radius": ["30%", "70%"],
        "label": {
            "normal": {
                "show": true,
                "formatter": "{b}{d}%",
                "position": "outside",
                "textStyle": {
                    "fontSize": "14",
                    "color": "#fff"
                }
            },
            "emphasis": {
                "show": true,
                "textStyle": {
                    "color": "#fff",
                    "fontSize": "20",
                    "fontWeight": "bold"
                }
            }
        },
        "labelLine": {
            "normal": {
                "show": true,
                "length": 10,
                "length2": 25,
                "lineStyle": {
                    "color": "#fff"
                }
            }
        },
        "itemStyle": {
            "normal": {
                "shadowColor": "#e3a9fd",
                "shadowBlur": 3
            }
        },
        "data": [{
            "value": 88,
            "name": "在线"
        }, {
            "value": 12,
            "name": "离线"
        }]
    }]
}

其他信息 (Other comments)

peterchealse avatar Apr 29 '16 01:04 peterchealse

遇到楼主一样的问题,求版主解决下!

Sammiu avatar May 11 '16 04:05 Sammiu

目前在 win 7 虚拟机的 IE11 下无法复现该问题

pissang avatar May 11 '16 05:05 pissang

不会是win7的ie11和win10的ie11不一样吧 。。win7的下的ie10测过吗

peterchealse avatar May 21 '16 10:05 peterchealse

错误在fill的方法里面 目前是加了个try catch....

peterchealse avatar May 21 '16 10:05 peterchealse

同样遇到了这个问题~

BugBugshere avatar Nov 28 '16 01:11 BugBugshere

ie 9 & ie 10 下遇到这个问题了-- 移除 阴影效果就好了

leixu2txtek avatar Jan 09 '19 02:01 leixu2txtek