zxl
2026-03-25 d29d77e91951e30abba6596359b138bc4c6ac108
src/views/dataAnalysis/components/DataReLineChart.vue
@@ -326,6 +326,29 @@
              show: false,
            },
          },
          {
            type: 'value',
            nameTextStyle: {
              color: 'rgba(185, 185, 185, 1)',
            },
            position: 'right',
            axisLine: {
              show: false,
            },
            splitLine: {
              show: false,
            },
            axisTick: {
              show: false,
            },
            axisLabel: {
              show: true,
              formatter: this.showpercent ? '{value} %' : '{value}',
              textStyle: {
                color: 'rgba(185, 185, 185, 1)',
              },
            },
          },
        ],
        series: [],
@@ -357,21 +380,17 @@
      if (this.chartData.lineData) {
        option.series.push({
          name: this.chartData.lineName,
          type: 'bar',
          barWidth: '12px',
          type: 'line',
          yAxisIndex: 1,
          smooth: true,
          symbol: 'circle',
          symbolSize: 6,
          lineStyle: {
            width: 2,
            color: '#16B777',
          },
          itemStyle: {
            normal: {
              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                {
                  offset: 0,
                  color: '#16B777',
                },
                {
                  offset: 1,
                  color: '#0D6E4A',
                },
              ]),
            },
            color: '#16B777',
          },
          data: this.chartData.lineData,
        })
@@ -403,21 +422,17 @@
      if (this.chartData.lineData2) {
        option.series.push({
          name: this.chartData.lineName2,
          type: 'bar',
          barWidth: '12px',
          type: 'line',
          yAxisIndex: 1,
          smooth: true,
          symbol: 'circle',
          symbolSize: 6,
          lineStyle: {
            width: 2,
            color: '#FFD93D',
          },
          itemStyle: {
            normal: {
              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                {
                  offset: 0,
                  color: '#FFD93D',
                },
                {
                  offset: 1,
                  color: '#B8860B',
                },
              ]),
            },
            color: '#FFD93D',
          },
          data: this.chartData.lineData2,
        })