You can manually transpose the data in javascript. Here's a basic script that assumes your first column is a "string" type (which contains the labels you want to use for your data series) and all others are type "number", and transposes the rows and columns:
// rawData is the base DataTable from the query
var newData = new google.visualization.DataTable();
newData.addColumn('string', 'domain data label'); // change this label to whatever is appropriate for you
for (var i = 0; i < rawData.getNumberOfRows(); i++) {
newData.addColumn('number', rawData.getValue(i, 0));
}
for (var i = 1; i < rawData.getNumberOfColumns(); i++) {
var row = [rawData.getColumnLabel(i)];
for (var j = 0; j < rawData.getNumberOfRows(); j++) {
row.push(rawData.getValue(j, i));
}
newData.addRow(row);