mdewilde / chart

Java library for use with Chart.js javascript library
Apache License 2.0
112 stars 43 forks source link

Add ability to set options for most plugins #20

Closed davidklebanoff closed 4 years ago

davidklebanoff commented 5 years ago

This simple change will allow you to set configuration options via options.plugins.*. Simply pass in a POJO with the desired options into setPlugins().

Not all plugins nest their options under plugins, but many of the popular ones do such as:

Once this feature is added, I'll publish my repos that extends this project to provide support for the Datalabels plugin, utilizing the new setPlugins() hook.

This closes issue #18.

davidklebanoff commented 5 years ago

@mdewilde Any thoughts?

kwilson05 commented 4 years ago

I added the same thing for my company's repo. I guess this project isn't maintained anymore @davidklebanoff

mdewilde commented 4 years ago

Thank you @davidklebanoff and thank you @kwilson05 for waking me up ;-)