Google Visualization API: Format mysql result with cross tabulation
问题 i'm new to google apps script and i'm trying to visualize data using the Google Visualization API. I have been able to display a table from the good examples given on mixing php and html. But the database does not seem to have the right format for the column charts. The table has the colums 'day' 'user' 'task' 'hours' and the data is then being pushed into the rows underneath by a while loop: $table1 = array(); $table1['cols'] = array( // Labels for your chart, these represent the column