田源
2023-12-12 2171e52259e2b6e64178f77d14eda487f45ed8d6
Source/UBCS-WEB/src/components/StatisticsComponent/lineChart.vue
@@ -31,15 +31,14 @@
      handler(newval, oldval) {
        if (newval) {
          const series = newval.map((data, index) => ({
            name: index === 0 ? "总量" : "新增",
            type: "line",
            name: index === 0 ? '总量' : '新增',
            type: 'line',
            smooth: true,
            stack: "Total",
            stack: index === 0 ? 'Total' : 'total2', // 根据 index 区分总量和新增的堆叠情况
            label: {
              show: true,
              position: "top",
              textStyle: {
                fontSize: 14 // 调整字体大小
                fontSize: 14
              }
            },
            data: data.map(value => ({value}))