PDA

View Full Version : Using chart themes with ext-debug.js



korax
15 Aug 2011, 9:15 AM
I'm unable to create charts using ext-debug.js in my development application. An exception is thrown:


uncaught exception: No theme found named "Base"

...or whatever theme I try to use. Everything's fine when using ext-all-debug.js, but I can't compile my app using the SDK tools with that version of the framework. Can anyone tell me what I'm doing wrong? Is there a specific class I should require using the loader?

If I try to include the base theme like this:


Ext.Loader.require('Ext.chart.theme.Base');

The error is:


Ext.chart.series is undefined

So obviously there's some issue with ext-debug.js and charting, or I don't understand how to use ext-debug.js with the charting package (although I don't have a problem developing with any other part of ExtJS).

korax
18 Aug 2011, 9:23 AM
For anyone interested, I've found that the entire chart package must be included in order for charts to work when using ext-debug.js:


Ext.require('Ext.chart.*');

I'd previously tried to include just the chart or chart theming classes to no avail. As far as I can tell, this isn't documented anywhere. I think a Guide in the docs that details how Ext.Loader works, and how it interacts with the various debug and release builds of ExtJS, would be extremely helpful. If the information is there in total (which I don't believe it is), it's currently too disparate to be of use.

I'll mark this answered, even though I've answered it myself. :/