haoxuan
2023-12-05 2e6cfde0e6533c734bd5fe81a5d62b931098f6a3
src/views/cockpitPage/components/DeviceChart.vue
@@ -69,7 +69,7 @@
          grid: {
            right: "80px",
            bottom: "60px",
            left: "60px",
            left: "70px",
            top: "30px",
          },
          dataZoom: [
@@ -104,6 +104,7 @@
                // rotate:45,
                margin: 10,
                show: true,
                fontSize:12,
                textStyle: {
                  color: function (params, index) {
                    let colorList = ["#dcb018", "#00FFFF"];
@@ -115,7 +116,7 @@
                  },
                },
                formatter: function (value) {
                  if (value.length > 6) {
                  if (value.length > 5) {
                    return `${value.slice(0, 4)}...`;
                  }
                  return value;