田源
2023-12-05 69a9cab3e520b4daa62c693897ecd1179553cf59
Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue
@@ -50,7 +50,7 @@
                value: newval[i][j],
                itemStyle: {
                  normal: {
                    barBorderRadius: borderRadius,  // 设置圆角
                    // barBorderRadius: borderRadius,  // 设置圆角
                    color: colors[i],
                  }
                },
@@ -61,10 +61,14 @@
              name: seriesName,
              type: "bar",
              stack: "总量",
              barWidth: 60,
              data: curSeriesData,
              label: {
                show: true,
                position: 'top'
                position: 'top',
                formatter: function (params) {
                  return params.value === 0 ? '' : params.value; // 值为 0 不显示,其他情况显示
                }
              },
              emphasis: {
                focus: "series",
@@ -108,6 +112,9 @@
        legend: {
          data: ["总量", "新增"],
          left: "center",
          textStyle: {
            fontSize: 14 // 调整字体大小
          }
        },
        xAxis: {
          type: "category",