I'm trying to make a google gauge pointer, but it doesn’t move, I set the animation configuration, as it is supposed to be set in var options, for example, duration: 1000 and easing: 'inAndOut', I n00b in the Google API, so for my attempts of ignorance.
Can someone help me. here is the tutorial link I'm using. the code works, but in part, the caliber pointer should move slowly to it max, however in my case this will not work. here is the code.
<html>
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('visualization', '1', {packages:['gauge']});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Label', 'Value'],
['Match',80],
]);
var options = {
width: 440, height: 140,
greenFrom: 70, greenTo: 100,
yellowFrom:50, yellowTo: 70,
redFrom:0, redTo: 50,
minorTicks: 5,
animation:{
duration: 1000,
easing: 'inAndOut',
},
majorTicks : ['0','10','20','30','40','50','60','70','80','90','100']
};
var chart = new google.visualization.Gauge(document.getElementById('chart_div<%=id%>'));
chart.draw(data, options);
clearChart();
}
</script>
</html>