<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<!-- Ignite UI for jQuery Required Combined CSS Files -->
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/structure/infragistics.css" rel="stylesheet" />
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
<!-- Ignite UI for jQuery Required Combined JavaScript Files -->
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.core.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.dv.js"></script>
</head>
<body>
<div id="shapeChart"></div>
<script>
var ds1Ready = false;
var ds2Ready = false;
var ds1 = null;
var ds2 = null;
function checkReady() {
if (ds1Ready && ds2Ready) {
var arr = [
ds1.converter().records(),
ds2.converter().records()
];
$("#shapeChart").igShapeChart({
width: "800px",
height: "500px",
xAxisMinimumValue: -170,
xAxisMaximumValue: -20,
yAxisMaximumValue: 85,
yAxisMinimumValue: 0,
dataSource: arr,
isHorizontalZoomEnabled: true,
isVerticalZoomEnabled: true,
});
}
}
$(function () {
ds1 = new $.ig.ShapeDataSource({
shapefileSource: "https://www.igniteui.com/data-files/shapes/world_countries_reg.shp",
databaseSource: "https://www.igniteui.com/data-files/shapes/world_countries_reg.dbf",
callback: function() {
ds1Ready = true;
checkReady();
}
}).dataBind();
ds2 = new $.ig.ShapeDataSource({
shapefileSource: "https://www.igniteui.com/data-files/shapes/north_america_primary_roads.shp",
databaseSource: "https://www.igniteui.com/data-files/shapes/north_america_primary_roads.dbf",
callback: function() {
ds2Ready = true;
checkReady();
}
}).dataBind();
});
</script>
</body>
</html>