docked: 'bottom'
},
listeners: {
- afterrender: 'onAfterRender',
animationend: 'onAfterAnimation'
},
'<br>' + new Date(record.get('time')));
},
- onAfterRender: function(){
+ onAfterAnimation: function(chart, eopts) {
+ // if the undobuton is disabled,
+ // disable our tool
+ var ourUndoZoomButton = chart.tools[0];
+ var undoButton = chart.interactions[0].getUndoButton();
+ ourUndoZoomButton.setDisabled(undoButton.isDisabled());
+ },
+
+ initComponent: function() {
var me = this;
+ if (!me.store) {
+ throw "cannot work without store";
+ }
+
+ if (!me.fields) {
+ throw "cannot work without fields";
+ }
+
+ me.callParent();
+
// add correct label for left axis
var axisTitle = "";
if (me.percentArr.indexOf(me.fields[0]) != -1) {
}
});
});
- },
-
- onAfterAnimation: function(chart, eopts) {
- // if the undobuton is disabled,
- // disable our tool
- var ourUndoZoomButton = chart.tools[0];
- var undoButton = chart.interactions[0].getUndoButton();
- ourUndoZoomButton.setDisabled(undoButton.isDisabled());
- },
-
- initComponent: function() {
- var me = this;
-
- if (!me.store) {
- throw "cannot work without store";
- }
-
- if (!me.fields) {
- throw "cannot work without fields";
- }
-
- me.callParent();
// enable animation after the store is loaded
me.store.onAfter('load', function() {