]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Only rotate label while rotation is < maxRotation
authorBen Woodford <ben@woodfordnet.co.uk>
Thu, 24 Sep 2015 14:54:10 +0000 (15:54 +0100)
committerBen Woodford <ben@woodfordnet.co.uk>
Thu, 24 Sep 2015 14:54:10 +0000 (15:54 +0100)
commitd7ab51f29b933659ca2058110e35219d3d002068
treeabca123e076a7360f10d312457149a96e9818c7a
parent36493e042e05e60f703254a78180caf58617c912
Only rotate label while rotation is < maxRotation

Checking for <= maxRotation results in a labelRotation of 1 if maxRotation is 0, which doesn't make any sense (and also causes the text to be right aligned not centred)
src/scales/scale.category.js