Ext JS 6 - No charts found despite including ext-all.js

Even though I have included the file ext-all.js

in my index page; getting error like below when i try this online Guage chart example provided by Sencha

http://myapp.com/widget/polar.js?_dc=1436970370848 404 (Not Found)
Uncaught Error: [Ext.create] Unrecognized class name / alias: widget.polar

      

+3


source to share


4 answers


Charts are in a separate package:

Sencha charts are not included by default in Ext JS library. To include the charts package, simply add "charts" ( "sencha-charts" if you are working with Ext JS 5.x) in the required block in the generated applications Sencha Cmd file {appRoot} /app.json. Adding the package name to the required array directs Cmd to make the package available to your application.



https://docs.sencha.com/extjs/5.1/components/introduction_to_charting.html

+4


source


In Extjs 6 you need to enable senche charts by uncommenting

"requires": [
        "sencha-charts"
    ],

      



in app.json

and execute the command sencha app watch

in sencha cmd through the application folder.

This works for me, I hope it will be helpful for you :)

+1


source


"requires": [
    "charts"
],

      

This should be uncommented from your app.json

+1


source


I had exactly the same problem when rendering polar diagrams. Turned out below solution: Add below in application.js

requires: ['Ext.chart.*']

      

+1


source







All Articles