<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- 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 style="text-align: center; width: 100%; font:16px Arial, Helvetica, sans-serif;">1990 年の人口</div>
<div style="text-align: center; width: 100%; margin: 10px 0; font:12px Arial, Helvetica, sans-serif;">人口トップ 5 (100 万)</div>
<!-- Target element for the igDoughnutChart -->
<div id="chart"></div>
<script>
$(function () {
var data = [
{ "CountryName": "中国", "Pop1990": 1141 },
{ "CountryName": "インド", "Pop1990": 849 },
{ "CountryName": "米国", "Pop1990": 250 },
{ "CountryName": "インドネシア", "Pop1990": 178 },
{ "CountryName": "ブラジル", "Pop1990": 150 }
];
$("#chart").igDoughnutChart({
width: "100%",
height: "550px",
series:
[{
name: "Pop1990",
labelMemberPath: "CountryName",
valueMemberPath: "Pop1990",
dataSource: data,
labelsPosition: "bestFit",
formatLabel: function (context) {
return context.itemLabel + " (" + context.item.Pop1990 + ")";
}
}]
});
});
</script>
</body>
</html>