Skip to content

Fix numeric and numeric-string marker symbol variant detection in scattergl - #8071

Merged
camdecoster merged 5 commits into
plotly:mainfrom
Lexachoc:fix-scattergl-marker-symbol-display
Oct 22, 2026
Merged

camdecoster merged 5 commits into
plotly:mainfrom
Lexachoc:fix-scattergl-marker-symbol-display

Conversation

@Lexachoc

Copy link
Copy Markdown
Contributor

Closes #8070

Fix marker variant detection in scattergl for numeric (100, 200, and 300) and numeric-string ('100', '200' and '300') symbol values.

This PR makes numeric (numeric-string) symbol representations behave consistently with their named equivalents for scattergl and all WebGL-based traces that reuse its marker handling.

@Lexachoc Lexachoc changed the title Fix numeric marker variant detection issue in scattergl Sep 23, 2026
@Lexachoc
Lexachoc marked this pull request as draft September 24, 2026 09:40
@Lexachoc
Lexachoc marked this pull request as ready for review September 24, 2026 09:40
@Lexachoc

Copy link
Copy Markdown
Contributor Author

I think there was an issue with GitHub yesterday that caused many of the checks to fail. However, I can't seem to find an option to re-run the failed checks.

@camdecoster camdecoster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! Your update solves the problem. When I was reviewing, I found a helper function that could simplify this a bit. Let me know what you think.

Could you please add a unit test that covers these functions?

Comment thread src/traces/scattergl/helpers.js Resolved
Comment thread src/traces/scattergl/helpers.js Resolved
Comment thread src/traces/scattergl/helpers.js Resolved
@camdecoster camdecoster self-assigned this Sep 25, 2026
@Lexachoc

Copy link
Copy Markdown
Contributor Author

I applied your suggestion and added unit tests for the marker symbol detection.

@Lexachoc
Lexachoc requested a review from camdecoster October 6, 2026 15:22
@camdecoster
camdecoster merged commit 96c9eb3 into plotly:main Oct 22, 2026
87 of 88 checks passed
@Lexachoc
Lexachoc deleted the fix-scattergl-marker-symbol-display branch November 19, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants