Ho do I access the series from within the series' renderer or the label's renderer?
Sencha Charts - how to access series from the renderer?
I don't see an easy way to do this unless I set these configs in the series' constructor.
Scope in both renders is Ext.chart.series.sprite.Bar.
Code:
Ext.define('MySeries', {
extend: 'Ext.chart.series.Bar',
...
config: {
...
renderer: function (sprite, config, renderData, index) {
...
// how to access myMethod here?
return attrs;
},
label: {
...
renderer: function (value, sprite, config, renderData, index) {
// how to access myMethod here?
return value;
}
}
...
},
myMethod: function () {
}
...
Sencha Charts - how to access series from the renderer?
Aucun commentaire:
Enregistrer un commentaire