]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
When all datasets are hidden, the linear scale defaults to a range of 0 - 1.
authoretimberg <evert.timberg@gmail.com>
Sun, 25 Jun 2017 13:06:22 +0000 (09:06 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sun, 25 Jun 2017 17:32:08 +0000 (13:32 -0400)
commitccb2898539af6f79108ce22e8b276a1498c3bee2
tree8ceb7786c541e46c9958e14bcb83911b47a7710a
parent548edc65ea96ac51ab17bde2942fd6f319f63e8c
When all datasets are hidden, the linear scale defaults to a range of 0 - 1.
If `ticks.min` was set this would not set the range correctly.
Added a test to cover this case as well
src/scales/scale.linear.js
src/scales/scale.linearbase.js
test/specs/scale.linear.tests.js