diff --git a/src/chart/helper/Symbol.js b/src/chart/helper/Symbol.js index 75b0810d76f7fae7626eb3cdc542211c647f2964..5680565005e95b0369f6cadfe444b826009fd7ae 100644 --- a/src/chart/helper/Symbol.js +++ b/src/chart/helper/Symbol.js @@ -194,6 +194,10 @@ define(function (require) { var size = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize')); + symbolPath.off('mouseover') + .off('mouseout') + .off('emphasis') + .off('normal'); if (itemModel.getShallow('hoverAnimation')) { var onEmphasis = function() { var ratio = size[1] / size[0]; diff --git a/src/chart/pie/PieView.js b/src/chart/pie/PieView.js index c226226483e69d6b2c1d8679ac34bc2161016a56..ade96895592cca92be9083d3be5a15ba996aa3b4 100644 --- a/src/chart/pie/PieView.js +++ b/src/chart/pie/PieView.js @@ -77,6 +77,7 @@ define(function (require) { this.updateData(data, idx, true); + // Hover to change label and labelLine function onEmphasis() { polyline.ignore = polyline.hoverIgnore; text.ignore = text.hoverIgnore; @@ -85,10 +86,10 @@ define(function (require) { polyline.ignore = polyline.normalIgnore; text.ignore = text.normalIgnore; } - this.on('emphasis', onEmphasis); - this.on('normal', onNormal); - this.on('mouseover', onEmphasis); - this.on('mouseout', onNormal); + this.on('emphasis', onEmphasis) + .on('normal', onNormal) + .on('mouseover', onEmphasis) + .on('mouseout', onNormal); } var piePieceProto = PiePiece.prototype;