side by side layout of several gauges

25 views
Skip to first unread message

tristian2

unread,
Jun 20, 2011, 9:04:59 AM6/20/11
to Google Visualization API
hi all,

i need to display three gauges next to each other. these three gauges
have slighly different properties so i cant use

var chartHigh = new
google.visualization.Gauge(document.getElementById('chart_divHigh'));
var optionsHigh = { width: 200, height: 60, redFrom: 0, redTo:
10,
yellowFrom: 10, yellowTo: 20, greenFrom: 60, greenTo: 100,
minorTicks: 5

/* i need these for the other two guages

[width: 200, height: 60, redFrom: 0, redTo: 10,
yellowFrom: 10, yellowTo: 20, greenFrom: 80, greenTo: 100,
minorTicks: 5];,

[width: 200, height: 60, redFrom: 0, redTo: 10,
yellowFrom: 10, yellowTo: 20, greenFrom: 60, greenTo: 100,
minorTicks: 5];
*/
};
chartHigh.draw(dataHigh, optionsHigh);

i can simply draw three different gauges on the screen, but these
display in blocks, not inline. i need the three charts to display
alongside each other.

any ideas how to do this?

thanks
tristian

asgallant

unread,
Jun 20, 2011, 9:31:41 AM6/20/11
to google-visua...@googlegroups.com
I don't think there is any way to pass different configuration options for each of the individual gauges in a gaugeChart.  You can use CSS to position three charts side-by-side, though.
Reply all
Reply to author
Forward
0 new messages