Chart.js/pie.html
Nick Downie a9dcf88378 First commit. Version 0.1
Examples of the six charts that can be created, and the Chart.js
library.
2013-03-17 23:57:50 +00:00

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>