0
votes

when set chart theme with 'Green' , Error show

{ xtype: 'cartesian', reference: 'chart', width: '100%', height: 460, theme: 'Green', ...... }

Uncaught Error: [Ext.create] Singleton 'Ext.chart.theme.Green' cannot be instantiated

check Ext.chart.theme value only Base and Default ,so,we can't switch themes like the example http://examples.sencha.com/extjs/6.0.0/examples/kitchensink/?charts=true#column-stacked

so , how to solve the question and use varius themes in ext package , thanks

1

1 Answers

0
votes

You need to declare the requirement. Try adding requires: [ 'Ext.chart.theme.Green'] to your class definition.