valor-software / ng2-charts

Beautiful charts for Angular based on Chart.js
http://valor-software.github.io/ng2-charts/
MIT License
2.34k stars 573 forks source link

Feature: CSS class as bindable to color input #1149

Open exitlol opened 4 years ago

exitlol commented 4 years ago

Reproduction of the problem

ng2-charts is a port & modification of Chart.js component for Angular 2. Sometimes the issue is related with Chart.js instead of ng2-charts. To confirm, if the issue shows in a pure Chart.js project, it is a issue of Chart.js. Pure Chart.js starting template: https://jsfiddle.net/Hongbo_Miao/mvct2uwo/3/

If the issue does not show in a pure Chart.js project, and shows in a ng2-charts project, please try to provide a minimal demo of the problem. ng2-charts starting template: http://plnkr.co/edit/Ka4NXG3pZ1mXnaN95HX5?p=preview

It's not an issue more like feature request.

It would be good if we were able to bind bootstrap or other css classes to colors. Or Am i just dumb enough to not get it done?

maranmaran commented 2 years ago

+1, I'd love to use TailwindCSS on it