Skip to content

Fix quiver arrows with a discrete marker.color array - #1

Draft
Yahiro025 wants to merge 21 commits into
mainfrom
fix/quiver-discrete-marker-color-8026
Draft

Yahiro025 wants to merge 21 commits into
mainfrom
fix/quiver-discrete-marker-color-8026

Conversation

@Yahiro025

@Yahiro025 Yahiro025 commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Fix quiver arrows so a discrete marker.color array paints each arrow with its own color.

Fixes plotly#8026

marker.color accepts an array. A numeric array uses the colorscale. A color-string array did not. lineGroupStyle cannot take an array, so the stroke stayed unset and every arrow drew black.

The draw path and the restyle path now paint each valid color string on its arrow. A numeric array still uses the colorscale.

Tests are in quiver_test.js. The new spec reads computed stroke after the first draw, after a marker.line.width restyle, and after selection styling. Scalar colors stay covered in should render multiple quiver traces. No image mock. No baseline change.

The draftlog file is draftlogs/XXXX_fix.md. Rename that file to <upstream-pr-number>_fix.md and put the same number in the link after the upstream pull request opens.

  • Issue link uses the GitHub close keyword Fixes #8026
  • dist/ unchanged
  • package-lock.json unchanged
  • Maintainer edits allowed on an upstream pull request

An AI assistant prepared this pull request. 🐦

Upstream compare link: https://github.com/plotly/plotly.js/compare/main...Yahiro025:plotly.js:fix/quiver-discrete-marker-color-8026?expand=1

Open in Web Open in Cursor 

Yahiro025 and others added 20 commits September 23, 2026 02:58
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 <[email protected]>
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 <[email protected]>
Runtime downloadImage treats a missing opts as {}.
toImage already marks opts optional; align downloadImage.

Fixes plotly#8072
Co-authored-by: Bennett Payoyo <[email protected]>
…-optional-8072

fix(types): make downloadImage opts optional
…-typed-array

fix: Allow typed arrays for numeric arrayOk attribute types
fix: Pick the trace drawn last on a hover tie in scattergl and splom
Bring the branch up to date with the default branch.
The rangeslider drag failure is outside the quiver diff.
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

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

2 participants