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

labelInterpolationFnc 0 gets passed as undefined #19

Open
MartinMuzatko opened this issue Sep 26, 2017 · 7 comments
Open

labelInterpolationFnc 0 gets passed as undefined #19

MartinMuzatko opened this issue Sep 26, 2017 · 7 comments

Comments

@MartinMuzatko
Copy link

Hello! If not set, labelInterpolationFnc will use Chartist.noop. However, my chart shows undefined instead of 0.

I had to apply this function to fix this:

{
    labelInterpolationFnc: v=>v?v:0
}
@clottman
Copy link

clottman commented Oct 2, 2017

I also had this issue and can confirm that passing the labelInterpolationFnc solved it. Thanks for the fix @MartinMuzatko

@ehdwns980416
Copy link

@MartinMuzatko Thanks for to fix

@catsofmath
Copy link

Should we just fix it in the library?

MartinMuzatko added a commit to MartinMuzatko/chartist-plugin-pointlabels that referenced this issue Aug 31, 2018
@MartinMuzatko
Copy link
Author

Added a PR #25

@catsofmath
Copy link

Added a PR #26

@minusf
Copy link

minusf commented Jan 22, 2019

this is still an issue with the official release.
would it be possible to make a release with this fix?

@CodeMasterZeroOne
Copy link

Had this problem also. Your solution worked! Thank you 👍

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

No branches or pull requests

6 participants