fixed chart scaling (overshooting the chart)