yangfeng
2023-12-11 14101bd42ce17dfb9d951d0738abe9d303fb3fe5
src/views/cockpitPage/components/DeviceChart.vue
@@ -57,9 +57,10 @@
      myChart = echarts.init(chartDom);
      let option;
      let lineColor = "#35ddc74d";
      let spirit = "/cockpitPage/order-bg.png";
      if (data) {
        option = {
          color: ["#00FFFF", "#dcb018"],
          color: ["#00FFFF", "#fccd1d"],
          tooltip: {
            trigger: "axis",
            axisPointer: {
@@ -118,7 +119,7 @@
                fontSize: 12,
                textStyle: {
                  color: function (params, index) {
                    let colorList = ["#dcb018", "#00FFFF"];
                    let colorList = ["#fccd1d", "#00FFFF"];
                    if (index % 2 == 0) {
                      return colorList[0];
                    } else {
@@ -177,9 +178,14 @@
          ],
          series: [
            {
              type: "bar",
              type: "pictorialBar",
              name: "",
              barWidth: "15",
              symbol: spirit,
              symbolRepeat: true,
              symbolMargin: "25%",
              symbolClip: true,
              symbolSize: [4, 11],
              barCategoryGap: "40%",
              label: {
                show: true,
                position: "right",
@@ -195,7 +201,7 @@
                    color: "#00FFFF",
                  },
                  b: {
                    color: "#dcb018",
                    color: "#fccd1d",
                  },
                },
              },
@@ -204,7 +210,7 @@
                  //柱形图圆角,初始化效果
                  barBorderRadius: [4, 4, 0, 0],
                  color: function (params) {
                    let colorList = ["#dcb018", "#00FFFF"];
                    let colorList = ["#fccd1d", "#00FFFF"];
                    if (params.dataIndex % 2 == 0) {
                      return colorList[0];
                    } else {