Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(label): fix endLabel fails with null data #18841

Merged
merged 3 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
5 changes: 4 additions & 1 deletion src/chart/line/LineView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down
44 changes: 43 additions & 1 deletion test/line-endLabel.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.