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

Expose tickFormat? #148

Closed
jheer opened this issue Aug 14, 2018 · 3 comments
Closed

Expose tickFormat? #148

jheer opened this issue Aug 14, 2018 · 3 comments

Comments

@jheer
Copy link
Member

jheer commented Aug 14, 2018

The tickFormat method is a useful utility, but currently only invokable via a scale instance. It would be helpful to also expose it as part of the d3-scale API - we would immediately make use of this in Vega!

@mbostock
Copy link
Member

You mean something like d3.tickFormat(domain, count = 10, specifier)?

Or perhaps d3.tickFormat(start, stop, count = 10, specifier) to be closer to d3.tickStep?

@jheer
Copy link
Member Author

jheer commented Aug 14, 2018

I was thinking of using the method as-is in https://github.com/d3/d3-scale/blob/master/src/tickFormat.js: d3.tickFormat(domain, count = 10, specifier)

That said, either would meet our needs well. Thanks!

mbostock added a commit that referenced this issue Jan 26, 2019
@mbostock mbostock mentioned this issue Jan 26, 2019
Merged
13 tasks
@mbostock
Copy link
Member

Added to #156.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants