PDA

View Full Version : Changing chart theme after creating it.



mgtneven
15 Jan 2012, 3:40 AM
Hi all,

I've created a column chart with my own theme.
Code:


Ext.create('Ext.chart.Chart', {
renderTo: Ext.getBody(),
width: 200,
height: 200,
theme: 'myTheme',
...
});

now I want to change the theme in runtime, something like:

chart.theme= 'category1';

Is there any way to do something like this? It will be helpfull!

Many thanks.

mitchellsimoens
15 Jan 2012, 2:16 PM
Moved to the Ext JS 4 Q&A forum. Please post in the appropriate forum and wrap your code in code tags.