-
Notifications
You must be signed in to change notification settings - Fork 42
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
Custom tooltips #12
Comments
I've found this, it needs to be written in JavaScript as the custom option not the callback option. Doc for custom here http://www.chartjs.org/docs/latest/configuration/tooltip.html#external-custom-tooltips. I'll just show how to get started. Create a new JavaScriptFunction object.
Add the JavaScriptFunction to the options and continue to create chart as normal.
When rendered should look like this:
Reference the documentation for all options. *note: can only be done with one chart on screen at a time due to the getElementById call. |
I have implemented this functionality in Tooltip callbacks + update fill #22 pull request |
@jochec changes are now available in 2.5.0 on Maven Central. |
Following the chart.js documentation to customize tooltips I could use options: tooltip: callbacks, but this option has been commented in code. How can I customise tooltips content?
The text was updated successfully, but these errors were encountered: