ui.Chart

图表 widget。

用法返回
ui.Chart(dataTable, chartType, options, view, downloadable)ui.Chart
参数类型详细信息
dataTableList<List<Object>>|Object|String,可选数据或 Google 可视化 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。