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
Should I expect this to work or am I misunderstanding what nicing is supposed to do?
The d3 docs say about nice "An optional tick count argument allows greater control over the step size used to extend the bounds, guaranteeing that the returned ticks will exactly cover the domain."
The Scale transform in vega-encode is the primary contact point, where we invoke d3’s nice function. This looks like a potential d3-scale issue, so that’s the right place to file. What we do in Vega is pre-process the domain (ensuring zero as needed, any domain padding, etc) then invoke nice if the scale definition specifies it.
I wonder if the specific tick count argument (2) drives the behavior here.
Notice how in the example below, the domain is not nice when
zero: true
.Open the Chart in the Vega Editor
The text was updated successfully, but these errors were encountered: