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