SerialViz Colors | Brian Slesinsky | Observable
ojs
ojs
ojs
ojs
ojs
Author
Brian Slesinsky
@skybrian
Comments (1)
Mike Bostock
May 10, 2022
This alternative also appears to work, and is slightly shorter: function getColorRange(domain, scheme) { return Plot.scale({ color: { type: "categorical", scheme, domain } }).range; }
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
0
Follow
Follow
SerialViz Colors | Brian Slesinsky | Observable