},
onAfterAnimation: function(chart, eopts) {
+ if (!chart.header || !chart.header.tools) {
+ return;
+ }
// if the undo button is disabled, disable our tool
let ourUndoZoomButton = chart.header.tools[0];
let undoButton = chart.interactions[0].getUndoButton();
},
],
legend: {
+ type: 'dom',
padding: 0,
},
listeners: {
- animationend: 'onAfterAnimation',
+ redraw: {
+ fn: 'onAfterAnimation',
+ options: {
+ buffer: 500,
+ },
+ },
},
constructor: function(config) {
if (me.header && me.legend) {
me.header.padding = '4 9 4';
me.header.add(me.legend);
+ me.legend = undefined;
}
if (!me.noTool) {