]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Change the scale fitting code from 2 pass fit to a 2.5 pass fit. The fit function... 1172/head
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 6 Jun 2015 13:27:03 +0000 (09:27 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Sat, 6 Jun 2015 13:27:03 +0000 (09:27 -0400)
commit4a3a9f1a214d2729f9ff409c68ace6224281ed73
treef06bcb7c33f8f2c23bf66c68768be6f6dc660e22
parenta89ede0d72d91f483c0b1f4d119fd8019115471d
Change the scale fitting code from 2 pass fit to a 2.5 pass fit. The fit function is now passed a margin object that contains the margins on the left, top, right, and bottom of the scale. This is useful to know if you can draw outside of the width. This is used by the dataset scale so that extra padding is only added for long labels if absolutely required. If there is unused space underneath the vertical axes, that space is used first.
src/Chart.Scale.js