When domain values are different the code works fine.
But when all the domain values are 0, the bar height becomes 140 which is half the graphHeight instead o