View Full Version : Cannot create an instance of unrecognized alias: series.pie

18 Jun 2012, 6:00 AM
I have extended the Portlet example to include displaying a pie chart. I am running 4.0.2a. I get an exception
Uncaught Ext.Error: Cannot create an instance of unrecognized alias: series.pie ext-core-dev.js:8336 (
The portlet extends Panel and the Pie chart is defined via an xtype "chart", with a series containing a type of "pie". Any help would be appreciated.

18 Jun 2012, 6:14 AM
Here is the full stack trace:

console.trace() ext-core-dev.js:9460 (

Ext.apply.logext-core-dev.js:9460 (
Ext.Error.Ext.extend.statics.raiseext-core-dev.js:8329 (
Ext.ClassManager.instantiateByAliasext-core-dev.js:6457 (
(anonymous function)ext-core-dev.js:2438 (
Ext.define.initializeSeriesclasses.js:16065 (
Ext.define.eachclasses.js:7159 (
Ext.define.redrawclasses.js:15817 (
Ext.define.refreshclasses.js:15949 (
fireext-core-dev.js:16837 (
Ext.define.fireEventclasses.js:202 (
Ext.define.loadRecordsclasses.js:19489 (
Ext.define.onProxyLoadclasses.js:19352 (
Ext.define.processResponseclasses.js:18620 (
(anonymous function)classes.js:18693 (
Ext.apply.callbackext-core-dev.js:8861 (
Ext.define.onCompleteclasses.js:3459 (
Ext.define.onStateChangeclasses.js:3429 (
(anonymous function)

18 Jun 2012, 9:49 AM
Did you add charts to your require() list?


18 Jun 2012, 10:13 AM
Yes. Any other thoughts? Can change series to other types (e.g. "line") and all works fine. Just cannot get Pie chart to work.

18 Jun 2012, 4:27 PM
Okay, I think I am all set. I upgraded to 4.1 and switched to including extjs-all.js instead of allclasses.js (which appear to be just the classes required for this example). Case closed. I only wish there was better documentation around the portal example.