observablehq / observablehq/plot

Support SVG patterns as a color scheme

Open
#903 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
HTML
Stars
5.4k
Forks
244
PR merge metrics
No merged PRs in 30d

Description

we could select a list of "standard textures" to propose as an ordinal color scheme? e.g. {scheme: "textures"}; Plot would be responsible for adding the necessary and would return the corresponding funciri ("url(#texture1)" etc.)

(follow-up on #362)

cc @awiederkehr

related: #805

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading follow-up issue #362 and related issue #805, then inspect Plot’s color-scheme API and SVG output behavior. Define the standard textures and the returned url(#texture1)-style values, with Plot adding the required ; done when textures can be selected as an ordinal color scheme.

Written by the indexing model from the issue text.

Assessment

Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.