convert data to google graph json format.