[
-32768, 0, 1,
13, 6, 7,
8, 9
]
and the theshold is [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
while the output polygons contains value 10/11/12.
the length of the output polygons which value is 10/11/12 is the same as the length of polygons which value is 9.
Is it a bug? how get the output without 10/11/12?
E.g., if the domain is
[-149.76192742819748, 321.19300631539585]
and 14 ticks are desired, then the estimated tick step is 50
tickStep(-149.76192742819748, 321.19300631539585, 14)
and hence the resulting “niced” domain is
which when passed to ticks as
produces
[-140, -120, -100, -80, -60, -40, -20, 0, 20, 40, 60, 80, 100, 120, 140, 160, 180, 200, 220, 240]
and notice that –140 is greater than the original minimum. Related d3/d3-scale#209
We should be using d3.nice instead. d3/d3-array#174
ticks(...nice(-149.76192742819748, 321.19300631539585, 14), 14)
which produces
[-150, -100, -50, 0, 50, 100, 150, 200, 250, 300, 350]
although we should drop any threshold greater than or equal to the maximum.