-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add support for dynamic text #5
Comments
Added support for dynamic text
Pull request #6 fixes this issue. |
Added a check if the label.text property is a function, then call the function and return the value to be used for the text.
sure @ciprianciurea, will do so. The basic one I can think of is when the legend is displayed and you toggle a segments visibility as shown here: The relevant code, using the changes I made:
|
Thanks @jonathancounihan , managed to update the samples in the meantime. |
The code @jonathancounihan posted does not work here (chart.js 2.8.0). My other problem with your example is that I have no access to |
You'll find my PR here: #11 |
As I had several trouble using the internal |
|
Olá boa noite |
Add the ability for the label text to be created via a function, to support dynamically changing text.
The text was updated successfully, but these errors were encountered: