Skip to main content
100%

list d3 color schemes

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Jun 5, 2016
Created on Jun 5, 2016

This example displays a list of color scheme names from the d3-scale-chromatic library, each with an accompanying note about the range of color counts it supports. The page uses `d3.select` to append an `h4` heading and a `div` for each scheme, dynamically reading the `range()` function from each generated scheme to display valid values. The schemes are defined directly in a bundled JavaScript file as hex strings, and the code relies on d3.v4’s selection and append methods for DOM manipulation.

AI-generated description

Proposal for an API to get the list of color schemes and ranges of acceptable color numbers.

Built with blockbuilder.org

Similar vizzes