Jay
2025-02-14 3babafdbc9a43745ab2191f81f70e7ad5d9e985e
src/views/model/pre/item/MmPredictItemChart.vue
@@ -167,6 +167,39 @@
              },
            },
          })
          //累计点
          if(viewData.cumulantRealData) {
            legendData.push(key + "累计:" + '真实值')
            seriesData.push({
              name: key + "累计:" + '真实值',
              type: "line",
              data: viewData.cumulantRealData,
              showSymbol: false,
              smooth: false,
              lineStyle: {
                normal: {
                  width: 1,
                },
              },
              yAxisIndex: 1
            })
          }
          if(viewData.cumulantPreData) {
            legendData.push(key + "累计:" + '预测值')
            seriesData.push({
              name: key + "累计:" + '预测值',
              type: "line",
              data: viewData.cumulantPreData,
              showSymbol: false,
              smooth: false,
              lineStyle: {
                normal: {
                  width: 1,
                },
              },
              yAxisIndex: 1
            })
          }
        })
      }
@@ -207,9 +240,19 @@
          boundaryGap: false,
          data: data.categories,
        },
        yAxis: {
          type: "value",
        },
        yAxis: [
          {
            type: "value",
            name: '预测值/真实值'
          },
          {
            type: "value",
            splitLine: {
              show: false
            },
            name: '累计值'
          }
        ],
        dataZoom: [
          {
            type: "inside",