Hybrid View

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Vote Rating
    0
    BrindleFly is on a distinguished road

      0  

    Default Unanswered: Cannot create an instance of unrecognized alias: series.pie

    Unanswered: Cannot create an instance of unrecognized alias: series.pie


    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.

  2. #2
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Vote Rating
    0
    BrindleFly is on a distinguished road

      0  

    Default


    Here is the full stack trace:

  3. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,011
    Answers
    668
    Vote Rating
    460
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Did you add charts to your require() list?

    Scott.

  4. #4
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Vote Rating
    0
    BrindleFly is on a distinguished road

      0  

    Default


    Yes. Any other thoughts? Can change series to other types (e.g. "line") and all works fine. Just cannot get Pie chart to work.

  5. #5
    Sencha User
    Join Date
    Jun 2012
    Posts
    6
    Vote Rating
    0
    BrindleFly is on a distinguished road

      0  

    Default


    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.

Thread Participants: 1