Hi
   I am loading Map of India using Geochart. On click of any Indian State I 
want to load the Image of that state(eg Maharashtra), but i am getting the 
Message - Requested map does not exist. 
   
My Code:

var data = new google.visualization.DataTable();
data.addColumn('string',  'State', 'State');
        data.addColumn('number', 'Area Percentage', 'Area Percentage');
data.addColumn({type:'string', role:'tooltip', 'p': {'html': true}}); 
data.addRows([            
['Maharashtra',  11, 'Balance: 1342720534.59997, fffff: 1342720544.59997'],
['Kerala',  1, 'Balance: 1342720534.59997, fffff: 1342720544.59997'],
['Punjab', 10, 'Balance: 1342720534.59997, fffff: 1342720544.59997'],
['Rajasthan',  10, 'Balance: 1342720534.59997, fffff: 1342720544.59997'],
['Uttar Pradesh',  7, 'Balance: 1342720534.59997, fffff: 1342720544.59997']
]);
var val = [0, 5, 10, 20, 30, 50];
var options = {
tooltip: {isHtml: true},
backgroundColor: '#81d4fa',
region: 'IN',
domain: 'IN',
displayMode: 'markers', //auto is zonecolor
datalessRegionColor: '#a6a6a6', 
colorAxis: {colors: ['red', 'yellow', 'violet', 'pink', 'blue', 'green'], 
values: val1}
};

var chart = new 
google.visualization.GeoChart(document.getElementById('mapDiv'));
chart.draw(data, options);
google.visualization.events.addListener(chart4, 'regionClick', 
function(eventData) {
var selectedItem = eventData.region;
if (selectedItem) {
var data = new google.visualization.DataTable();
data.addColumn('string',  'City', 'City');
data.addColumn('number', 'perc', 'perc');
data.addColumn({type:'string', role:'tooltip', 'p': {'html': true}}); 
data.addRows([            
['Amravati',  11, 'Balance: 1342720534.59997, fffff: 1342720544.59997'],
['Aurangabad',  1, 'Balance: 1342720534.59997, fffff: 1342720544.59997'],
['Jalna', 10, 'Balance: 1342720534.59997, fffff: 1342720544.59997'],
['Kolhapur',  10, 'Balance: 1342720534.59997, fffff: 1342720544.59997'],
['Nagpur',  7, 'Balance: 1342720534.59997, fffff: 1342720544.59997']
]);
var val = [0, 3, 10, 25, 35, 55]; 

options['region'] = selectedItem;
options['resolution'] = 'metros';
options['displayMode'] = 'markers';
options['colorAxis'] = {colors: ['red', 'yellow', 'violet', 'pink', 'blue', 
'green'], values: val};
chart.draw(data, options);
}
});

Thank you for the help in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/4a8d9033-7b18-44f3-b75c-226c11613bb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to