You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
axis.ticks() returns Arguments object after axis.ticks(count) #2430
This bit me when I was feeding an explicit tick spec of an axis to the underlying scale of the axis to get tick values from the scale to manipulate and then feed back to the axis. scale.ticks did not like the Arguments object, giving me [].
The problem is this line in axis.ticks:
tickArguments_ = arguments;
That line should probably look or at least behave like this:
changed the title [-]axis.ticks() returns non-Array after axis.ticks(count)[/-][+]axis.ticks() returns Arguments object after axis.ticks(count)[/+]on May 11, 2015
Activity
[-]axis.ticks() returns non-Array after axis.ticks(count)[/-][+]axis.ticks() returns Arguments object after axis.ticks(count)[/+]mbostock commentedon Oct 21, 2015
Sounds reasonable.
Fix #2430 - axis.ticks should return an array.
mbostock commentedon Oct 22, 2015
Fix merged in #2591.