Hi all,

I can set the value of the gauge fine but I can not set the column
label from 'today' to 'tomorrow', help! Thanks Sebinio

var gaugeData;
var chart;
var options;

function getMyForm()
        {
        gaugeData = new google.visualization.DataTable();
        gaugeData.addColumn('number', 'today');
        gaugeData.addRows(1);
        gaugeData.setCell(0, 0, 0);

        options = {min:0, max:150, width: 175, height: 175, redFrom: 0,
redTo: 60,
            yellowFrom:60, yellowTo: 90, greenFrom:90, greenTo:100,
minorTicks: 5,backgroundColor: '#999999'};

        chart = new
google.visualization.Gauge(document.getElementById('menuMyFormChartDiv'));
        chart.draw(gaugeData, options);
        }

function updateChart()
        {
        gaugeData.setValue(0, 0, gaugeData.getValue(0, 0) + 25);
        alert(gaugeData.getColumnLabel(0)); //returns 1 col
        gaugeData.setColumnLabel(0,'tomorrow');
        chart.draw(gaugeData, options);
        }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to