fix data for use in flot
correct data to store as numbers for flot