fixed histogram with simple calculations for drawing graphs