echarts-gl icon indicating copy to clipboard operation
echarts-gl copied to clipboard

bar3D 设置 grid3D.axisLine.show 为 false 时报错

Open Zegendary opened this issue 7 years ago • 3 comments

[问题描述]

bar3D 的 grid3D.axisLine.show, zAxis3D.axisLine.show, xAxis3D.axisLine.show, yAxis3D.axisLine.show, 为 false 均会 false

[报错信息]

Uncaught TypeError: Cannot read property '0' of null

[版本及环境]

  • ECharts version [ECharts 版本]: 4.1.0
  • ECharts-gl version [ECharts 版本]: 1.1.1
  • Browser version [浏览器类型和版本]: Version 67.0.3396.79 (Official Build) (64-bit)
  • OS Version [操作系统类型和版本]: MacOS 10.13.5

官方实例添加对应设置即可复现

http://echarts.baidu.com/examples/editor.html?c=transparent-bar3d&gl=1

Zegendary avatar Jun 14 '18 07:06 Zegendary

确实有此情况,目前个人临时解决方案是使用lineStyle: {opacity: 0}来隐藏,比如:

grid3D: {
    axisLabel: {
        show: false,
     },
     axisLine: {
         // show: false, // 这个有问题
         lineStyle: {
             opacity: 0,
          }
     },
    ....
}

liveangela avatar Jun 15 '18 07:06 liveangela

都2020年了还没修复。。。 还可以设置

lineStyle: {
  color: 'white',
}

daimaxiaxie avatar May 13 '21 07:05 daimaxiaxie

眼瞅着2024了,还是没有修复,忧桑

lost-sk avatar Dec 08 '23 03:12 lost-sk