Skip to content

fix(quiver): honor discrete marker.color arrays - #8069

Merged
camdecoster merged 7 commits into
plotly:mainfrom
Yahiro025:fix/quiver-discrete-marker-color-8026
Oct 19, 2026
Merged

camdecoster merged 7 commits into
plotly:mainfrom
Yahiro025:fix/quiver-discrete-marker-color-8026

Conversation

@Yahiro025

Copy link
Copy Markdown
Contributor

Summary

Fixes #8026.

A discrete marker.color array on a quiver trace left every arrow black. Array colors made the stroke argument undefined, and an unset stroke draws black. Numeric arrays still go through the colorscale later; a list of color strings does not turn the colorscale on, so every arrow stayed rgb(0, 0, 0).

strokeArrowColors in src/traces/quiver/style.js still sends numeric arrays through the colorscale. For any other array it sets each valid color string on that arrow. src/traces/quiver/plot.js uses the same helper so the first draw and a later restyle stay in sync.

Draftlog

Placeholder draftlogs/XXXX_fix.md will be renamed to match this PR number after open.

Test plan

  • Jasmine quiver suite: new discrete marker.color regression + existing coverage (18/18)
  • lint, typecheck, test-syntax

Notes

Assisted by AI tooling; reviewed before opening. Authorship Yahiro025-only.

A marker.color array of color strings skipped the colorscale path. lineGroupStyle then left the stroke unset, so every arrow drew black.

Co-authored-by: Bennett Payoyo <Yahiro025@users.noreply.github.com>
The entry uses a placeholder number until the upstream pull request exists. Rename draftlogs/XXXX_fix.md to that pull request number.

Co-authored-by: Bennett Payoyo <Yahiro025@users.noreply.github.com>
@camdecoster camdecoster self-assigned this Sep 23, 2026
Yahiro025 and others added 3 commits September 30, 2026 12:29
Bring the branch up to date with the default branch.
The rangeslider drag failure is outside the quiver diff.

@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!

@camdecoster
camdecoster merged commit 93b8c97 into plotly:main Oct 19, 2026
86 of 87 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants