Chart shows "invalid entry" error when plotting data from a dictionary