Skip to content
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

lazyUpdate: true doesn't work well with resize #14846

Closed
Justineo opened this issue Apr 30, 2021 · 1 comment · Fixed by #14934
Closed

lazyUpdate: true doesn't work well with resize #14846

Justineo opened this issue Apr 30, 2021 · 1 comment · Fixed by #14934
Assignees
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Milestone

Comments

@Justineo
Copy link
Contributor

Version

5.1.1

Reproduction link

https://codepen.io/Justineo/pen/OJWYYzp

Steps to reproduce

chart.setOption(option, { lazyUpdate: true });
chart.resize();

What is expected?

Just works.

What is actually happening?

Uncaught TypeError: Cannot read property 'get' of undefined
    at t.getPipeline (echarts.min.js:45)
    at _f (echarts.min.js:45)
    at e.setData (echarts.min.js:45)
    at t.gf [as _reset] (echarts.min.js:45)
    at t._doReset (echarts.min.js:45)
    at t.perform (echarts.min.js:45)
    at echarts.min.js:45
    at e.<anonymous> (echarts.min.js:45)
    at Array.forEach (<anonymous>)
    at P (echarts.min.js:35)
@echarts-bot
Copy link

echarts-bot bot commented Apr 30, 2021

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so.

A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Apr 30, 2021
@pissang pissang added this to the 5.1.2 milestone Apr 30, 2021
100pah added a commit that referenced this issue May 13, 2021
100pah added a commit that referenced this issue May 13, 2021
fix: error thrown when resize is called after setOption called with lazyUpdate: true. fix #14846, fix #11395 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
3 participants