ui.Chart

圖表小工具。

用量傳回
ui.Chart(dataTable, chartType, options, view, downloadable)ui.Chart
引數類型詳細資料
dataTableList<List<Object>>|Object|String,選用資料的 2D 陣列或 Google Visualization DataTable 常值。請參閱:http://developers.google.com/chart/interactive/docs/reference#DataTable
chartType字串 (選用)圖表類型,例如「ScatterChart」、「LineChart」和「ColumnChart」。如需完整圖表清單,請參閱:https://developers.google.com/chart/interactive/docs/gallery
options物件 (選用)定義圖表樣式選項的物件,例如:
title (字串) 圖表的標題。
colors (陣列) 用於繪製圖表的顏色陣列。
格式應符合 Google Visualization API 的選項:https://developers.google.com/chart/interactive/docs/customizing_charts
view物件 (選用)設定 DataView 初始化物件,做為基礎資料的篩選器。請參閱:https://developers.google.com/chart/interactive/docs/reference#DataView
downloadable布林值 (選填)圖表是否可以下載為 CSV、SVG 和 PNG 檔案。預設為 true。