瀏覽代碼

图例名称

xyxie 1 年之前
父節點
當前提交
319eeaa2f3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      services/data/chart_info.go

+ 2 - 2
services/data/chart_info.go

@@ -868,7 +868,7 @@ func GetSeasonEdbInfoDataListByXDate(dataList []*data_manage.EdbDataList, latest
 			StartDate:   startT,
 			EndDate:     endT,
 			ShowName:    showName,
-			ChartLegend: strconv.Itoa(endT.Year()),
+			ChartLegend: strconv.Itoa(startT.Year()),
 		}
 		dataMap[name] = item
 	}
@@ -1018,7 +1018,7 @@ func GetSeasonEdbInfoDataListByXDateNong(result *data_manage.EdbDataResult, late
 			StartDate:   startT,
 			EndDate:     endT,
 			ShowName:    showName,
-			ChartLegend: strconv.Itoa(endT.Year()),
+			ChartLegend: strconv.Itoa(startT.Year()),
 		}
 		dataMap[showName] = item
 	}