Fixes edge case of  1 item to chart

When supplying values only one object to chart x=“NaN” error is thrown.
This corrects this edge case.