]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Fix adding and removing datasets in bar samples (#5663)
authorTom Pullen <tpullen21@gmail.com>
Wed, 8 Aug 2018 16:52:56 +0000 (17:52 +0100)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Wed, 8 Aug 2018 16:52:56 +0000 (18:52 +0200)
commitab41173d9b2abb9c543c82c360abb51c3efcd778
treeaa809ff60e65a80d724e6076f1132621189cb6c2
parenta9c4e377a7f529a82fc1dbcef32ab23d40c9b158
Fix adding and removing datasets in bar samples (#5663)

Account for zero indexing of arrays when creating a name for an added dataset and remove the last dataset in the array when removing a dataset rather than removing the first.
samples/charts/bar/horizontal.html
samples/charts/bar/vertical.html