1
lzhe
2024-11-24 f378a7f428d26f6a3f38e47c1857d11a0686497a
src/views/mdc/components/process-charts.vue
@@ -21,14 +21,31 @@
                //     }
                // },
                grid: {
                    left: 20,
                    left: 0,
                    right: 0,
                    width: "100%"
                },
                xAxis: {
                    type: 'value',
                    min: 0,
                    max: 24, // 根据需要调整最大值
                    boundaryGap: [0, 0.01], // 留出一点空间
                    axisLabel: {
                        show: false,
                        margin: 0
                    },
                    splitLine: {
                        show: false
                    },
                    minorSplitLine: {
                        show: false
                    },
                    splitArea: {
                        show: false
                    },
                    axisTick: {
                        show: false
                    },
                    boundaryGap: false, // 留出一点空间
                },
                yAxis: {
                    type: 'category',
@@ -49,7 +66,7 @@
        // ]
        var arr = [];
        for(var i=0;i<24;i++) {
            var obj = {name: '空闲时间',type: 'bar',stack: 'total',itemStyle: {color: '#fdff85'},data: [1]};
            var obj = {name: '空闲时间',type: 'bar',stack: 'total',barCategoryGap: '0',barGap: '-100%',itemStyle: {color: '#fdff85'},data: [1]};
            if(Math.random() >= 0.5) {
                obj.itemStyle.color = "#fdff85";
            }else {