Results 1 to 5 of 5

Thread: Load empty data crashes chart

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-18512 in 6.0.1.
  1. #1
    Sencha Premium Member yorl1n's Avatar
    Join Date
    Mar 2015
    Location
    Germany
    Posts
    294

    Default Load empty data crashes chart

    Ext version tested:
    • Ext 6.0.0 rev 640
    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
    1. Open provided fiddle.
    2. Press Load data button -> data loads normally.
    3. Press Load empty button -> looks like empty data is loaded normally.
    4. 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.

  2. #2
    Sencha Premium Member yorl1n's Avatar
    Join Date
    Mar 2015
    Location
    Germany
    Posts
    294

    Default

    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.

  3. #3
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120

    Default

    Thanks for the report! It looks like this issue has been resolved for the next release of Ext JS 6.

    Thanks!
    Joel

  4. #4
    Sencha Premium Member ethraza's Avatar
    Join Date
    Jun 2007
    Location
    Brazil
    Posts
    378

    Question

    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)

  5. #5
    Sencha User
    Join Date
    Jun 2016
    Posts
    1

    Default 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?

Similar Threads

  1. Replies: 1
    Last Post: 23 Oct 2013, 4:02 PM
  2. Pie chart reload with empty data
    By ext-spring-mvc in forum Ext: Discussion
    Replies: 5
    Last Post: 18 Jun 2012, 4:56 PM
  3. [FIXED] [B2] Empty ResultSet crashes
    By olouvignes in forum Sencha Touch 2.x: Bugs
    Replies: 6
    Last Post: 9 Feb 2012, 12:34 PM
  4. Replies: 12
    Last Post: 29 Jul 2011, 10:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •