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
The scale must be a positional scale to be displayed as an axis, so the range must be numeric. What do you have if you don’t have a numeric range? Perhaps you’re looking for a legend?
Typically a scaleBand or scalePoint would be used instead of scaleOrdinal, but you can use a scaleOrdinal as long as the range is numeric and in either ascending or descending order.
Can I, for example, use a
ScaleOrdinal
where the range isn't a number list? I'm particularly concerned about this code: https://github.com/d3/d3-axis/blob/master/src/axis.js#L51The text was updated successfully, but these errors were encountered: