Here is the sample program in JavaScript that is available in Google site. Step-1: Save the program in as .html file Step-2: Upload to a webserver Step-3: Open the html file using a brower, it should open the Motion Chart.
Help this help. Surajit <html> <head> <script type="text/javascript" src="http://www.google.com/jsapi"> </script> <script type="text/javascript"> google.load('visualization', '1', {'packages':['motionchart']}); google.setOnLoadCallback(drawChart); function drawChart() { var data = new google.visualization.DataTable(); data.addRows(6); data.addColumn('string', 'Fruit'); data.addColumn('date', 'Date'); data.addColumn('number', 'Sales'); data.addColumn('number', 'Expenses'); data.addColumn('string', 'Location'); data.setValue(0, 0, 'Apples'); data.setValue(0, 1, new Date (1988,0,1)); data.setValue(0, 2, 1000); data.setValue(0, 3, 300); data.setValue(0, 4, 'East'); data.setValue(1, 0, 'Oranges'); data.setValue(1, 1, new Date (1988,0,1)); data.setValue(1, 2, 950); data.setValue(1, 3, 200); data.setValue(1, 4, 'West'); data.setValue(2, 0, 'Bananas'); data.setValue(2, 1, new Date (1988,0,1)); data.setValue(2, 2, 300); data.setValue(2, 3, 250); data.setValue(2, 4, 'West'); data.setValue(3, 0, 'Apples'); data.setValue(3, 1, new Date(1988,1,1)); data.setValue(3, 2, 1200); data.setValue(3, 3, 400); data.setValue(3, 4, "East"); data.setValue(4, 0, 'Oranges'); data.setValue(4, 1, new Date(1988,1,1)); data.setValue(4, 2, 900); data.setValue(4, 3, 150); data.setValue(4, 4, "West"); data.setValue(5, 0, 'Bananas'); data.setValue(5, 1, new Date(1988,1,1)); data.setValue(5, 2, 788); data.setValue(5, 3, 617); data.setValue(5, 4, "West"); var chart = new google.visualization.MotionChart(document.getElementById('chart_div')); chart.draw(data, {width: 600, height:300}); } </script> </head> <body> <div id="chart_div" style="width: 600px; height: 300px;"> </div> </body> </html> On Tue, May 19, 2009 at 10:57 PM, Ti Guy <[email protected]> wrote: > What I mean is are you able to code a Javascript to run Motion Chart with > an XML file instead of the Excel type Google Docs so that it is run from my > website without using the Google Docs file server for the data? > > > ------------------------------ > From: [email protected] > Date: Tue, 19 May 2009 15:56:19 -0400 > Subject: [visualization-api] Re: Looking for Motion Chart programmer > To: [email protected] > > Hello, > > The Motion needs internet connection to get Google Visualization APIs, so > it will not run with locally without internet. > > Thanks, > > Surajit > > On Tue, May 19, 2009 at 10:40 AM, Ti Guy <[email protected]> wrote: > > Hi, > > Are you able to run the Motion chart as a stand-alone XML file so that it > does not run off the Google Docs server? > > Cheers. > > > > Date: Mon, 18 May 2009 11:58:27 -0700 > > Subject: [visualization-api] Re: Looking for Motion Chart programmer > > From: [email protected] > > To: [email protected] > > > > > > > I shall be happy to help you in setting a Motion Chart incase you have > > not able to get the solution yet. > > > > Surajit > > > > > > On May 8, 5:18 pm, TiGuy <[email protected]> wrote: > > > I am looking for someone interesting in setting up a Motion Chart for > > > me. > > > > > > I have all the data ready in an Excel sheet as per the requirements of > > > the app. > > > > > > The trouble is that I am loosing patience with the interface since I > > > am unable to get it to include all my data columns into the drop-down > > > menus and I am unable to setup a specific state upon load. > > > > > > So I want to hire someone to do the following tasks: > > > > > > 1) setup the motion chart from the existing Excel sheet > > > 2) assure that all indicators are available in the drop down menus > > > 3) prepare a javascript / html page that loads the motion chart in a > > > specific state (to be defined) > > > 4) set it up so that the whole thing loads from my website and not the > > > google docs server (I guess it will need to load from xml) > > > > > > Cheers. > > > > > > > > > > ------------------------------ > Internet explorer 8 aide à protéger la vie privée. > Ici.<http://go.microsoft.com/?linkid=9655570> > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
