I am also having a same problem. are you saying that we should copy the
below red highlighted code before the function drawVisualization() { in our
webpage. will be thankful for your help
regards
IrfanOn Wed, Nov 2, 2011 at 4:05 AM, harleyhar <[email protected]> wrote: > Never mind... > > * google.load('visualization', '1', {packages: ['motionchart']});* > > On Nov 1, 4:46 pm, harleyhar <[email protected]> wrote: > > Hi, I have the following code that works fine when I paste it in the > > Playground but displays nothing in my webpage. All of my other chart > > types display fine on my own website. > > > > Any idea what could cause this? > > > > function drawVisualization() { > > var data = new google.visualization.DataTable(); > > data.addColumn('string', 'EOR Method'); > > data.addColumn('date', 'Year Start'); > > data.addColumn('number', 'EOR Method'); > > data.addRow(['Chemical AS', {v: new Date(1995,0,1), f: '1995'}, {v: 1, > > f: '1'}]); > > data.addRow(['Chemical ASP', {v: new Date(1994,0,1), f: '1994'}, {v: > > 13, f: '13'}]); > > data.addRow(['Chemical CDG', {v: new Date(1999,0,1), f: '1999'}, {v: > > 1, f: '1'}]); > > data.addRow(['Chemical Micellar Polymer', {v: new Date(1982,0,1), f: > > '1982'}, {v: 1, f: '1'}]); > > data.addRow(['Chemical Polymer ', {v: new Date(1972,0,1), f: '1972'}, > > {v: 52, f: '52'}]); > > data.addRow(['Chemical PS', {v: new Date(2006,0,1), f: '2006'}, {v: 3, > > f: '3'}]); > > data.addRow(['FAWAG', {v: new Date(1992,0,1), f: '1992'}, {v: 2, f: > > '2'}]); > > data.addRow(['Immiscible CO2', {v: new Date(2005,0,1), f: '2005'}, {v: > > 16, f: '16'}]); > > data.addRow(['Immiscible Hydrocarbon', {v: new Date(1995,0,1), f: > > '1995'}, {v: 2, f: '2'}]); > > data.addRow(['Immiscible Hydrocarbon WAG', {v: new Date(2000,0,1), f: > > '2000'}, {v: 4, f: '4'}]); > > data.addRow(['Immiscible Nitrogen', {v: new Date(1983,0,1), f: > > '1983'}, {v: 7, f: '7'}]); > > data.addRow(['Immiscible WAG', {v: new Date(1978,0,1), f: '1978'}, {v: > > 6, f: '6'}]); > > data.addRow(['Microbial', {v: new Date(1994,0,1), f: '1994'}, {v: 4, > > f: '4'}]); > > data.addRow(['Miscible Acid Gas', {v: new Date(2004,0,1), f: '2004'}, > > {v: 1, f: '1'}]); > > data.addRow(['Miscible CO2 ', {v: new Date(1981,0,1), f: '1981'}, {v: > > 153, f: '153'}]); > > data.addRow(['Miscible Gas', {v: new Date(1975,0,1), f: '1975'}, {v: > > 6, f: '6'}]); > > data.addRow(['Miscible Hydrocarbon', {v: new Date(1966,0,1), f: > > '1966'}, {v: 61, f: '61'}]); > > data.addRow(['Miscible Nitrogen', {v: new Date(1977,0,1), f: '1977'}, > > {v: 3, f: '3'}]); > > data.addRow(['Miscible WAG', {v: new Date(1992,0,1), f: '1992'}, {v: > > 3, f: '3'}]); > > data.addRow(['Nitrogen', {v: new Date(2001,0,1), f: '2001'}, {v: 1, f: > > '1'}]); > > data.addRow(['SWAG', {v: new Date(1999,0,1), f: '1999'}, {v: 1, f: > > '1'}]); > > data.addRow(['Thermal (Combustion)', {v: new Date(1979,0,1), f: > > '1979'}, {v: 26, f: '26'}]); > > data.addRow(['Thermal (Hot Water)', {v: new Date(1986,0,1), f: > > '1986'}, {v: 10, f: '10'}]); > > data.addRow(['Thermal (Steam)', {v: new Date(1961,0,1), f: '1961'}, > > {v: 274, f: '274'}]); > > data.addRow(['WAG', {v: new Date(1985,0,1), f: '1985'}, {v: 1, f: > > '1'}]); > > > > var chart = new > > > google.visualization.MotionChart(document.getElementById('visualization')); > > > > chart.draw(data, {width: 1140, height: 900}); > > > > > > > > > > > > > > > > } > > -- > 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. > > -- 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.
