[visualization-api] Re: Timeline and JSON data doesn't work

2017-06-21 Thread Carlos Rolando Jordán Ramos
Muchas gracias por la ayuda !!! -- 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 google-visualization-api+unsubscr...@googlegroups.com. To post to th

[visualization-api] Re: Timeline and JSON data doesn't work

2017-06-21 Thread Carlos Rolando Jordán Ramos
Muchas gracias por la ayuda !!! El domingo, 29 de enero de 2017, 5:22:23 (UTC-3), franck danard escribió: > > Found > > Champagne wifesparty... > > dataType:"json", > success: function (json) { > > console.debug(json); > *var result

[visualization-api] Re: Timeline and JSON data doesn't work

2017-01-29 Thread franck danard
Found Champagne wifesparty... dataType:"json", success: function (json) { console.debug(json); *var result = json.message;* var container = document.getElementById('timeline'); var chart = new google.visuali

Re: [visualization-api] Re: Timeline and JSON data doesn't work

2017-01-28 Thread Franck Danard
With JSON.parse, i've this. JSON.parse: unexpected character at line 1 column 2 of the JSON data Le 29/01/2017 à 07:08, franck danard a écrit : Hi Daniel. I've thought at this way indeed. I've already used JSON.parse(json); but unfortunately it doesn't work. I don't understand what's wrong her

Re: [visualization-api] Re: Timeline and JSON data doesn't work

2017-01-28 Thread franck danard
Hi Daniel. I've thought at this way indeed. I've already used JSON.parse(json); but unfortunately it doesn't work. I don't understand what's wrong here. One side, the content of json is good. (copy past) On the other side, the same variable with same content doesn't works. It's crazy. */Franck

Re: [visualization-api] Re: Timeline and JSON data doesn't work

2017-01-28 Thread 'Daniel LaLiberte' via Google Visualization API
There is nothing special about the name of the variable. The issue is what's in the variable. JSON format is actually a string that contains a structure. It looks like you have a string as shown in your message output, so then you will have to convert the string to a JavaScript object by parsing

Re: [visualization-api] Re: Timeline and JSON data doesn't work

2017-01-28 Thread franck danard
Hi Daniel. It doesn't work but almost. It's better, but something is weird. Now json request is formated correctly. {"cols":[{"label":"Room","type":"string"},{"label":"Name","type":"string"},{"label":"Start","type":"date"},{"label":"End","type":"date"}],"rows":[{"c":[{"v":"Room 200"},{"v":"Da

Re: [visualization-api] Re: Timeline and JSON data doesn't work

2017-01-28 Thread 'Daniel LaLiberte' via Google Visualization API
And here is an example using your json data as you copied, but with "DATE"s changed to "Date"s: https://jsfiddle.net/dlaliberte/k97L511u/1/ On Sat, Jan 28, 2017 at 1:07 PM, Daniel LaLiberte wrote: > You appear to still be using "DATE" instead of "Date". That will make a > difference. > > The e

Re: [visualization-api] Re: Timeline and JSON data doesn't work

2017-01-28 Thread 'Daniel LaLiberte' via Google Visualization API
You appear to still be using "DATE" instead of "Date". That will make a difference. The error message about 3 or 4 data columns is coming from the Timeline chart. It is possible this is misleading or even wrong, but I can't tell from what you copied. There are similar cases that work, so someth

[visualization-api] Re: Timeline and JSON data doesn't work

2017-01-28 Thread franck danard
Hmmm The code looks like this now: .../... success: function (json) { console.debug(json); var container = document.getElementById('timeline'); var chart = new google.visualization.Timeline(container); var dataTable = new google.visuali

[visualization-api] Re: Timeline and JSON data doesn't work

2017-01-28 Thread franck danard
Hi Daniel and all. It's better now, i've not the same error, but another one. My objet is formated like this now: {"cols": [{"label":"Room","type":"string"},{"label":"Name","type":"string"},{"label": "Start","type":"date"},{"label":"End","type":"date"}], "rows": [{"c":[{"v":"Room 200"},{"v":"Dan