Skip to content

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

Open
Yahiro025 wants to merge 4 commits into
plotly:mainfrom
Yahiro025:fix/quiver-discrete-marker-color-8026
Open

Yahiro025 wants to merge 4 commits into
plotly:mainfrom
Yahiro025:fix/quiver-discrete-marker-color-8026

Conversation

@Yahiro025

Copy link
Copy Markdown

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>
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.

[BUG]: The quiver trace ignores a discrete marker.color array and results in every arrow being black

1 participant