loulijun2021
2024-05-09 1751adf783d2c7203b86c0f02f5f737277ca9192
src/utils/myEcharts.js
@@ -329,25 +329,25 @@
    },
    series: [
      {
      name: '时间',
      type: 'line',
      smooth: false,
      showAllSymbol: true,
      symbol: 'emptyCircle',
      symbolSize: 8,
      itemStyle: {
        normal: {
          color: `rgba(42, 197, 137, 1)`
        }
      },
      lineStyle: {
        normal: {
          width: 2,
          color: `rgba(42, 197, 137, 1)`
        }
      },
      data: dataY
    }
        name: '时间',
        type: 'line',
        smooth: false,
        showAllSymbol: true,
        symbol: 'emptyCircle',
        symbolSize: 8,
        itemStyle: {
          normal: {
            color: `rgba(42, 197, 137, 1)`
          }
        },
        lineStyle: {
          normal: {
            width: 2,
            color: `rgba(42, 197, 137, 1)`
          }
        },
        data: dataY
      }
    ]
  }
@@ -360,6 +360,7 @@
  // const titlename = ['外观划伤', '表面油污', '尺寸', '颜色', '大小']
  // const data = val.map(i => i.cont)
  // const titlename = val.map(i => i.name)
  const data = dataArr.filter((item, index) => index < 5)
  const titlename = titlenameArr.filter((item, index) => index < 5)
@@ -425,7 +426,7 @@
          color: function(value, index) {
            return value === '0' ? 'transparent' : '#fff'
          },
          fontSize: 20,
          fontSize: 16,
          // formatter: function(value, index) {
          //   return [
          //     '{lg|' + (index + 1) + '、   }' + '{title|' + value + '} '