@@ -19,6 +19,7 @@ type BarChartInfoDateReq struct {
Date string `description:"固定日期"`
Value int `description:"N天的值"`
Color string `description:"颜色"`
+ Name string `description:"别名"`
}
// BarChartInfoSortReq 柱方图预览请求数据(排序相关)
@@ -17,4 +17,5 @@ type YData struct {
Date string `description:"数据日期"`
Color string `description:"数据颜色"`
Value []float64 `description:"每个指标的值"`
@@ -850,6 +850,7 @@ func BarChartData(mappingList []*chartEdbMappingModel.ChartEdbInfoMapping, edbDa
Date: maxDate.Format(utils.FormatDate),
Value: findDataList,
Color: barChartInfoDate.Color,
+ Name: barChartInfoDate.Name,
})