GEE图表——GEE绘制图表,设定双纵坐标图形以NDVI和RVI为例

问题:

我正在使用双 y 轴图绘制 NDVI 和 RVI,绘制了 RVI,但轴不显示 RVI?请先观察这两个图表的差异,其实我们已经绘制了两条曲线,但是结果会显示下面的图表会显示右侧的纵坐标,但是上面的图表不显示,这个问题主要存在一个setoption的一个参数的问题。

原始代码:

var geometry = ee.FeatureCollection("users/raghavendrasp999/gauri"),
    ban = 
    /* color: #ffc82d */
    /* shown: false */
    ee.Geometry.Polygon(
        [[[77.56217312269895, 13.52753491477346],
          [77.56217312269895, 13.526856886288364],
          [77.56405066900938, 13.526856886288364],
          [77.56405066900938, 13.52753491477346]]], null, false),
    mulberry = 
    /* color: #0b4a8b */
    /* shown: false */
    /* displayProperties: [
      {
        "type": "rectangle"
      }
    ] */
    ee.Geometry.Polygon(
        [[[77.48463708212228, 13.627819189868447],
          [77.48463708212228, 13.627550700025619],
          [77.48501795580239, 13.627550700025619],
          [77.48501795580239, 13.627819189868447]]], null, false),
    corn = 
    /* color: #98ff00 */
    /* shown: false */
    /* displayProperties: [
      {
        "type": "rectangle"
      }
    ] */
    ee.Geometry.Polygon(
        [[[77.50168112237715, 13.656394427109964],
          [77.50168112237715, 13.656101209119528],
          [77.50202578623556, 13.656101209119528],
          [77.50202578623556, 13.656394427109964]]], null, false),
    BANANA = 
    /* color: #0b4a8b */
    /* displayProperties: [
      {
        "type": "rectangle"
      }
    ] */
    ee.Geometry.Polygon(
        [[[77.48621444628124, 13.61676412987577],
          [77.48621444628124, 13.616268833954269],
          [77.4865684978712, 13.616268833954269],
          [77.4865684978712, 13.61676412987577]]], null, false);
 var corn = 
    /* color: #98ff00 */
    /* shown: false */
    /* displayProperties: [
      {
        "type": "rectangle"
      }
    ] */
    ee.Geometry.Polygon(
        [[[77.50168112237715, 13.656394427109964],
          [77.50168112237715, 13.656101209119528],
          [77.50202578623556, 13.656101209119528],
          [77.50202578623556, 13.656394427109964]]], null, false);

// Example script showing use of Joins for data fusion
// We find images from Sentinel-2 and Sentinel-1 collections
// collected o

猜你喜欢

转载自blog.csdn.net/qq_31988139/article/details/132481215