I have an asset imported from a shapefile in GEE. It is a feature collection with which I wish to chart a time series. The lines from each feature are labelled as system:index. See labelling of picture below and ignore the amount of features, it's a WIP.
I want them to be labelled as the "fid" column in my asset's table. See picture below (column to the right).
Can this be done with .setSeriesNames or some other argument?
Code for chart is the usual, found below.
//// Plot results
var chart = ui.Chart.image.seriesByRegion(
s2CloudMasked,
fc,
ee.Reducer.median(),
'NDVI',10)
.setChartType('LineChart')
.setSeriesNames([])
.setOptions({
interpolateNulls: true,
lineWidth: 1,
pointSize: 3,
title: 'NDVI monthly G3',
hAxis: {title: 'Date'},
vAxis: {title: 'NDVI'},
series: {0:{color: 'red'}
}
});
print(chart)