Fabio Crameri’s Colormaps
This example displays Fabio Crameri’s scientific color maps, including Berlin and Bilbao, as full-width sequential swatches. Clicking a named button transitions the entire visualization to a different colormap. The code loads the color arrays from a local JavaScript file and renders them as SVG rectangles using D3 v5’s `d3.scaleSequential` and `d3.interpolate*` functions. Animated transitions between palettes are achieved with D3’s `transition` method, allowing users to compare the perceptual qualities of each map.
AI-generated descriptionFabio Crameri’s Colormaps, based on http://www.fabiocrameri.ch/colourmaps.php
See https://beta.observablehq.com/@fil/colormaps
License: CCBY 4.0
forked from <a href='http://bl.ocks.org/pstuffa/'>pstuffa</a>'s block: <a href='http://bl.ocks.org/pstuffa/d5934843ee3a7d2cc8406de64e6e4ea5'>4.0 Color Scales - Sequential</a>