소스 검색

图例名称

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
 	}