It may help if you posted a snippet of the actual JSON data you are trying 
to parse.

On Saturday, October 28, 2017 at 2:38:29 AM UTC-6, njhelloworld wrote:
>
> I wanted to use my jsonData as source to my arraytoDataTable().But it is 
> not working.I would like to ask how can I use this method right:
>         
>   var jsonData = $.ajax({
>                 url: "sampleseptember.php",
>                 dataType: "json",
>                 async: false
>             }).responseText;
>
>           var obj = jQuery.parseJSON();
>           var dataseptember = 
> google.visualization.arrayToDataTable(jsonData);
>           dataseptember.addColumn('date', 'time_stamp');
>           dataseptember.addColumn('number', 'ph');
>           dataseptember.addColumn('number', 'moist');    
>           $.each(results, function (i, row) {        
>           data.addRow([
>          new Date(row.time_stamp),
>           parseFloat(row.ph),
>           parseFloat(row.moist)
>             ]);
>           });
>

-- 
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/3e7eefc3-9e35-45ce-ab9f-c2696027236c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to