pepstock-org / Charba

J2CL and GWT Charts library based on CHART.JS
https://pepstock-org.github.io/Charba-Wiki/docs
Apache License 2.0
62 stars 6 forks source link

Defaults to plugin options #51

Closed stockiNail closed 4 years ago

stockiNail commented 4 years ago

Currently the options plugins use as default the defaults global options plugin, if exists.

The defaults are used into options plugin to return by get methods the value even if inside the options itself the properties are not set.

This way can fit almost all needs but is not consistent at 100% because a plugin can be configured, as all other options, at:

The Global and Chart are already addressed.

The enhancement could be address at least to use the Chart Global options (based on the type of chart).

For datasets , not all plugins are implemented in order to be used at dataset level therefore they could be ignored at the beginning.