Using CSS for Chart.js colors

This is not an issue as such, but it might be useful to someone else out there…

I’ve developed a simple library that uses Sass to create default CSS color formats for Chart.js and a javascript/jQuery function that will assign those colors to the data object.

This removes colors from being baked into the javascript and puts them back in the CSS for designers to manage.

Please feel free to use it: https://github.com/mcldev/ChartJS-Sass/

Author: Fantashit

2 thoughts on “Using CSS for Chart.js colors

Comments are closed.