reformat data into google viz array format