Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return numbers from tick count helper #390

Merged
merged 1 commit into from
Jul 19, 2023
Merged

return numbers from tick count helper #390

merged 1 commit into from
Jul 19, 2023

Conversation

vijithassar
Copy link
Owner

@vijithassar vijithassar commented Jul 19, 2023

The ticks() helper function should return either an integer or a time interval function from d3-time to be used by axis.ticks(). Discrete scales need to return the number of ticks, not an array with the tick strings as was previously the case here.

Fixes a subtle bug – with discrete scales, the ticks() function should return the number of ticks, not the list of tick strings.
@vijithassar vijithassar merged commit f138b68 into main Jul 19, 2023
27 checks passed
@vijithassar vijithassar deleted the tick-count branch July 19, 2023 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant