PDA

View Full Version : Pie Chart in Sencha touch 2 through MVC



sangita.r9
24 Aug 2012, 3:30 AM
Hi,

I want to create a Pie chart in Sencha touch 2 using MVC. I am able to create it without using MVC, but while doing the same thing through MVC I am getting the following error :



Uncaught TypeError: Cannot set property 'Component' of undefined Component.js:48 (http://localhost:8080/quickenweb/pages/main/sencha-touch/src/draw/Component.js?_dc=1345807587153)

(anonymous function)Component.js:48 (http://localhost:8080/quickenweb/pages/main/sencha-touch/src/draw/Component.js?_dc=1345807587153)




Uncaught Error: The following classes are not declared even if their files have been loaded: 'Ext.draw.Component'. Please check the source code of their corresponding files for possible typos:


[Note : I have extended Ext.chart.Chart]

Suggest me if there is any sample example available for Pie chart in MVC in Sencha Touch 2.


Thanks,
Sangita

scottd
24 Aug 2012, 10:24 AM
I'm having the same issue, except that my error is the one below, which happens when I pull the exact source code of the Touch-Charts2 Pie example into my MVC project.

Is Touch-Charts2 supported with MVC?

Uncaught TypeError: Property 'highlight' of object #<Object> is not a function