What do you mean by "removing the chart"?  Did you delete that code or are 
you deleting the chart after drawing it?  If you don't want that chart at 
all, then this should work:

google.load('visualization', '1', {'packages': ['table', 'map', 
'corechart']});
google.setOnLoadCallback(draw);

function draw() {
        var geoData = new google.visualization.DataTable(); 
        geoData.addColumn('string', 'City'); 
        geoData.addColumn('string', 'Name'); 
        geoData.addColumn('boolean', 'Food'); 
        geoData.addRows(3); 
        geoData.setCell(0, 0, 'London'); 
        geoData.setCell(1, 0, 'Paris'); 
        geoData.setCell(2, 0, 'Moscow'); 
        geoData.setCell(0, 1, 'Cinematics London'); 
        geoData.setCell(1, 1, 'Cinematics Paris'); 
        geoData.setCell(2, 1, 'Cinematics Moscow'); 
        geoData.setCell(0, 2, true); 
        geoData.setCell(1, 2, true); 
        geoData.setCell(2, 2, false); 

        var geoView = new google.visualization.DataView(geoData); 
        geoView.setColumns([0, 1]); 

        var table = new 
google.visualization.Table(document.getElementById('table_div'));
        table.draw(geoData, {showRowNumber: false}); 

        var map 
= new google.visualization.Map(document.getElementById('map_div'));
        map.draw(geoView, {showTip: true});

        // Set a 'select' event listener for the table. 
        // When the table is selected, 
        // we set the selection on the map. 
        google.visualization.events.addListener(table, 'select', 
            function() { 
              map.setSelection(table.getSelection()); 
            }); 

        // Set a 'select' event listener for the map. 
        // When the map is selected, 
        // we set the selection on the table. 
        google.visualization.events.addListener(map, 'select', 
            function() { 
              table.setSelection(map.getSelection()); 
            }); 
      } 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/aYBgu-N32AIJ.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to