From 91dcd1bc5dd2a5af2bc9a80d9d71beb8de3fd09f Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Tue, 19 Dec 2023 10:13:57 +0800 Subject: [PATCH] bug#964 --- .../dataBoard/renfang/cpts/jmPieOption.js | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/views/dataBoard/renfang/cpts/jmPieOption.js b/src/views/dataBoard/renfang/cpts/jmPieOption.js index de99d80fc..fbc73853b 100644 --- a/src/views/dataBoard/renfang/cpts/jmPieOption.js +++ b/src/views/dataBoard/renfang/cpts/jmPieOption.js @@ -44,35 +44,35 @@ export function pieOption() { show: false }, data: [], - /* label: { + label: { show: false, position: 'center', - formatter: data => { - console.log(data.color) - return `{c_style|${data.percent.toFixed(0)}%}\n{b_style|${data.name}}` - // '{c_style|{d}%}\n{b_style|{b}}' - }, - rich: { - b_style: { - fontSize: 12, - fontWeight: 400, - color: '#A3B9DA' - }, - c_style: { - padding: [0, 0, 5, 0], - fontSize: 24, - fontWeight: 'bold', - color: '#fff' - } - } + // formatter: data => { + // console.log(data.color) + // return `{c_style|${data.percent.toFixed(0)}%}\n{b_style|${data.name}}` + // // '{c_style|{d}%}\n{b_style|{b}}' + // }, + // rich: { + // b_style: { + // fontSize: 12, + // fontWeight: 400, + // color: '#A3B9DA' + // }, + // c_style: { + // padding: [0, 0, 5, 0], + // fontSize: 24, + // fontWeight: 'bold', + // color: '#fff' + // } + // } }, emphasis: { label: { - show: true, + show: false, fontSize: '14', fontWeight: 'normal' } - },*/ + }, /* label: { show: false, position: 'center'