carlcraig / tc-angular-chartjs

AngularJS directives for Chart.js
http://carlcraig.github.io/tc-angular-chartjs/
Other
233 stars 83 forks source link

Multi-coloured Bars? #51

Closed cjwebdev closed 8 years ago

cjwebdev commented 8 years ago

Anyway to achieve multi-coloured bars (within each dataset)? I see there are forks of ChartJS that do this. EG:

fillColor : ["green","red","yellow","blue"], strokeColor : ["green","red","yellow","blue"]

...But they don't seem to play well with this Angular directive.

Any guidance would be really appreciated.

carlcraig commented 8 years ago

I think this can now be achieved as we are using Chart.js 2.X

Please look at the updated data structures for Chart.js bar charts:

http://www.chartjs.org/docs/#bar-chart-data-structure

Also, make sure you update to 2.1.X version of this library to work with Chart.js 2.