function drawVisualization() {
var query = new google.visualization.Query('http://spreadsheets.google.com/tq?key=XXXXXX&hl=it_IT&headers=1');
query.setQuery('SELECT A, B, C, D, E, F, G where C contains "XXXX" order by C DESC label B "XXXX"');
query.send(handleQueryResponse);
}
此功能正常工作。我想要做的是更換另一個標籤(與ColB一起)。我試過Google可視化表:將標籤更改爲多列的查詢
query.setQuery('SELECT A, B, C, D, E, F, G where C contains "XXXX" order by C DESC label B "XXXX" label C "XXXX"');
但是我得到一個超時錯誤。我嘗試用逗號(label B "XXXX", label C "XXXX"
)或AND(label B "XXXX" AND label C "XXXX"
)分隔2,但沒有運氣。我應該如何格式化查詢以將標籤更改爲多列?
不。 – MultiformeIngegno
它很奇怪,它不工作,因爲這是這裏建議的格式:https://developers.google.com/chart/interactive/docs/querylanguage#Label – MultiformeIngegno
測試它。回答「不確定,但......」是不公平的。 – TinkerTenorSoftwareGuy