I'm using the javascript API for Motion Chart and trying to get a
simple chart to show 2 Method bubbles ('Commodity-X' and 'Commodity-
Y') over time for 2 different Funding Sources A and B ... when I run
this, I get one bubble for 'Commodity-Y' only. Am I doing something
wrong?  Here's how I load the DataTable object:

         var data = new google.visualization.DataTable();
         data.addRows(8);
         //---------------------------------------------------------------------
         data.addColumn('string', 'Funding Source');
         data.addColumn('number', 'Year');
         data.addColumn('number', 'Value');
         data.addColumn('string', 'Method');
         //
--------------------------------------------------------------------
         // setValue(row,col,value)
         //
--------------------------------------------------------------------
         data.setValue(0, 0, 'Fund Source A');
         data.setValue(0, 1, 2004);
         data.setValue(0, 2, 77);
         data.setValue(0, 3, 'Commodity-X');
         //
--------------------------------------------------------------------
         data.setValue(1, 0, 'Fund Source A');
         data.setValue(1, 1, 2004);
         data.setValue(1, 2, 99);
         data.setValue(1, 3, 'Commodity-Y');
         //
--------------------------------------------------------------------
         data.setValue(2, 0, 'Fund Source B');
         data.setValue(2, 1, 2004);
         data.setValue(2, 2, 11);
         data.setValue(2, 3, 'Commodity-X');
         //---------------------------------------------------------------------
         data.setValue(3, 0, 'Fund Source B');
         data.setValue(3, 1, 2004);
         data.setValue(3, 2, 22);
         data.setValue(3, 3, 'Commodity-Y');
         //
--------------------------------------------------------------------
         data.setValue(4, 0, 'Fund Source A');
         data.setValue(4, 1, 2005);
         data.setValue(4, 2, 66);
         data.setValue(4, 3, 'Commodity-X');
         //
--------------------------------------------------------------------
         data.setValue(5, 0, 'Fund Source A');
         data.setValue(5, 1, 2005);
         data.setValue(5, 2, 33);
         data.setValue(5, 3, 'Commodity-Y');
         //
--------------------------------------------------------------------
         data.setValue(6, 0, 'Fund Source B');
         data.setValue(6, 1, 2005);
         data.setValue(6, 2, 77);
         data.setValue(6, 3, 'Commodity-X');
         //---------------------------------------------------------------------
         data.setValue(7, 0, 'Fund Source B');
         data.setValue(7, 1, 2005);
         data.setValue(7, 2, 88);
         data.setValue(7, 3, 'Commodity-Y');
         //
--------------------------------------------------------------------



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