|
@ -20,9 +20,9 @@ var_dump($res); |
|
|
<script type="text/javascript"> |
|
|
<script type="text/javascript"> |
|
|
var datalist= new Array(35, 25, 20, 12, 7, 1); |
|
|
var datalist= new Array(35, 25, 20, 12, 7, 1); |
|
|
var colist = new Array('blue', 'red', 'green', 'orange', 'gray', 'yellow'); |
|
|
var colist = new Array('blue', 'red', 'green', 'orange', 'gray', 'yellow'); |
|
|
var canvas = document.getElementById("canvas3"); |
|
|
var canvas = document.getElementById("roulette"); |
|
|
var rendu = canvas.getContext('2d'); |
|
|
var rendu = canvas.getContext('2d'); |
|
|
pie(rendu, canvas.width, canvas.height, datalist); |
|
|
draw_roulette(rendu, canvas.width, canvas.height, datalist); |
|
|
</script> |
|
|
</script> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |
|
|