Skip to content

Commit

Permalink
fix(labelLine):emphasis.labelLine not work in pie chart (#19180)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiersansi authored Oct 20, 2023
1 parent 31d58b2 commit 6ce4dbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/label/labelGuideHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ function setLabelLineState(
if (smooth > 0) {
(stateObj.shape as Polyline['shape']).smooth = smooth as number;
}

const styleObj = stateModel.getModel('lineStyle').getLineStyle();
isNormal ? labelLine.useStyle(styleObj) : stateObj.style = styleObj;
}
Expand Down Expand Up @@ -622,6 +621,9 @@ export function setLabelLineStyle(
if (stateObj) {
stateObj.ignore = true;
}
if (!!labelLine) {
setLabelLineState(labelLine, true, stateName, stateModel);
}
continue;
}
// Create labelLine if not exists
Expand Down

0 comments on commit 6ce4dbc

Please sign in to comment.