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

Support for data point labeling #17

Closed
MCvdBank opened this issue Apr 25, 2018 · 4 comments
Closed

Support for data point labeling #17

MCvdBank opened this issue Apr 25, 2018 · 4 comments
Assignees

Comments

@MCvdBank
Copy link
Contributor

Hi,
Is there a possibility that you would consider adding support for data point labeling as illustrated in one of the ChartJS examples here?

The trick seems to be to define a plugin using the afterDatasetsDraw event, and manually drawing a label on the canvas for each data point. However, instead of defining a global plugin as per the example, I would rather define the plugin for each individual chart, as documented here.

Thank you for your consideration.

@mattosaurus
Copy link
Owner

Hi @MCvdBank, global plugins probably wouldn't work very well with this project but I should be able to add a plugin field into which you can add your own custom javascript.

@MCvdBank
Copy link
Contributor Author

Awesome! Thanks.

@mattosaurus
Copy link
Owner

Hi @MCvdBank, I've made this and your other suggested change and published v1.2.4 of the NuGet package.

@MCvdBank
Copy link
Contributor Author

MCvdBank commented May 4, 2018

Thanks @mattosaurus. This works perfectly, and opens up a lot of functionality.

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

2 participants