]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Fix shorthand `legend: false` and `title: false`
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 4 Mar 2017 11:21:51 +0000 (12:21 +0100)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 4 Mar 2017 14:13:42 +0000 (09:13 -0500)
commitb4dfa38731973b28e76fd15f57d449ad2ee9b94f
treec156ebac42a25b2e95a592028ca0def630818a8d
parent523489932349ac5645926b0b7b9209885bda2050
Fix shorthand `legend: false` and `title: false`

Prevent attempt to remove the legend or title layout items if they haven't been created but also check if the item to remove is registered with the layout manager to avoid removing the wrong box `splice(-1, 1)`. Add ids to the legend and title plugins to allow to fully disable them (`options: {plugins: {legend: false, title: false}}`).
src/core/core.layoutService.js
src/core/core.legend.js
src/core/core.title.js