d3-scale icon indicating copy to clipboard operation
d3-scale copied to clipboard

diverging.domain([x0, x1][, pivot]) sets the domain from a 2-element extent & pivot

Open Fil opened this issue 5 years ago • 0 comments

examples:

  • d3.scaleDiverging().domain([-10, 145]).domain() // [-10, 0, 145]
  • d3.scaleDiverging().domain([89, 145], 100).domain() // [89, 100, 145]
  • d3.scaleDiverging().domain([112, 145], 100).domain() // [100, 100, 145]
  • d3.scaleDiverging().domain([-112, -145], -100).domain() // [-100, -100, -145]

solves https://github.com/d3/d3-array/issues/132

Fil avatar Jun 24 '20 10:06 Fil