This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch fix-endLabel in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 9f9e2d3cee3f432c7ad24b8241652c15ee27357b Author: Ovilia <zwl.s...@gmail.com> AuthorDate: Tue Jul 4 17:26:58 2023 +0800 fix(endLabel): endLabel fail with null data #18839 --- src/chart/line/LineView.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chart/line/LineView.ts b/src/chart/line/LineView.ts index d16e341a7..8c07a3d93 100644 --- a/src/chart/line/LineView.ts +++ b/src/chart/line/LineView.ts @@ -1299,7 +1299,10 @@ class LineView extends ChartView { }); } if (valueAnimation) { - labelInner(endLabel).setLabelText(value); + const inner = labelInner(endLabel); + if (inner && typeof inner.setLabelText === 'function') { + inner.setLabelText(value); + } } } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org