Open orwant opened 9 years ago
The same with me, I was using the jsapi and a few days ago(maybe a week) it stopped
rendering the text label. There wasn't any recent changes made to the code. Follows
the constructor:
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type='text/javascript'>
if (typeof google == 'object') {
google.load('visualization', '1', {packages:['gauge']});
function drawChart() {
var Arr = [
{'Label':'Utilização Trab', 'Value':<?=($HT_HD) ? $HT_HD :
0 ?>, 'id':'HT_HD', 'low':70, 'high':90}
];
for(var i=0; i<Arr.length; i++){
var data = google.visualization.arrayToDataTable([
['Label', 'Value'],
[Arr[i].Label, Arr[i].Value]
]);
var options = {
width: 170, height: 160,
redFrom: 0, redTo: Arr[i].low,
yellowFrom: Arr[i].low, yellowTo: Arr[i].high,
greenFrom: Arr[i].high, greenTo: 100,
minorTicks: 5, max: 100
};
var el = document.getElementById(Arr[i].id);
var chart = new google.visualization.Gauge(el);
chart.draw(data, options);
}
}
google.setOnLoadCallback(drawChart);
}
</script>
<div id="HT_HD"
title="Utilização do Trabalho = (Horas Trab / Horas
Disp) * 100
<br/><br/>Meta: 90%"/>
Original issue reported on code.google.com by caio.appelt
on 2013-09-04 16:55:55
I'm the original reporter. I note that this issue seems to have fixed itself in the
March 25, 2014 release. Have others seen the problem disappear?
Original issue reported on code.google.com by dzechiel
on 2014-05-13 17:55:56
Original issue reported on code.google.com by
dzechiel
on 2013-08-29 23:30:48