Hi Wai Lee,

Another option you can consider besides writing a data-source is to import
your CSV files to Google spreadsheet. Google spreadsheet is a Google
Visualization data-source.

Cheers,
VizWiz

On Wed, Jul 8, 2009 at 8:48 PM, ramen <[email protected]> wrote:

>
> Hi.  I want to use MotionChart to display data contained in CSV
> files.  If I have these files locally on my server, is there any way
> to have javascript access them (read the files into strings), so that
> I can parse them and feed them into my google.visualization.DataTable
> () object using the api?
>
> Currently, I have the motionChart visualization running in the
> following way:  I have just pasted the text files into my source as
> multi-line string literals (replacing carriage returns with "\n"), and
> I wrote some code to parse these and insert them into the
> google.visualization.DataTable() object.  I want to allow this code to
> access CSV data that is Not located within the source.
>
> I am aware that there is a package available which allows me to build
> a Google data source which parses CSV data and sends it to my viz
> app.  However, in order to set this up I need to make a servelet and
> do all kinds of crap, and I was just wondering if there was an easier
> way (which allows me to not do all this servlet stuff).
>
> Thanks a lot!
>
> -Wai Lee
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to