progressBarWidth now depends on maximum points as well