Search Three3D

chroma.js

Build and inspect color ramps in JavaScript for legends, terrain and heatmaps.

Pricing
Free · Open source
License
BSD-3-Clause (code); Apache-2.0 (ColorBrewer palettes)
Formats / platform
JavaScript, Web
Topics
UI & Motion3D Maps

Overview

Start with the stops in a legend, pick an interpolation space and sample the same scale for every view. A shared mapping helps the chart key, the map layer and the tooltip communicate the same value.

Best for

Key features & formats

How to use & license notes

Sample a scale into CSS colors for the legend and use the same domain in the renderer. The code uses BSD-3-Clause. Bundled ColorBrewer colors carry the separate Apache-2.0 notice in the license file.

Official site and license checked .