>
> loop through your JSON object and construct the string for each row by
> concatenating the variables together with the html and echo it so it will
> be treated as html. Based on the google charts table example this is how i
> did it in php:
>
> *(this is a pointer not a working example)*
>
// (html code up until addRows...
data.addColumn('number', 'Column Name');
data.addRows([ *<? // opening php - no longer in html*
$posts = json_decode($output);
foreach($posts->data as $post) {
// populate the variables - code omitted
echo "['$message', {v: '$created_time', f: '$formatted_time'}, $shares,
$reactions, $comments, $likes],";
// closing php - back to html ?> ]);
var table = new google.visualization.Table(document.getElementById(
'table_div'));
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/d2126549-afda-4d2d-ba32-00d48c032ed7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.