PDA

View Full Version : piechart error when the store is empty



sldu
14 Nov 2011, 7:22 AM
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,

mitchellsimoens
16 Nov 2011, 12:45 PM
These have been reported as a bug

strictlyphp
29 May 2012, 5:58 AM
You don't happen to have a link to the bugreport?
This still seems to be the case in 4.1.0.

Thx!

mfruizs2
20 Aug 2012, 3:24 AM
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!

mfruizs2
22 Aug 2012, 10:23 PM
One "solution:

define a void data on store like this:


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

cya :)