<!-- copyright (c) 2009 Google inc. You are free to copy and use this sample. License can be found here: http://code.google.com/apis/ajaxsearch/faq/#license -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" / > <title>Google Visualization API Sample</title> <script type="text/javascript" src="http://www.google.com/jsapi"></ script> <script type="text/javascript"> google.load('visualization', '1', {packages: ['motionchart']}); function drawVisualization() { var data = new google.visualization.DataTable(); data.addRows(1); 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'); var motionchart = new google.visualization.MotionChart( document.getElementById('visualization')); motionchart.draw(data, {'width': 800, 'height': 400}); } google.setOnLoadCallback(drawVisualization); </script> </head> <body style="font-family: Arial;border: 0 none;"> <div id="visualization" style="width: 800px; height: 400px;"></div> </body> </html> not displaying scales On Aug 1, 11:45 am, ChartMan <[email protected]> wrote: > It is hard to follow the problem you are describing. > Can you create an example (maybe in the playground) and send it to this > thread. > > Thanks > ChartMan > > > > On Wed, Jul 28, 2010 at 8:32 PM, ugesh gali <[email protected]> wrote: > > data.addRows(1); > > > when i add data rows as one both x-axis scale and y- axis scale > > disappears.I kept a filter above the motion chart, so that it passes > > single value to motion chart.I checked in google playground passing > > data.addRows(1), there also the scale is not displaying .Can any one > > have solution for this. > > > -- > > 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]<google-visualization- > > api%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-visualization-api?hl=en. -- 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.
