hl-stone commented on issue #8450: 动态嵌套饼图时, Cannot read property 'startAngle' of undefined URL: https://github.com/apache/incubator-echarts/issues/8450#issuecomment-423473542 也发现 有此问题,在IE9、8 浏览器下面 option 代码如下,点击 legend 控制台错误:【startAngle 为空或不是对象】 var option3 = { title : { text: '年末从业人数', backgroundColor:'#00479d', borderRadius: 5, left: 'left', top: 0, textStyle: { color: '#fff', fontWeight:'normal' }, padding:[5,15] }, toolbox: { show : false, feature : { mark : {show: true}, dataView : {show: true, readOnly: false}, magicType : { show: true, type: ['pie', 'funnel'], option: { funnel: { x: '25%', width: '50%', funnelAlign: 'left', max: 1548 } } }, restore : {show: true}, saveAsImage : {show: true} } }, legend: { textStyle:{ color:'#ffffff' }, data: ['外方','中方'], itemWidth: 10, itemHeight: 10, right: 20 }, tooltip: { trigger: 'item', formatter: "{a} <br/>{b} : {c} ({d}%)" }, series: [{ name: '', type: 'pie', startAngle:90, radius: '55%', center: ['27%', '50%'], data: [{ value: 45, name: '外方' }, { value: 25, name: '中方' }], label: { normal: { textStyle: { color: '#fff', fontSize: 12, }, position: 'inside', formatter: '{b}\n{d}%' } }, labelLine: { normal: { show: false } }, itemStyle: { normal: { borderWidth: 2, borderColor: '#022b7c', }, emphasis: { borderWidth: 0, shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.5)' } } }, { name: '', type: 'pie', startAngle:90, radius: '55%', center: ['72%', '50%'], data: [{ value: 456, name: '外方' }, { value: 251, name: '中方' }, ], label: { normal: { textStyle: { color: '#fff', fontSize: 12, }, position: 'inside', formatter: '{b}\n{d}%' } }, labelLine: { normal: { show: false } }, itemStyle: { normal: { borderWidth: 2, borderColor: '#022b7c', }, emphasis: { borderWidth: 0, shadowBlur: 10, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.5)' } } }], color: [ '#e6ad0a', '#3ba0f5', '#79d9f1', '#a7e7ff', '#c8efff' ], };
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
