[visualization-api] Re: Charts and CSV

2012-11-28 Thread asgallant
I've never used the java applet, so I can't help you with that. The easier thing to do is to load the CSV via an AJAX call, and then parse the contents into a DataTable. There's a thread herewith an example of

[visualization-api] Re: Charts and CSV

2012-11-28 Thread Marco Alves
No, that link corresponds to a csv file... How it is used that java applet that transforms the csv file into the visualization API? Quarta-feira, 28 de Novembro de 2012 21:51:15 UTC, asgallant escreveu: > Ok, I suspect that you can't use quite the same method as the previous > user without so

[visualization-api] Re: Charts and CSV

2012-11-28 Thread asgallant
Ok, I suspect that you can't use quite the same method as the previous user without some modifications to your server-side code. The query url "csv?url=http://pedit.no-ip.org:81/logs/PR/teste.csv" is looking for a local resource called "csv" and pa

[visualization-api] Re: Charts and CSV

2012-11-28 Thread Marco Alves
Yes, the code is this one: FT Support Dashboard http://www.google.com/jsapi";> google.load('visualization', '1', {'packages': ['gauge','table','piechart','orgchart','barchart']}); // Set a callback to run when

[visualization-api] Re: Charts and CSV

2012-11-28 Thread asgallant
Can you post the code you are using? I'll take a look. On Wednesday, November 28, 2012 6:47:44 AM UTC-5, Marco Alves wrote: > > Hi all, > > I al having some problems with the use of the sample code of this topic. > When I try to acess the file, the following error appears: > > > SCRIPT1014:

[visualization-api] Re: Charts and CSV

2012-11-28 Thread Marco Alves
Hi all, I al having some problems with the use of the sample code of this topic. When I try to acess the file, the following error appears: SCRIPT1014: Invalid character *teste.csv&tqx=reqId%3A0, line 1 character 1* Can somenone explain what is the re

[visualization-api] Re: Charts and CSV

2012-11-27 Thread Marco Alves
Sexta-feira, 2 de Março de 2012 16:07:10 UTC, R22MPM escreveu: > > Hi All, > I am a newbie to Coogle charts and have been running through the following > tutorial regarding connecting CSV files into charts. > > > http://code.google.com/apis/chart/interactive/docs/dev/dsl_get_started.html#webapp >

[visualization-api] Re: Charts and CSV

2012-03-09 Thread asgallant
Glad to hear you got it working. You can use the parseInt() (or parseFloat(), if you ever need floating point numbers) function to make your conversion function a bit cleaner: function convertonumber(data, rowNum) { return parseInt(data.getValue(rowNum, 1)); } On Friday, March 9, 2012 8:25

[visualization-api] Re: Charts and CSV

2012-03-09 Thread R22MPM
Thanks for your help, i have now sorted it and the charts are displaying correctly for reference this is what i used var data = response.getDataTable(); var view = new google.visualization.DataView(data); view.setColumns([0, {calc:converttonumber, type:'number', label: "TEST"}

[visualization-api] Re: Charts and CSV

2012-03-06 Thread R22MPM
Ill check in Google Chrome this evening, i definately know there is data in the datatable because i can populate a table with the data. i am also navigate to the csv which returns the data in JSON format Thanks Matt On Tuesday, March 6, 2012 4:39:00 PM UTC, asgallant wrote: > > Hmm... > > You

[visualization-api] Re: Charts and CSV

2012-03-06 Thread asgallant
Hmm... You can use Chrome's developer console to get information on any errors that may be occurring, and you can view the output from console.log() there (use on your DataTable object to see what it contains). If there is no data in the DataTable or the handleCsvLicenseCount function is nev

[visualization-api] Re: Charts and CSV

2012-03-06 Thread R22MPM
Thanks for that, i have tried but unfortunately the gauge is not showing, neither is the data in a table? is there any debugging i can put into this to step through what the code is doing? http://www.google.com/jsapi";> google.load('visualization', '1', {'packages': ['gauge','tabl

[visualization-api] Re: Charts and CSV

2012-03-06 Thread asgallant
You're google.load call is formatted incorrectly, as I mentioned before, it should be: google.load('visualization', '1', {'packages': ['gauge','table','piechart', 'orgchart','barchart']}); On Monday, March 5, 2012 4:10:22 PM UTC-5, R22MPM wrote: > > Hmm i have just pasted that into my code with

[visualization-api] Re: Charts and CSV

2012-03-05 Thread R22MPM
Hmm i have just pasted that into my code with no joy, no chart is displayed. this is my complete code, can you spot anything wrong? FT Support Dashboard http://www.google.com/jsapi";> google.load('visualization', '1', {'packages':['gauge,tab

[visualization-api] Re: Charts and CSV

2012-03-05 Thread R22MPM
Fantastic, thanks for that would you be able to give me an example of how i would implement that into this code? http://www.google.com/jsapi";> google.load('visualization', '1', {'packages':['gauge,table,piechart,orgchart,barchart']}); // Set a callback to run when the API is

[visualization-api] Re: Charts and CSV

2012-03-05 Thread asgallant
That change would need to be made in the java source code for the server applet. I think JAR files are compressed files, you should be able to open them with something like 7-zip (winzip or winrar should be able to do it too), and extract the source code within. If you want to do it in javascr

[visualization-api] Re: Charts and CSV

2012-03-05 Thread R22MPM
Would i need to do this in the Java Class file rather than in the JavaScript on the page? If so it should be fairly easy to change but how do i edit the JAR or Class file? opening in something like Programmers Notepad give a load of rubbish text Thanks On Friday, March 2, 2012 4:07:10 PM UTC