Browse Source

图例名称

xyxie 1 year ago
parent
commit
319eeaa2f3
1 changed files with 2 additions and 2 deletions
  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
 	}