diff --git a/src/views/modules/result/chart/componments/chart-bar-form/index.vue b/src/views/modules/result/chart/componments/chart-bar-form/index.vue new file mode 100644 index 0000000..9d8b7d6 --- /dev/null +++ b/src/views/modules/result/chart/componments/chart-bar-form/index.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/src/views/modules/result/chart/componments/chart-form/index.vue b/src/views/modules/result/chart/componments/chart-form/index.vue index 5a7d05b..50f165a 100644 --- a/src/views/modules/result/chart/componments/chart-form/index.vue +++ b/src/views/modules/result/chart/componments/chart-form/index.vue @@ -36,7 +36,7 @@ legend: { x: 'center', y: '85%', - show: true + show: false // 是否展示图例 }, series: { center: ['50%', '40%'], @@ -53,6 +53,7 @@ }, label: { formatter: params => { + // if (params.data.value === 0) return '' return `{a|${params.data.name} (${params.data.value}人})` }, rich: { @@ -60,8 +61,9 @@ textAlign: 'center' } } + }, + labelLine: { } - } } }, diff --git a/src/views/modules/result/chart/componments/query-form/index.vue b/src/views/modules/result/chart/componments/query-form/index.vue index 844e3e1..b25512b 100644 --- a/src/views/modules/result/chart/componments/query-form/index.vue +++ b/src/views/modules/result/chart/componments/query-form/index.vue @@ -1,4 +1,157 @@ + + + + + + + + + + diff --git a/src/views/modules/result/chart/index.vue b/src/views/modules/result/chart/index.vue index 2bd7577..b6ce943 100644 --- a/src/views/modules/result/chart/index.vue +++ b/src/views/modules/result/chart/index.vue @@ -3,20 +3,17 @@
- +
- + - + - - - - +
@@ -27,16 +24,17 @@