chartist-plugin-pointlabels icon indicating copy to clipboard operation
chartist-plugin-pointlabels copied to clipboard

labelInterpolationFnc 0 gets passed as undefined

Open MartinMuzatko opened this issue 7 years ago • 7 comments

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
}

MartinMuzatko avatar Sep 26 '17 12:09 MartinMuzatko

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

clottman avatar Oct 02 '17 15:10 clottman

@MartinMuzatko Thanks for to fix

ehdwns980416 avatar Oct 20 '17 16:10 ehdwns980416

Should we just fix it in the library?

stomachfat avatar Aug 30 '18 19:08 stomachfat

Added a PR #25

MartinMuzatko avatar Aug 31 '18 08:08 MartinMuzatko

Added a PR https://github.com/gionkunz/chartist-plugin-pointlabels/pull/26

stomachfat avatar Sep 16 '18 01:09 stomachfat

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

minusf avatar Jan 22 '19 14:01 minusf

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

CodeMasterZeroOne avatar Aug 05 '20 12:08 CodeMasterZeroOne