NEGATIVE CHART

I´m trying to do a grade chart with toNumber() values but when it goes to negative fails any advice??