Is there a way to include a variable as plot title? I'd like my title to be depending on the value of a certain integer (depending here on iC_FC_size).
var text = ee.String('Landsat Mission 4-8 - GEE image availability: ').cat(iC_FC_size)
var options1 = {
title: 'Landsat Mission 4-8 - GEE image availability Suriname',
hAxis: {title: 'Year'},
vAxis: {title: 'Image count'},
colors: ['red']
}; // options for plotting histogram
var histogram = ui.Chart.feature.histogram({
features: iC_FC,
property: 'year',
minBucketWidth: 1
}).setOptions(options1);
var panel = ui.Panel({
layout: ui.Panel.Layout.flow('vertical'),
style: {position: 'bottom-right', height: '500px', width:'350px'}
}); // create panel for plotting
ui.root.add(panel);
panel.widgets().set(0, histogram); // plot the histogram
Wondering if this is even possible?
Regards!