[visualization-api] Re: Timeline chart from JSON file

2014-08-03 Thread Andrew Gallant
Here's some sample code using PHP's PDO object for database access: try { $db = new PDO('mysql:dbname=myDataBase', 'username', 'password'); } catch (PDOException $e) { die ($e-getMessage()); } $query = $db-prepare('SELECT foo, bar, cad from myTable'); $query-execute(); $results =

[visualization-api] Re: Timeline chart from JSON file

2014-08-02 Thread Ákos Kovács
Where can I find please this specific format? I have not found any daily timeline tutorial, only Google's official. 2014. augusztus 2., szombat 2:26:00 UTC+2 időpontban Andrew Gallant a következőt írta: The DataTable constructor requires a very specific JSON format; if you aren't using

[visualization-api] Re: Timeline chart from JSON file

2014-08-02 Thread Andrew Gallant
This post https://groups.google.com/d/msg/google-visualization-api/2LNtd5Fe8L8/QXJHhQBvBHEJ contains a description of the JSON string. On Saturday, August 2, 2014 2:24:29 AM UTC-4, Ákos Kovács wrote: Where can I find please this specific format? I have not found any daily timeline

[visualization-api] Re: Timeline chart from JSON file

2014-08-02 Thread Ákos Kovács
Yes, I see, but how can I implement it to PHP? 2014. augusztus 2., szombat 17:14:25 UTC+2 időpontban Andrew Gallant a következőt írta: This post https://groups.google.com/d/msg/google-visualization-api/2LNtd5Fe8L8/QXJHhQBvBHEJ contains a description of the JSON string. On Saturday,

[visualization-api] Re: Timeline chart from JSON file

2014-08-01 Thread Andrew Gallant
The DataTable constructor requires a very specific JSON format; if you aren't using that format, the constructor will throw an error and your chart will not draw. I can help you get your chart working if you share your code. I also suggest that you search this group for examples of creating