From 6ce4dbcabf3cea165479e48f96d67eaea56079f0 Mon Sep 17 00:00:00 2001 From: shiersansi <143710553+shiersansi@users.noreply.github.com> Date: Fri, 20 Oct 2023 15:47:04 +0800 Subject: [PATCH] fix(labelLine):emphasis.labelLine not work in pie chart (#19180) --- src/label/labelGuideHelper.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/label/labelGuideHelper.ts b/src/label/labelGuideHelper.ts index fdb70665e1..1177ceef09 100644 --- a/src/label/labelGuideHelper.ts +++ b/src/label/labelGuideHelper.ts @@ -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; } @@ -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