Have the correct data structure on the front end, except that x values needs to be a string