Grouped location chart - Grouped Location Chart

Grouped Location Chart

JavaScript
chart= new GeoChart({
    "layers": [
        {
            "id": "layerId",
            "type": "items",
            "data": [],
            "aggregation": {
                "enabled": true
            },
            "style": {
                "node": {
                    "lineColor": "transparent",
                    "radius": 15
                },
                "nodeStyleFunction":  function (node) {
                    		var aggr = node.data.aggregatedNodes;
                        if(aggr.length > 1) {
                        	node.display = "roundtext";
                        	node.label = aggr.length;	
                        } else {
                        	node.display = "droplet";
                        	node.label = aggr[0]["name"];
                          node.labelStyle.backgroundStyle.fillColor = "#b0dc0b";
                          node.labelStyle.backgroundStyle.lineColor = "#b0dc0b";
                        }
                    }
            }
        }
    ],
    "navigation": {
        "initialLat": 37,
        "initialLng": -95,
        "initialZoom": 4
    },
    "container": "demo",
    "data": [
        {
            "url": "\/data\/usa-largest-capitals.json"
        }
    ],
    "interaction": {
        "resizing": {
            "enabled": false
        }
    }
})
Open in JSFiddle
HTML
    <script src="https://cdn.zoomcharts-cloud.com/1/latest/zoomcharts.js"></script>
    <div id="demo"></div>
                
Data