Multivariate Color Scheme

Open
#236 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript

Research direction

Read the linked discussion in d3/d3-scale-chromatic#32 and review the related value-by-alpha and multivariate interpolation references. The issue asks how to design a multivariate color scheme for choropleth maps but does not identify files, tests, or a settled approach; first establish the intended API and blending behavior with the maintainers. Done means an agreed approach and implementation criteria.

Written by the indexing model from the issue text.

Description

As a follow-up to discussion in https://github.com/d3/d3-scale-chromatic/issues/32 , I'd like to pose the question of how to best calculate a multivariate color scheme. The use case is for building multivariate choropleth maps.

I'm investigating how one might approximate the colors of a dot density map, like this one.

image

The most sensible approach to me at the moment seems to be:

  • Define multiple single-hue color ramps that vary in opacity from 0 to 1, for each variable.
  • Blend those RGBA colors together.

Related:

Dominant language
JavaScript
Stars
1.6k
Forks
288
Avg merge
6h 41m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from d3/d3-scale

All issues in d3/d3-scale

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.