Hi, gauge chart question:

Can I use different options for everyone?


  google.charts.load('current', {'packages':['gauge']});
  google.charts.setOnLoadCallback(function drawChart() {
  var data = google.visualization.arrayToDataTable([
    ['Label', 'Value'],
    ['Temp °C', parseFloat(temp)],
    ['Lev cm', parseFloat(lev)],
  var options = {
    width: 400, height: 120,
    redFrom: 90, redTo: 100,
    yellowFrom:75, yellowTo: 90,
    minorTicks: 5
  var chart = new 
  chart.draw(data, options);
  setInterval(function() {
    data.setValue(0, 1, parseFloat(temp)); 
    chart.draw(data, options);
  }, 1000);
  setInterval(function() {
    data.setValue(1, 1, parseFloat(lev));
    chart.draw(data, options);
  }, 1000);

You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to