Fix issue #5 by ensuring barHeightRatio not result of divide by zero
Merge pull request #9 from xjk/zerobugfix

Fix #5 by ensuring barHeightRatio not result of divide by zero