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
Log scales are a bit unusual in that all the ticks are drawn independent of the ticks option; instead, the ticks option only controls which ticks are labeled.
This means that if you set the tickFormat option with a log scale, it (for the most part) ignores the ticks option. These three specifications produce equivalent output:
It‘d be cleaner if the ticks option filtered the tick labels, composing with the given tickFormat, rather than baking the filtering into the tick format. That way you could override the tick format without affecting the number of displayed ticks.
The text was updated successfully, but these errors were encountered:
mbostock
changed the title
For a log scale, the tickFormat should only be considered for ticks that should be visible
For a log scale, the tickFormat function should only be considered for ticks that should be visible
Jun 9, 2024
Log scales are a bit unusual in that all the ticks are drawn independent of the ticks option; instead, the ticks option only controls which ticks are labeled.
This means that if you set the tickFormat option with a log scale, it (for the most part) ignores the ticks option. These three specifications produce equivalent output:
It‘d be cleaner if the ticks option filtered the tick labels, composing with the given tickFormat, rather than baking the filtering into the tick format. That way you could override the tick format without affecting the number of displayed ticks.
The text was updated successfully, but these errors were encountered: