jeffmobiles commented on issue #8311: 使用svg 渲染, 编译压缩之后出现了Cannot read property '0' of null URL: https://github.com/apache/incubator-echarts/issues/8311#issuecomment-387610942 zrender里的grapha.js 里的 var rotate = -style.textRotation * 180 / Math.PI; attr(textSvgEl, 'transform', 'rotate(' + (rotate) + ',' + x + ',' + y + ')'); rotate 结果就是NaN, Svg渲染就会报错。 设置label的rotate属性就不会了。加个 label: { rotate: 0 }
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org For additional commands, e-mail: dev-h...@echarts.apache.org