Browse Source

bug#964

feature
mk 2 years ago
parent
commit
91dcd1bc5d
  1. 42
      src/views/dataBoard/renfang/cpts/jmPieOption.js

42
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'

Loading…
Cancel
Save