skypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmail
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
719 B
27 lines
719 B
9 years ago
|
Ext.define('Ext.chart.overrides.AbstractChart', {
|
||
|
override: 'Ext.chart.AbstractChart',
|
||
|
|
||
|
updateLegend: function (legend) {
|
||
|
this.callParent(arguments);
|
||
|
if (legend) {
|
||
|
this.add(legend);
|
||
|
}
|
||
|
},
|
||
|
|
||
|
setParent: function (parent) {
|
||
|
this.callParent(arguments);
|
||
|
if (parent && this.getLegend()) {
|
||
|
parent.add(this.getLegend());
|
||
|
}
|
||
|
},
|
||
|
|
||
|
onItemRemove: function (item) {
|
||
|
this.callParent(arguments);
|
||
|
if (this.surfaceMap) {
|
||
|
Ext.Array.remove(this.surfaceMap[item.type], item);
|
||
|
if (this.surfaceMap[item.type].length === 0) {
|
||
|
delete this.surfaceMap[item.type];
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|