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
This doesn't work #4
Comments
I must be doing something wrong.. not importing something correctly etc. Are there any examples of how to use this in es6 with react? |
🤔 answered my own question: If I add this at the top of my file, it works:
|
Good to know that you have already solved the issue. For React, just |
do you know by any chance how to import colorschemes for an angular2+ project? Thank you very much in advance |
|
thank you for your answer - i tried this ofc but no luck. Iam starting to think - is this maybe for linecharts only? ;) |
yes same here.. Any idea ? |
@osterland @efriandika Regarding Angular, if you are using this plugin with ng2-charts, it does not work because a color scheme is applied only when no colors are defined in a chart config but ng2-charts has default colors. In order to workaround this, I have added the |
thanks @nagix |
Had the same issue when using with Vue.js. @blockjon 's solution works. But I do not understand why the instruction |
I love the idea behind this project... unfortunately I just tried it and it doesn't work. I followed the directions exactly as described and all of my metrics are all grey colored. There are also no errors.
chart.js version 2.7.3
chartjs-plugin-colorschemes version 0.1.0
installed with npm
using react
The text was updated successfully, but these errors were encountered: