Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJS-18512
in
6.0.1.
-
Load empty data crashes chart
Ext version tested:
Browser versions tested against:
All
Description:
After trying to load empty data in chart and then load normal data Uncaught TypeError: Cannot read property 'calloutOriginal' of undefined
message is thrown in console. After that there is no way to load any data.
Steps to reproduce the problem:
Fiddle- Open provided fiddle.
- Press Load data button -> data loads normally.
- Press Load empty button -> looks like empty data is loaded normally.
- Press Load data button one more time.
The result that was expected:
Data loads normally as for step 2. To see what is expected launch the fiddle with ExtJs v.5.1.1
The result that occurs instead:
Uncaught TypeError: Cannot read property 'calloutOriginal' of undefined
exception is thrown. Data stops loading.
-
The same happens when load data with n records in store and then load data with parameters < n.
So when number of items decreases the chart crashes.
-
Thanks for the report! It looks like this issue has been resolved for the next release of Ext JS 6.
Thanks!
Joel
-
Sencha Premium User
I'm developing an OpenSource project with ExtJS 6.0.0 and I'm suffering with this problem for over a month now.
I just found this post!
Since Sencha don't care that much to update the GPL version, there is some known workaround I can apply now to my project?
Thank you.
LAMPE (Linux / Apache / MySQL / PHP / ExtJs)
-
Sencha User
Does this fix include label fix?
I ran across this, or a similar error in the same 6.0.0.640 build when reloading the store with a smaller set of data (as mentioned in comment #2). The workaround for me was to not specify the labels (which has the side effect of no legend), but does allow the chart to load. Specifically, with the labels enabled, I get the following errors when reloading the store with the smaller data set:
Uncaught TypeError: Cannot read property '0' of null (on Instancing.js line 172)
followed by SEVERAL (one for every mouse move!) errors that say:
Uncaught TypeError: Cannot read property 'orientation' of undefined (on PieSlice.js line 180)
Will the fix specified in EXTJS-18512 also correct the case I've described?