Skip to content

Commit

Permalink
[#1133] Pie Chart > selectItem 옵션 사용중일 때 legend영역 마우스 오버시 에러로그 발생
Browse files Browse the repository at this point in the history
###################################
1. hitInfo는 Pie차트일 경우에만 넘기도록 조건문 수장
  • Loading branch information
jhee564 committed Apr 21, 2022
1 parent 8896b60 commit b110cb1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/chart/plugins/plugins.legend.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Util from '@/components/chart/helpers/helpers.util';

const modules = {
/**
* Create legend DOM
Expand Down Expand Up @@ -200,10 +202,15 @@ const modules = {
? 'highlight' : 'downplay';
});

let hitInfo = null;
if (Util.isPieType(this.options.type)) {
hitInfo = { sId: targetId, type: this.options.type };
}

this.update({
updateSeries: false,
updateSelTip: { update: false, keepDomain: false },
hitInfo: { sId: targetId, type: this.options.type },
hitInfo,
});
};

Expand Down

0 comments on commit b110cb1

Please sign in to comment.