mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
39 lines
600 B
HTML
39 lines
600 B
HTML
|
<!doctype html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Radar Chart</title>
|
||
|
<script src="Chart.js"></script>
|
||
|
<meta name = "viewport" content = "initial-scale = 1, user-scalable = no">
|
||
|
<style>
|
||
|
canvas{
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<canvas id="canvas" height="450" width="450"></canvas>
|
||
|
|
||
|
|
||
|
<script>
|
||
|
|
||
|
var pieData = [
|
||
|
{
|
||
|
value: 30,
|
||
|
color:"#F38630"
|
||
|
},
|
||
|
{
|
||
|
value : 50,
|
||
|
color : "#E0E4CC"
|
||
|
},
|
||
|
{
|
||
|
value : 100,
|
||
|
color : "#69D2E7"
|
||
|
}
|
||
|
|
||
|
];
|
||
|
|
||
|
var myPie = new Chart(document.getElementById("canvas").getContext("2d")).Pie(pieData);
|
||
|
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|