Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/chart/line/LineView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -942,9 +942,14 @@ class LineView extends ChartView {
) {
const data = seriesModel.getData();
const dataIndex = modelUtil.queryDataIndex(data, payload);
const emphasisDisabled = seriesModel.getModel('emphasis').get('disabled');

this._changePolyState('emphasis');

if (emphasisDisabled) {
return;
}

if (!(dataIndex instanceof Array) && dataIndex != null && dataIndex >= 0) {
const points = data.getLayout('points');
let symbol = data.getItemGraphicEl(dataIndex) as SymbolClz;
Expand Down Expand Up @@ -1001,6 +1006,7 @@ class LineView extends ChartView {
) {
const data = seriesModel.getData();
const dataIndex = modelUtil.queryDataIndex(data, payload) as number;
const emphasisDisabled = seriesModel.getModel('emphasis').get('disabled');

this._changePolyState('normal');

Expand All @@ -1011,12 +1017,12 @@ class LineView extends ChartView {
data.setItemGraphicEl(dataIndex, null);
this.group.remove(symbol);
}
else {
else if (!emphasisDisabled) {
symbol.downplay();
}
}
}
else {
else if (!emphasisDisabled) {
// FIXME
// can not downplay completely.
// Downplay whole series
Expand Down