PDA

View Full Version : 'Unexpected value NaN parsing y attribute.' warning while drawing pie chart



shekhar.kotekar
28 Feb 2012, 11:04 PM
I am trying to draw an pie chart using ExtJS but something is going wrong. I can see following warnings in firebug window :



Unexpected value NaN parsing y attribute. Unexpected value NaN parsing height attribute.

Code for my pie chart is as follows :



xtype: 'chart',
title: 'Location wise candidate distribution',
itemId: 'CandidateDistributionChart',
store: 'CandidateDistribution',
width: 250,
height: 260,
shadow: true,
animate: true,
theme: 'Base:gradients',
legend: {
position: 'right'
},
series: [{
type: 'pie',
field: 'candidateCount',
showInLegend: true,
label: {
field: 'name',
contrast: true,
font: '18px Arial'
}
}]

Why do those warnings are coming? Currently chart is not getting drawn even though I have mentioned all the necessary values.
Please help...

mitchellsimoens
29 Feb 2012, 6:47 AM
What is your response?

tungbi4790
9 Mar 2012, 12:54 AM
How fix warning ??? mitchellsimoens (http://www.sencha.com/forum/member.php?22216-mitchellsimoens)

tababala
9 Sep 2012, 10:55 PM
hi
i have same problem.

awadhesh
12 Feb 2013, 10:36 AM
I am facing the same problem in my line chart, chart drawn correctly but it gives this error in forebug. May I know the possible root cause of this problem?
How can we fix this problem? Appreciate all your attention and help.

imnilesh
18 Jul 2013, 4:31 AM
I came across this error.
In my case, the data in the store was the source of error. I had my JSON data coming in wrong format.