New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree 重复渲染报错: uncaught at _callee TypeError: Cannot read property 'getModel' of undefined #7720

Closed
xiashuyuan opened this Issue Feb 5, 2018 · 7 comments

Comments

Projects
None yet
4 participants
@xiashuyuan

xiashuyuan commented Feb 5, 2018

One-line summary [问题简述]

使用 tree 组件,切换data。从节点多的数据,切到节点少的数据,会报错:uncaught at _callee TypeError: Cannot read property 'getModel' of undefined。

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.0.2
  • Browser version [浏览器类型和版本]: Chrome 65.0.3325.31(正式版本)dev (64 位)
  • OS Version [操作系统类型和版本]: MacOS 10.13.2 (17C205)

Expected behaviour [期望结果]

点击按钮,切换数据源,Tree 图正常重绘。

ECharts option [ECharts配置项]

option = {
    series: {
          type: 'tree',
          data: [data],
          top: '1%',
          left: '7%',
          bottom: '1%',
          right: '20%',

          symbolSize: 7,

          label: {
            normal: {
              position: 'left',
              verticalAlign: 'middle',
              align: 'right',
              fontSize: 9,
            },
          },

          leaves: {
            label: {
              normal: {
                position: 'right',
                verticalAlign: 'middle',
                align: 'left',
              },
            },
          },

          expandAndCollapse: true,
          animationDuration: 550,
          animationDurationUpdate: 750,
        }
}

Other comments [其他信息]

https://github.com/xiashuyuan/echartDemos/blob/master/src/routes/WtChart.js

https://github.com/xiashuyuan/echartDemos/tree/master/src/assets  wtChart.png
@xiashuyuan

This comment has been minimized.

xiashuyuan commented Feb 5, 2018

@pissang 你好,可以帮我看下吗?

@Deval520

This comment has been minimized.

Deval520 commented Mar 27, 2018

@pissang 这个问题确实每次都可以复现 是什么bug吗 还是有什么清除缓存的方法?@xiashuyuan 你解决了吗

@Deval520

This comment has been minimized.

Deval520 commented Mar 28, 2018

@pissang 这个问题怎么解决?

@deqingli deqingli self-assigned this Apr 8, 2018

@deqingli

This comment has been minimized.

Member

deqingli commented Apr 8, 2018

你好,这个问题已经解决了,会随下个版本一起发布,欢迎验证,如果还有什么问题,可以再 reopen 这个 issue。

@deqingli deqingli closed this Apr 8, 2018

@liu-xiao-cui

This comment has been minimized.

liu-xiao-cui commented Apr 8, 2018

@deqingli 请问下个版本什么时候发布呢?

@deqingli

This comment has been minimized.

Member

deqingli commented Apr 26, 2018

4.1.0 我们已经开发完了,github 也打了tag,只是我们现在是 apache incubator,release 要符合 apache way,所以有点慢,我们自己也很着急,也在积极的推动,很抱歉给您带来不便。
祝好,
德清

@xiashuyuan

This comment has been minimized.

xiashuyuan commented Jun 27, 2018

@deqingli 感谢德清!迟来的感谢,望见谅!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment