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

Add back a way to use default formatters #5021

Closed
benmccann opened this issue Dec 3, 2017 · 2 comments
Closed

Add back a way to use default formatters #5021

benmccann opened this issue Dec 3, 2017 · 2 comments

Comments

@benmccann
Copy link
Contributor

benmccann commented Dec 3, 2017

From @adamk33n3r - #4602 (review) removes the possibility to use the default formatters via Chart.Ticks like

userCallback: (value, index, values) -> Chart.Ticks.formatters.linear(value, index, values) + '%'

It turned out that I ended up having the same issue in the financial chart as well. I had to copy the Ticks.formatters.linear implementation there:
chartjs/chartjs-chart-financial@0d47e06#diff-7499900c079d3c33e145ddba2be7d916

@benmccann
Copy link
Contributor Author

From @cholt0425:

I also created an extension and I used the default linear formatter for the linear gauge I created and now I can't access it to use it as the default callback.

@simonbrunel
Copy link
Member

Fixed by #5088

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

No branches or pull requests

3 participants