0

I'm using the "ui.Chart.Image.Regions" type to produce three graphics for three different SENTINEL-2 images, with EVI index values.

I would like to normalize the horizontal label (the X label) so they look the same on all three graphs.

I used the "xLabels" property of this chart type by putting the values xLabels = [0.0, 0.5, 1.0],

however I got the following error message:

Error generating chart: The length of the xLabels list should equal the number of bands in the image. Found 1 bands and 3 elements in xLabels. ".

Here is my code: EVI INDEX

1

They look the same on the horizontal axis. I guess you want to set predefined vertical labels? You can set that under setOptions({vAxis}) as follows:

vAxis: {maxValue: 1, ticks: [0.0, 0.5, 1.0]}

Link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.