<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script nonce="undefined" src='https://cdn.zingchart.com/zingchart.min.js'></script>
<script nonce="undefined" src="https://cdn.zingchart.com/modules/zingchart-maps.min.js"></script>
<script nonce="undefined" src="https://cdn.zingchart.com/modules/zingchart-maps-geojson.min.js"></script>
<style></style>
</head>
<body style="margin: 0px;">
<div id='myChart'></div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
var myJson = {};
zingchart.maps.loadGeoJSON({
id: 'africa', // Give the map an id
url: 'https://www.zingchart.com/resources/calif_geo.json', // GeoJSON object for Africa
style: { //Optional styling options
poly: {
label: {
visible: false
}
}
},
callback: function() { // Function called when GeoJSON is loaded
zingchart.render({
id: 'myChart',
width: 722,
height: 500,
data: {
"shapes": [{
"type": "zingchart.maps", // Set shape to map type
"options": {
"name": "africa", // Reference to the id set in loadGeoJSON()
"scale": true // Automatically scale to correct proportions
}
}]
}
});
}
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script src='https://cdn.zingchart.com/zingchart.min.js'></script>
<script src="https://cdn.zingchart.com/modules/zingchart-maps.min.js"></script>
<script src="https://cdn.zingchart.com/modules/zingchart-maps-geojson.min.js"></script>
</head>
<body style="margin: 0px;">
<div id='myChart'></div>
</body>
</html>
var myJson = {};
zingchart.maps.loadGeoJSON({
id: 'africa', // Give the map an id
url: 'https://www.zingchart.com/resources/calif_geo.json', // GeoJSON object for Africa
style: { //Optional styling options
poly: {
label: {
visible: false
}
}
},
callback: function() { // Function called when GeoJSON is loaded
zingchart.render({
id: 'myChart',
width: 722,
height: 500,
data: {
"shapes": [{
"type": "zingchart.maps", // Set shape to map type
"options": {
"name": "africa", // Reference to the id set in loadGeoJSON()
"scale": true // Automatically scale to correct proportions
}
}]
}
});
}
});