]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Add textAlign for legend labels (#8665)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Thu, 18 Mar 2021 11:37:03 +0000 (13:37 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Mar 2021 11:37:03 +0000 (07:37 -0400)
commit97136d0cbfa245752adf0b3f6317f6333b3e2ad7
tree1b0ad313b0bbae6813a574001659010ea9dcb492
parentf10b510890731f202e9b09b05120b972879c5e4c
Add textAlign for legend labels (#8665)

* Add textAlign for legend labels

* Update tests
18 files changed:
docs/docs/configuration/legend.md
src/helpers/helpers.extras.js
src/plugins/plugin.legend.js
test/fixtures/plugin.legend/label-textAlign/center.js [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/center.png [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/left.js [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/left.png [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/right.js [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/right.png [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/rtl-center.js [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/rtl-center.png [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/rtl-left.js [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/rtl-left.png [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/rtl-right.js [new file with mode: 0644]
test/fixtures/plugin.legend/label-textAlign/rtl-right.png [new file with mode: 0644]
test/specs/global.defaults.tests.js
test/specs/plugin.legend.tests.js
types/index.esm.d.ts