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

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...

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

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

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

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.

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.