TARUNTEjjjj commented on code in PR #21835:
URL: https://github.com/apache/echarts/pull/21835#discussion_r4604555463
##########
src/chart/line/LineView.ts:
##########
@@ -1037,6 +1037,11 @@ class LineView extends ChartView {
// Remove previous created polyline
if (polyline) {
this._lineGroup.remove(polyline);
+ // endLabel is attached to the previous polyline, recreate it on
the new one.
+ if (this._endLabel) {
+ polyline.removeTextContent();
Review Comment:
I checked an additional interaction mentioned as unverified in the PR:
`labelLayout: {moveOverlap: 'shiftY'}` with three line series whose end labels
initially occupy the same position. Across plain merged step changes `'end' →
false → 'middle' → 'start' → false`, the same series views are retained, each
new polyline owns its current end label, the label text stays correct, and the
label manager separates their resulting rectangles after every update.
The existing regression and this integration check pass. Adding a
multi-series overlap-layout case would protect the recreated label's
participation in layout, alongside the current attachment check. This
validation used animation disabled and the repository's Jest/jsdom/canvas
mocks, so it does not establish animated transitions or real-browser
typography. AI-assisted review and local validation with OpenAI Codex.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]