Ciao, scusate ma non esperto, anzi direo proprio neofita.
Cosa c'è che non va in questo codice? Mi sa che è onload nel body.....
Grazie ciao
codice:
<!DOCTYPE html>
<html>
<head>
<title>gauge.js</title>
<script type="text/javascript" src="http://bernii.github.io/gauge.js/dist/gauge.js"></script>
<script type="text/javascript">
var gaugeOneTarget = document.getElementById('gaugeOne');
var gaugeOne = new Donut(gaugeOneTarget);
gaugeOne.setOptions({
lines: 12,
angle: 0.07,
lineWidth: 0.10,
colorStart: '#6F6EA0',
colorStop: '#C0C0DB',
strokeColor: '#e0e0e0'
});
gaugeOne.maxValue = 100;
gaugeOne.set(85);
</script>
</head>
<body>
<canvas id="gaugeOne" width="200" height="120"></canvas>
</body>
</html>