ui.Chart

  • The ui.Chart widget lets you create interactive charts within your Earth Engine app using data from a dataTable.

  • You can customize the chart's appearance, type (e.g., ScatterChart, LineChart), and data filtering using the options and view parameters.

  • Charts are downloadable as CSV, SVG, or PNG by default, but this can be controlled with the downloadable parameter.

  • The dataTable argument accepts a 2-D array or a Google Visualization DataTable literal for data input.

  • Detailed documentation on chart types, styling options, and the Google Visualization API is available in the provided links.

A chart widget.

UsageReturns
ui.Chart(dataTable, chartType, options, view, downloadable)ui.Chart
ArgumentTypeDetails
dataTableList<List<Object>>|Object|String, optionalA 2-D array of data or a Google Visualization DataTable literal. See: http://developers.google.com/chart/interactive/docs/reference#DataTable
chartTypeString, optionalThe chart type; e.g 'ScatterChart', 'LineChart', and 'ColumnChart'. For the complete list of charts, see: https://developers.google.com/chart/interactive/docs/gallery
optionsObject, optionalAn 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, optionalSets a DataView initializer object, which acts as a filter over the underlying data. See: https://developers.google.com/chart/interactive/docs/reference#DataView
downloadableBoolean, optionalWhether the chart can be downloaded as CSV, SVG, and PNG. Defaults to true.