ui.Chart

A chart widget.

UsageReturns
ui.Chart(dataTable, chartType, options, view, downloadable)ui.Chart
ArgumentTypeDetails
dataTableList, optional

A 2-D array of data or a Google Visualization DataTable literal. See: http://developers.google.com/chart/interactive/docs/reference#DataTable

chartTypeString, optional

The chart type; e.g 'ScatterChart',

'LineChart', and 'ColumnChart'. For the complete list of charts, see: https://developers.google.com/chart/interactive/docs/gallery

optionsObject, optional

An object defining chart style options such as:

  - title (string) The title of the chart.

  - colors (Array) An array of colors used to draw the chart. Its format should follow the Google Visualization API's options: https://developers.google.com/chart/interactive/docs/customizing_charts

viewObject, optional

Sets a DataView initializer object, which acts as a filter over the underlying data. See: https://developers.google.com/chart/interactive/docs/reference#DataView

downloadableBoolean, optional

Whether the chart can be downloaded as CSV, SVG, and PNG. Defaults to true.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!