I meant to say addrows(3) which I corrected below. Still no chart. I think I see "initializing" for less than 1/10 sec, then nothing.
On Apr 1, 2:50 pm, SteveG <[email protected]> wrote: > Hi, > > I have been creating motion charts for about a year now. > Now I cannot see any of the charts. Even using an htm file where I > could see everything last month, now I cannot see it. > I played around with some ie options and revisited the using > visualization documentation. > If anyone could offer help, I would greatly appreciate it! > > Perhaps if you copy/paste this code in your ie and tell me if it > displays. > > Here is the code. > <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(3); > data.addColumn('string', 'QUERY1'); > data.addColumn('date', 'Date'); > data.addColumn('number', 'day'); > data.addColumn('number', 'seconds'); > data.setValue(0, 0, 'query1'); > data.setValue(0, 1, new Date (2010,0,01)); > data.setValue(0, 2, 0); > data.setValue(0, 3, 1.5); > data.setValue(1, 0, 'query1'); > data.setValue(1, 1, new Date (2010,0,02)); > data.setValue(1, 2, 1); > data.setValue(1, 3, 2.1); > data.setValue(2, 0, 'query1'); > data.setValue(2, 1, new Date (2010,0,03)); > data.setValue(2, 2, 2); > data.setValue(2, 3, 1.7); > var chart = new > google.visualization.MotionChart(document.getElementById('chart_div1')); > var options = {}; > options['state'] = > '{"dimensions":{"iconDimensions": > ["dim0"]},"iconType":"BUBBLE","xZoomedIn":false,"iconKeySettings": > [{"key":{"dim0":"query1"},"trailStart":"2009-02-01"}],"duration": > {"timeUnit":"D","multiplier": > 1},"xAxisOption":"2","colorOption":"_UNICOLOR","yAxisOption":"3","orderedByX":false,"showTrails":true,"xLambda": > 1,"orderedByY":false,"sizeOption":"_UNISIZE","nonSelectedAlpha": > 0.4,"stateVersion":3,"yZoomedIn":false,"time":"2009-02-01","yLambda": > 1,"playDuration":2};'; > options['width'] = 460; > options['height'] = 250; > chart.draw(data, options);} > > </script> > </head> > <body> > <div id=chart_div1 style=width: 460px; height: 250px;></div> > </body> > </html> -- 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.
