chartist-plugin-pointlabels
chartist-plugin-pointlabels copied to clipboard
[object Object] instead of data
Plugin is showing just [object Object] instead of data from series. Problem is visible on demo page as well: https://gionkunz.github.io/chartist-js/plugins.html
I'm seeing this too, I'll try and see what is wrong and submit a PR if I can work it out...
+1
Hi there. Unfortunately I can't look into this right now. The issue is that value objects are now two dimensional and the plugin needs to be updated. Instead of using value
to create the label, this expression should be used instead: value.x === undefined ? value.y : value.x + ', ' + value.y
. A PR would be much appreciated.
Hi, I worked it out and have a PR ready to submit, I will send it over tomorrow morning with the fix.
:+1:
PR https://github.com/gionkunz/chartist-plugin-pointlabels/pull/4 submitted, hope I've done it properly - It's my first one ;)
I've published 0.0.4 with your changes @alexstanbury
@Neurodriver can you also verify if the issue is resolved on your side?