google / google-visualization-issues

288 stars 35 forks source link

Geo Chart :not able to generate District , Commune level Maps #2057

Open nrjgit opened 9 years ago

nrjgit commented 9 years ago

This is My Geo-Chart for the Country 'Haiti' .Which is working Fine

http://jsfiddle.net/p9VRF/light/

But I cannot set it for District View ,and Commune View like this

transition 4

transition 5

google.load('visualization', '1', { 'packages': ['geochart'] }); google.setOnLoadCallback(drawMap);

function drawMap() {

//Not working for commune var data = google.visualization.arrayToDataTable([ ['Commune', ''], ['Borgne', 2] ])

        var options = {
            width: 556, height: 347,
            displayMode: 'regions',
            resolution: 'provinces',
            colorAxis: {
                colors: ['red'],
                minValue: 0,
                maxValue: 2
            },
            region: 'HT',
            legend: 'none'
        };
    var container = document.getElementById('map_canvas');
    var geochart = new google.visualization.GeoChart(container);
    geochart.draw(data, options);
};

I am not getting Any Idea , same wthing work for nation view , Department View

What is missing ??

wicky-andrian commented 6 years ago

Check Iso Marker https://developers.google.com/chart/interactive/docs/gallery/geochart