From 4e888453a23c240590ce6228f8cbcd65eeb362e3 Mon Sep 17 00:00:00 2001 From: tianqian <277562116@qq.com> Date: Tue, 20 Jun 2023 13:01:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataBoard/sida/cpts/fw02gxxq.vue | 24 ++++++++++---- .../dataBoard/sida/cpts/fwBarOption04.js | 33 ++++--------------- .../dataBoard/sida/cpts/fwBarOption05.js | 4 +-- 3 files changed, 25 insertions(+), 36 deletions(-) diff --git a/src/views/dataBoard/sida/cpts/fw02gxxq.vue b/src/views/dataBoard/sida/cpts/fw02gxxq.vue index 696f0cd8e..9fc2aa3d2 100644 --- a/src/views/dataBoard/sida/cpts/fw02gxxq.vue +++ b/src/views/dataBoard/sida/cpts/fw02gxxq.vue @@ -3,7 +3,7 @@
-
+
{{ item.name }}
@@ -44,7 +44,7 @@ series: [{ name: '', type: 'pie', - radius: [70, 130], + radius: ['40%', '60%'], center: ['50%', '50%'], // roseType: 'area', itemStyle: { @@ -53,19 +53,20 @@ avoidLabelOverlap: false, labelLine: { show: true, - length: 50 + }, label: { + normal: { show: false, formatter: '{title|{b}}\n{d}%', - fontSize: 24, + fontSize:24, color: '#FFFFFF', - rich: { title: { fontSize: 12, - height: 25, + height: 25, + }, } } @@ -172,11 +173,20 @@ \ No newline at end of file diff --git a/src/views/dataBoard/sida/cpts/fwBarOption04.js b/src/views/dataBoard/sida/cpts/fwBarOption04.js index 618895e00..2b5f00d37 100644 --- a/src/views/dataBoard/sida/cpts/fwBarOption04.js +++ b/src/views/dataBoard/sida/cpts/fwBarOption04.js @@ -43,8 +43,8 @@ export function pieOption() { alignWithLabel: true }, axisLabel: { - interval: 1, - rotate: 40, + interval:3, + show: true, textStyle: { color: 'rgba(255,255,255,0.85)', //更改坐标轴文字颜色 @@ -55,6 +55,7 @@ export function pieOption() { }], yAxis: [{ type: 'value', + splitNumber: 5, splitLine: { show: true, @@ -65,25 +66,6 @@ export function pieOption() { } }, axisLabel: { - show: true, - textStyle: { - color: 'rgba(255,255,255,0.85)', //更改坐标轴文字颜色 - fontSize: 12 //更改坐标轴文字大小 - } - }, - }, { - type: 'value', - splitNumber: 5, - splitLine: { - show: true, - lineStyle: { - color: 'rgba(255,255,255,0.15)', - width: 1, - type: 'solid' - } - }, - axisLabel: { - show: true, textStyle: { color: 'rgba(255,255,255,0.85)', //更改坐标轴文字颜色 @@ -94,9 +76,8 @@ export function pieOption() { series: [{ name: '个性服务', type: 'bar', - stack: 'Ad', + barWidth: 12, - yAxisIndex: 0, emphasis: { focus: 'series' }, @@ -114,8 +95,7 @@ export function pieOption() { name: '完成服务', type: 'bar', barWidth: 12, - stack: 'Ad', - yAxisIndex: 0, + emphasis: { focus: 'series' }, @@ -134,7 +114,6 @@ export function pieOption() { type: 'line', barWidth: 12, stack: 'Ad', - yAxisIndex: 1, emphasis: { focus: 'series' }, @@ -150,4 +129,4 @@ export function pieOption() { data: [] }, ] } -} \ No newline at end of file +} diff --git a/src/views/dataBoard/sida/cpts/fwBarOption05.js b/src/views/dataBoard/sida/cpts/fwBarOption05.js index 536522a62..b484f6320 100644 --- a/src/views/dataBoard/sida/cpts/fwBarOption05.js +++ b/src/views/dataBoard/sida/cpts/fwBarOption05.js @@ -43,8 +43,8 @@ export function pieOption() { alignWithLabel: true }, axisLabel: { - interval: 1, - rotate: 40, + interval: 3, + // rotate: 40, show: true, textStyle: { color: 'rgba(255,255,255,0.85)', //更改坐标轴文字颜色