Chartjs-CHART.JS scriptable backgroupColor attribute

0👍

The solution proposed by @uminder can be one solution, but this requires that all data mist be preprocessed and an array of colors filled before the creation of the graph.

With this solution https://github.com/chartjs/Chart.js/blob/55dd7ded0e7c6133c615c28aa3d46ab97ea08a82/test/fixtures/controller.bar/backgroundColor/scriptable.js#L10 no preprocessing is needed and the color is selected "on-the-fly".

I was looking for this type of solution I’ve just found in the test suite of chartjs.

Leave a comment