src/views/cockpitPage/components/DeviceChart.vue
@@ -79,6 +79,9 @@
              show: false,
              startValue: that.startValue, // 从头开始
              endValue: that.endValue, // 一次性展示几个
              zoomOnMouseWheel: false,
              moveOnMouseWheel: true,
              moveOnMouseMove: true,
            },
          ],
          legend: {
@@ -154,12 +157,13 @@
              axisTick: {
                show: false,
              },
              axisLabel: {
                textStyle: {
                  color: "#00FFFF",
                },
                formatter: "{value}%",
                formatter: function (value) {
                  return `${value}%`;
                },
              },
            },
          ],
@@ -171,8 +175,22 @@
              label: {
                show: true,
                position: "right",
                formatter: function (params) {
                  if (params.dataIndex % 2 == 0) {
                    return `{a|${params.value}%}`;
                  } else {
                    return `{b|${params.value}%}`;
                  }
                },
                rich: {
                  a: {
                color: "#00FFFF",
              },
                  b: {
                    color: "#dcb018",
                  },
                },
              },
              itemStyle: {
                normal: {
                  //柱形图圆角,初始化效果