I am still not sure I understand, but I will try.
First - you must have an html page. It should contain javascript code to
load and activate the chart.
In this page you should also create a data table with data.
This can be done in one of two ways.
1. Like in the example, creating the javascript code that populate the table
with data.
2. Implementing a data source (with a server, potentially in java), and use
the query mechanism to request the data (look in docs).

I now suppose that the local file issue you refer to is with the motion
chart itself.
In this case, this is a known Flash issue, that can be solved as described
at
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager.html#117164

Hope this helps

Vizguy



On Wed, Dec 10, 2008 at 6:08 PM, VirtualMachinery
<[EMAIL PROTECTED]>wrote:

>
> Sorry about this - I'm just trying to feel my way round this at the
> moment.
>
> I want to use the Motion Chart object to view some data created in
> another application. I took the example given on the website and
> popped it into a web page on my local machine. It failed with the
> error I described below. When I looked at the API description I noted
> the line about putting it on a server. So I stuck it up on my website
> and it all worked fine. I had tried the Pie chart example and it
> worked on my local machine so that was what prompted the initial
> question about why there was a need to put the Motion Chart sample
> page on the website to get it to work.
>
> I have complete control over the data that the application creates so
> I can output it in any form - but it seems as though, because the
> interface provided is JavaScript, I need to create an HTML file (maybe
> I don't  - I'm a Java programmer but I have very little knowledge of
> JavaScript ). To do that I'm happy to create a Data Table 'by
> declaration' and put that into the HTML file. If I have to go the HTML
> route I'd like to create the HTML file on the local file system with
> my Java application then open up a browser view on the HTML file. If
> there is another way to achieve this then I'd be interested in that.
> Can I, for example, create a DataTable within the JavaScript in the
> HTML by calling some of my own Java code? - this would presume that I
> would have access to the DataTable class (in a jar perhaps?)
>
> Thanks
> ken
>
> On Dec 10, 2:06 pm, VizGuy <[EMAIL PROTECTED]> wrote:
> > I guess I am still don't really understand what you are trying to
> do...The
> > motion chart API is the same API used for all other visualizations.
> > It is javascript based, and the data should be in a DataTable object
> > available from the visualization library.
> > How do you want to access the file to read the data? How do you transform
> it
> > into a data table?
> >
> > VizGuy
> >
> > On Wed, Dec 10, 2008 at 3:45 PM, VirtualMachinery
> > <[EMAIL PROTECTED]>wrote:
> >
> >
> >
> >
> >
> > > VizGuy
> >
> > > Thanks for the quick reply. I guess I didn't phrase my question very
> > > well. What I really want to do is put some data into a form that the
> > > Motion chart visualization software can display locally without having
> > > to put it on any class of a Server i.e. just read it from the file
> > > system. I don't have security concerns about it - just convenience for
> > > the end user. When I try to access my html file via a browser on my
> > > local filesystem I get a security sandbox violation - is that a
> > > symptom of why the file has to be installed on a server? My
> > > understanding is that this was originally the GapMinder software and I
> > > believe that that library could be run entirely locally - is that
> > > correct and if so are Google likely to release the software in that
> > > form?
> >
> > > Thanks Again
> > > Ken Hall
> > > Virtual Machinery
> > >www.virtualmachinery.com
> >
> > > On Dec 10, 12:22 pm, VizGuy <[EMAIL PROTECTED]> wrote:
> > > > The page doesn't have to be on a publicly available server, and so is
> the
> > > > data source.It can be all behind any firewall, as long as you have
> access
> > > to
> > > > load the library.
> > > > Please note that no data is sent to Google (or to any other place)
> with
> > > this
> > > > chart.
> > > > The only access is to read the chart Flash code. Your data remains on
> the
> > > > browser only.
> >
> > > > VizGuy
> >
> > > > On Wed, Dec 10, 2008 at 1:18 PM, VirtualMachinery
> > > > <[EMAIL PROTECTED]>wrote:
> >
> > > > > Very impressed with the Motion Chart visualization and have started
> > > > > playing around with it.
> >
> > > > > There is one drawback for me for the purposes for which I would
> like
> > > > > to use it - the page always has to be posted on a publicly
> available
> > > > > server to be displayed. I have  a number of questions that arise
> from
> > > > > this -
> >
> > > > > 1. Will this always be the case - i.e. at some time in the future
> > > > > there will be a version available that will let me view data
> locally
> > > > > as I can do with (say) pie-charts?
> > > > > 2. Is there any sneaky way round this? for example is there some
> other
> > > > > way of using the API to display data locally e.g. using Java?
> > > > > 3. Out of curiosity what is the technical reason for having to use
> a
> > > > > public server?
> >
> > > > > Thanks
> > > > > Ken Hall
> > > > > Virtual Machinery
> > > > >www.virtualmachinery.com-Hide quoted text -
> >
> > > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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