nagix / chartjs-plugin-colorschemes

Predefined color schemes for Chart.js
MIT License
263 stars 58 forks source link

Add a function to extend scheme's color array #10

Closed JohnArcher closed 5 years ago

JohnArcher commented 5 years ago

You can add a new option called custom which should be a function that receives a clone of the configured scheme and has to return an array of colors. If no or an empty array is returned the original scheme is used.

nagix commented 5 years ago

@JohnArcher Thanks for your contribution!

JohnArcher commented 5 years ago

@nagix Thanks for your professional help and accepting this contribution. It was a pleasure!