Hi:
When I make some components in my web page,I found there a so many duplicate codes,for example,in my page I want to make two charts.
THe biggest difference of them is the data store and the title,however they have many same attributes.
I do this by define a new instance of Ext.chart:
var chart1=new Ext.chart.LineChart{config1};
var chart2=new Ext.chart.LineChart{config2};
There are so many same contents in the config1 and config2,is there any ideas to avoid this?
BTW,I have thought the extend mechanism in ext,however I can not get more details about how to use it only from the ext3.2 API.