]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Added helper to allow a CanvasPattern for hover. Updates chartjs/Chart.js#1323
authorTom Loudon <tomloudon@gmail.com>
Sat, 7 May 2016 21:24:00 +0000 (22:24 +0100)
committerTom Loudon <tomloudon@gmail.com>
Sat, 7 May 2016 21:24:00 +0000 (22:24 +0100)
commit5866f73562519906567add54f89cf5c8a9b1fe14
tree09446701e073675dcd2757e298204521d765d518
parent7eb47313e4666156892b7d155d4af3e420f06cca
Added helper to allow a CanvasPattern for hover. Updates chartjs/Chart.js#1323

When a hover background isn't specified in the config for a chart a modified version of the default color is used. If the background color is a CanvasPattern object an error is triggered.

With this change the default background color will no longer be modified if it is a CanvasPattern.
src/controllers/controller.doughnut.js
src/core/core.helpers.js
test/core.helpers.tests.js