Commit 88521444 authored by Mike Bostock's avatar Mike Bostock
Browse files


parent 66f13e58
......@@ -706,16 +706,16 @@ d3.scaleLinear().domain([10, 0]).ticks(5); // [10, 8, 6, 4, 2, 0]
Non-linear quantitative scales are slightly more accurate. [Log tick formatting]( now assumes a default *count* of ten, not Infinity, if not specified. Log scales with domains that span many powers (such as from 1e+3 to 1e+29) now return only one [tick]( per power rather than returning *base* ticks per power.
new d3.scaleSequential. new Viridis, Inferno, Magma, Plasma interpolators.
Sequential scales, [d3.scaleSequential](, are a new class of scales with a fixed output [interpolator]( instead of a [range]( Typically these scales are used to implement continuous sequential or diverging color schemes. Inspired by Matplotlib’s new [perceptually-motived colormaps](, 4.0 now features [viridis](, [inferno](, [magma](, [plasma]( interpolators for use with sequential scales. In conjunction with 4.0’s new [d3.quantize](, these interpolators can also be used with [quantile](, [quantize]( and [threshold]( scales.
[<img src="" width="100%" height="20" alt="viridis">](
[<img src="" width="100%" height="20" alt="inferno">](
[<img src="" width="100%" height="20" alt="magma">](
[<img src="" width="100%" height="20" alt="plasma">](
new default Cubehelix interpolator. new Rainbow, Warm, Cool interpolators.
4.0 also features several Cubehelix color schemes, including [Dave Green’s default](, and a [cyclical rainbow scheme]( inspired by [Matteo Niccoli](
[<img src="" width="100%" height="20" alt="cubehelix">](
[<img src="" width="100%" height="20" alt="cubehelix">](
[<img src="" width="100%" height="20" alt="rainbow">](
[<img src="" width="100%" height="20" alt="warm">](
[<img src="" width="100%" height="20" alt="cool">](
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment