|
@@ -295,6 +295,8 @@ func (this *ChartInfoController) MultipleGraphPreview() {
|
|
|
correlationConf := req.Correlation
|
|
|
// 配置了数据才有返回
|
|
|
if correlationConf.LeadValue > 0 {
|
|
|
+ tmpChartInfo := *chartInfo
|
|
|
+
|
|
|
moveUnitDays, ok := utils.FrequencyDaysMap[correlationConf.CalculateUnit]
|
|
|
if !ok {
|
|
|
br.Msg = "错误的分析周期"
|
|
@@ -310,7 +312,7 @@ func (this *ChartInfoController) MultipleGraphPreview() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- tmpChartInfo := *chartInfo
|
|
|
+ tmpChartInfo.ChartName += fmt.Sprint(`(`, correlationConf.CalculateValue, correlationConf.CalculateUnit, `)`)
|
|
|
tmpChartInfo.Source = utils.CHART_SOURCE_CORRELATION
|
|
|
resp.CorrelationData = response.CorrelationResp{
|
|
|
ChartInfo: tmpChartInfo,
|