SerialViz Colors | Brian Slesinsky | Observable
•ojs
•ojs
•ojs
•ojs
•ojs
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
Observable
Sign in
Brian Slesinsky
0
Reply
Add comment
Subscribe to notifications
0
SerialViz Colors | Brian Slesinsky | Observable