From 758ab0fac088d828c3c0df98c53d3c26bb2550b1 Mon Sep 17 00:00:00 2001 From: xuyoubin <1562013420@qq.com> Date: Wed, 13 Dec 2023 14:38:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=AE=A1=E4=BB=B2=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=9B=91=E6=8E=A7=E7=AE=A1=E7=90=86=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=20=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../constructionSiteData/analysis/index.vue | 54 ++++++++++++++++--- 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/god-ui/src/views/constructionSiteData/analysis/index.vue b/god-ui/src/views/constructionSiteData/analysis/index.vue index 8a1b32e7..793a2f2c 100644 --- a/god-ui/src/views/constructionSiteData/analysis/index.vue +++ b/god-ui/src/views/constructionSiteData/analysis/index.vue @@ -289,17 +289,55 @@ export default { "chart3", generateBaseOptions({ xAxis: { - name:'地点', - show:true, - position:'bottom', - data: ['工地大门','18号楼施工区','15号楼施工区','健身规划区','车库','水电井'], + data: [ + "工地大门", + "18号楼施工区", + "15号楼施工区", + "健身规划区", + "车库", + "水电井", + ], + axisLine: { + show: true, + }, + axisTick: { + alignWithLabel: true, + }, + axisLabel: { + interval: 0, // 横轴信息全部显示 + }, + }, + color: [ + "#61a4e7", + "#7ece51", + "#edca5f", + "#9470e4", + "#edca5f", + "#e2925d", + ], + yAxis: { + type: "value", + axisLine: { + show: true, + }, + splitLine: { + //网格线 + show: true, //是否显示 + lineStyle: { + //网格线样式 + color: "#0735a2", //网格线颜色 + width: 1, //网格线的加粗程度 + type: "dashed", //网格线类型 + }, }, - yAxis:{ - type:'value' }, - color: ["#a27f53", "#1a3062", "#124a55"], series: [ - + { + data: [5, 6, 3, 3, 8, 2], + type: "bar", + barWidth: 40, + colorBy: "data", + }, ], }) );