Fixes #39 - infinite loop for small datasets when using Barchart

This commit resolves inifinite loop on https://github.com/nnnick/Chart.js/issues/39, which causes browser to freeze site & finally crash.