From 8da171910fcf9c3f704821f1ecd043e9a0f011ab Mon Sep 17 00:00:00 2001 From: whyczyk <525500596@qq.com> Date: 星期三, 13 十月 2021 16:02:40 +0800 Subject: [PATCH] 问题提交 --- src/components/charts/abeamProChart.vue | 49 +------------------------------------------------ 1 files changed, 1 insertions(+), 48 deletions(-) diff --git a/src/components/charts/abeamProChart.vue b/src/components/charts/abeamProChart.vue index 76058c2..92b6c85 100644 --- a/src/components/charts/abeamProChart.vue +++ b/src/components/charts/abeamProChart.vue @@ -53,11 +53,9 @@ setOption(opt) { this.$options.chart.setOption(opt); this.$options.chart.on('click', (params) => { - console.log(params) let name = params.name; checkboxs.sbzt.map(item => { if (item.label == name) { - console.log(item.value) this.toParentPage(item.value) } }) @@ -91,10 +89,7 @@ tooltip: { trigger: 'axis', axisPointer: { - type: 'none' - }, - formatter: function (params) { - return params[0].name + ' : ' + params[0].value + type: 'shadow' } }, xAxis: { @@ -143,49 +138,7 @@ }, borderRadius: [0, radius, radius, 0], }, - barWidth: radius, - barCategoryGap: "0%", data: data - }, - { - name: '', - type: 'pictorialBar', - barCategoryGap: "0%", - symbolPosition: 'end', - symbolSize: [radius, radius], - zlevel: 2, - tooltip: { - show: false - }, - label: { - show: true, - position: 'insideRight', - fontSize: chartFontsize(18), - color: '#021750' - }, - itemStyle: { - color: function (params) { - return dataColor[params.dataIndex]; - }, - shadowColor: 'rgba(0, 0, 0, 0.5)', - shadowBlur: 10, - shadowOffsetX: -2 - }, - color: "#26B2E8", - data: data - }, - { - name: '', - type: 'bar', - barCategoryGap: "0%", - barGap: '-100%', - barWidth: radius, - data: maxData, - itemStyle: { - color: function (params) { - return bgColor[params.dataIndex]; - }, - }, }, ] }; -- Gitblit v1.9.1