Skip to content

[NUsight] Fix svg path generation for lines rendering#1765

Open
KimKhangHoang wants to merge 1 commit intomainfrom
hoang/chart-path-rendering
Open

[NUsight] Fix svg path generation for lines rendering#1765
KimKhangHoang wants to merge 1 commit intomainfrom
hoang/chart-path-rendering

Conversation

@KimKhangHoang
Copy link
Copy Markdown
Contributor

@KimKhangHoang KimKhangHoang commented Apr 23, 2026

This PR fixes chart lines not rendering due to an invalid SVG path string.

The path was previously built by concatenating an array, creating invalid output. This change correctly joins segments and avoids duplicating the first point.

Pre-PR Checklist:

Have you

  • Updated NUbook if necessary (add link to NUbook PR here)
  • Added/updated tests for your changes, including regression tests for bug fixes
  • Updated relevant module READMEs
  • Added/modified documentation directives in relevant code
  • Added a descriptive title and relevant labels to the PR

Reviewers, Note

The change is motivated by chart rendering in nusight. This path component also may be used elsewhere.

@KimKhangHoang KimKhangHoang marked this pull request as ready for review April 23, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant