d3 / d3-axis

Human-readable reference marks for scales.

Home Page:https://d3js.org/d3-axis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ticks transition sometimes produces console errors when used with tickValues

kamiua opened this issue · comments

There is issue we have which probably is related to [#24].
Here is example for reproduction.

You are specifying tick values that are not defined in your scale’s domain. For example:

domain = [316, 225, 392, 377, 336, 295, 382, 270, 391, 224, 251, 319, 207, 204, 383]
tickValues = [363, 276, 249]

Ordinal scales (including band and point scales) are only defined on their domain, so it’s not possible to render tick values outside of the domain.