[visualization-api] Re: Charting a CVS File

2021-05-03 Thread Karl Venter
Hi All I am very very new to Google charts and would like some direction as to how to go about it I have a file ( I can make it csv) that my solar system generates every 3 minutes or so with a time and date stamp for each of the different pieces of information I then display the info on a web

[visualization-api] Re: Charting a CVS File

2019-08-08 Thread Garima Shrivastava
Hi all, > Been trying for two days to figure out how to read a CVS Table that > contains Hour clo-1(x-axis) and Temperature col-2(y-axis) and make it > ready to display as a scatter Chart in Google Charts. > > attaching my sample code to read a local (CSV) data file and make it ready > to

Re: [visualization-api] Re: Charting a CVS File

2014-12-04 Thread Ken Burkhalter
Sergey- I can't tell you how much I appreciate your help and patience. This is my first real attempt to do anything more than superficial in JavaScript, so the learning curve is steep but I'm climbing the hill faster than I thought I could (especially with your help). Really surprised by the

Re: [visualization-api] Re: Charting a CVS File

2014-12-04 Thread 'Sergey Grabkovsky' via Google Visualization API
You are defining your handleQueryResponse function twice, once on line 17, and another time one line 43. JavaScript will only ever execute the last defined function (with the same name), so in this case, it will execute the one that does practically nothing. As an aside, in the future, could you

Re: [visualization-api] Re: Charting a CVS File

2014-12-04 Thread Ken Burkhalter
THANK YOU. THANK YOU. THANK YOU! All works now. :-) That must have been the issue plaguing me for some time. As soon as I deleted the redundant function, every thing worked perfectly. I think I should be in pretty darn good shape from here on out, as once something works at least a little

Re: [visualization-api] Re: Charting a CVS File

2014-12-04 Thread 'Sergey Grabkovsky' via Google Visualization API
I'm glad everything works now, Ken! Hopefully charts will be fairly straightforward for you from this point, but if you have any further questions, please don't hesitate to ask. On Thu Dec 04 2014 at 10:42:35 AM Ken Burkhalter kenburkhal...@gmail.com wrote: THANK YOU. THANK YOU. THANK YOU!

[visualization-api] Re: Charting a CVS File

2014-12-03 Thread Ken Burkhalter
Thanks all for the replies. I have no problem charting manually entered data [as you had suggest Jon], my issue is in grabbing data from a file on my web server and charting it. I tried your code suggestions Sergey, but am still coming up with a blank screen. My code is shown below, hopefully

Re: [visualization-api] Re: Charting a CVS File

2014-12-03 Thread 'Jon Orwant' via Google Visualization API
Ken, comments inline. On Wed, Dec 3, 2014 at 9:31 AM, Ken Burkhalter kenburkhal...@gmail.com wrote: Thanks all for the replies. I have no problem charting manually entered data [as you had suggest Jon], my issue is in grabbing data from a file on my web server and charting it. I tried your

[visualization-api] Re: Charting a CVS File

2014-12-03 Thread Ken Burkhalter
Thanks for pointing out the syntax errors. After your extraordinary hint about the Java Console (which I didn't know about) debugging has speeded up considerably!!! :-) I found a few more errors (missing braces, undefined objects) and am now to the point where I am at least getting error

[visualization-api] Re: Charting a CVS File

2014-12-03 Thread Ken Burkhalter
In the event it helps. Here is the complete HTML page... https://lh3.googleusercontent.com/-X_i1Ax5xA4I/VH9u8QDKuoI/Cas/4N4f-WtnL9k/s1600/chart.png -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To unsubscribe from this

[visualization-api] Re: Charting a CVS File

2014-12-03 Thread Ken Burkhalter
The error is thrown at Line 22 On Wednesday, December 3, 2014 3:14:12 PM UTC-5, Ken Burkhalter wrote: In the event it helps. Here is the complete HTML page... https://lh3.googleusercontent.com/-X_i1Ax5xA4I/VH9u8QDKuoI/Cas/4N4f-WtnL9k/s1600/chart.png -- You received this

Re: [visualization-api] Re: Charting a CVS File

2014-12-03 Thread 'Sergey Grabkovsky' via Google Visualization API
The Query is loaded along with the charts, so the code that uses the Query needs to be in a callback as well. You need to structure your code like so: google.load(...); google.setOnLoadCallback(initialize); function handleQueryResponse(response) { if (response.isError()) { ... } var data =

Re: [visualization-api] Re: Charting a CVS File

2014-12-03 Thread Ken Burkhalter
Gad, this is worse than getting teeth pulled [:-)} I made the changes (I think, I've included a view of the current code below) but now I am getting the following error which doesn't seem to jibe with reality ... n.I.js:266 Uncaught Error: CSV files on other domains are not supported.

Re: [visualization-api] Re: Charting a CVS File

2014-12-03 Thread 'Sergey Grabkovsky' via Google Visualization API
You might be accessing your HTML file via the file:// protocol, which would be a different domain than http://. If that's not the problem, then it would be immensely helpful if you could post a screenshot of your browser window (with the address bar and everything) accessing the page with the

Re: [visualization-api] Re: Charting a CVS File

2014-12-03 Thread Ken Burkhalter
Sergey - Is this what you wanted? Assuming you can view the code capture I posted in the previous message, you can see that I am NOT using any file protocols. Everything is nice Kosher HTTP tags. [:-)} On 12/3/2014 4:22 PM, 'Sergey Grabkovsky' via Google Visualization API wrote: You

Re: [visualization-api] Re: Charting a CVS File

2014-12-03 Thread Ken Burkhalter
On 12/3/2014 4:32 PM, Ken Burkhalter wrote: Sergey - Let me do this over again so you are not mislead. The first screenshot, I just sent, was a capture from my desktop computer where I have been debugging, but the actual HTML code page runs on my web serverm which is what the capture below