Results 1 to 5 of 5

Thread: piechart error when the store is empty

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    2

    Wink piechart error when the store is empty

    I made a piechart, but when the store is empty, there are some error message in console(it can run):

    Error: Invalid value for <rect> attribute height="NaN"
    Error: Invalid value for <rect> attribute y="NaN"
    Error: Invalid value for <rect> attribute height="NaN"
    Error: Invalid value for <rect> attribute y="NaN"
    Error: Invalid value for <rect> attribute height="NaN"
    Error: Invalid value for <rect> attribute y="NaN"
    Error: Invalid value for <rect> attribute height="NaN"

    when I add a data to the store in render and beforerefresh event, the error disappear.

    and: when i click the legend there also a error message in console:

    Error: Problem parsing d=""

    anyone know the reason.

    thanks,

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    These have been reported as a bug
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Location
    Belgium
    Posts
    29

    Default

    You don't happen to have a link to the bugreport?
    This still seems to be the case in 4.1.0.

    Thx!

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    15
    Answers
    1

    Default Any solution?

    Quote Originally Posted by strictlyphp View Post
    You don't happen to have a link to the bugreport?
    This still seems to be the case in 4.1.0.

    Thx!
    Could u give the link, please?

    I have the same bug.

    Any solution or patch?

    thx!

  5. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    15
    Answers
    1

    Default

    One "solution:

    define a void data on store like this:

    Code:
    Ext.define('xxx.store.xxxModel', {
        extend: 'Ext.data.Store',
        model: 'xxx.model.xxxModel',
        data : [{
            name    : '',
            value    : 100    // another value diferent to "0"
        }],
    });
    cya

Posting Permissions

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