Commit 3e774f83 authored by Mike Bostock's avatar Mike Bostock
Browse files


parent 04cea6e3
......@@ -698,16 +698,25 @@ Pursuant to the great namespace flattening:
* d3.time.scale ↦ [d3.scaleTime](
* d3.time.scale.utc ↦ [d3.scaleUtc](
Scales now generate ticks in the same order as the domain: if you have a descending domain, you now get descending ticks. This changes applies to time scales as well, and affects the order of tick elements generated by [axes](#axes-d3-axis). For example:
* quantitative scales generate ticks in the same order as the domain
* non-linear quantitative scales are more accurate
* *log*.tickFormat now filters by default to 10 ticks
* better *log*.ticks filtering for large domains
* *time*.ticks and *time*.nice now only accept time intervals (no string alias)
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. new Warm, Cool, Rainbow interpolators. new default Cubehelix interpolator
[<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">](
[<img src="" width="100%" height="20" alt="warm">](
[<img src="" width="100%" height="20" alt="cool">](
[<img src="" width="100%" height="20" alt="rainbow">](
[<img src="" width="100%" height="20" alt="cubehelix">](
new ordinal scale API!
new *ordinal*.unknown lets you control whether the domain is implicitly extended.
d3.scaleOrdinal constructor now takes an optional *range*.
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