Array Data Charts

Arrays represent table data in matrix form. (Learn more about arrays in Earth Engine
from the Arrays section). To plot these data, use
ui.Chart.array.values(). Both X-data and Y-data are supplied to the
constructor as arrays. For example, consider the following script which plots Landsat
8 band correlations for a region in San Francisco:

In this example, note that the data to plot on the y-axis are in an Array
(yValues) and the x-coordinates of the data are provided in a List
(xValues). The second parameter (0) of
ui.Chart.array.values() tells Earth Engine along which array axis the
chart data vary. The output should look something like Figure 1.

Figure 1. Band correlations for a subset of a Landsat 8 scene in San Francisco.