Announcement: On
November 13, 2024, all users will need to
use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require
an exception.
ui.Chart
A chart widget.
Usage | Returns | ui.Chart(dataTable, chartType, options, view, downloadable) | ui.Chart |
Argument | Type | Details | dataTable | List, optional | A 2-D array of data or a Google Visualization DataTable literal. See: http://developers.google.com/chart/interactive/docs/reference#DataTable |
chartType | String, 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 |
options | Object, 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 |
view | Object, 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 |
downloadable | Boolean, optional | Whether the chart can be downloaded as CSV, SVG, and PNG. Defaults to true. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-20 UTC.
[null,null,["Last updated 2024-02-20 UTC."],[[["The `ui.Chart` widget enables the creation of interactive charts within the user interface using data provided in a specified format."],["Chart types, styling options, data filtering, and download capabilities can be customized through the `chartType`, `options`, `view`, and `downloadable` parameters respectively."],["Users can refer to external documentation for detailed information on supported chart types, data table structures, styling options, and data view functionalities."]]],[]]