-
Notifications
You must be signed in to change notification settings - Fork 113
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
[ask] add label on pie chart #82
Comments
Use the data label plugin. |
First add the script file <script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>then add these lines of code to your optionsRaw in Controller: |
thanks for your answer, but when i put this script do you know why this happen?Thanks! |
This is because of the compatibility issue. |
Are you working with Ajax Call? |
Also, add your code snippet to better communicate |
change the labels array inside plugins to datalabels |
i already tried to change labels to datalabels, but i dont find the font-size, because im not setting it. why this happen |
The third error you faced is because of the Hover attribute try to remove it and test it again or try to work it in events. Try to remove any other templates styles or scripts just keep chartjs and datalabels plugin in your blade files then test it. There may be some compatibility issues. |
Check for the anchor (alignment) and the colors if there is not any error in console. |
Any error in your browser`s console? |
no, there is no error in my console.. |
Any way to make it work on the latest version? ChartJs 3.5 and plugin 2.0? |
Hello guys, im already success to create pie chart, this is the result
but i want add label inside chart like this
can we do thing like this in chart js?thanks
The text was updated successfully, but these errors were encountered: