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 show: false
}, },
data: [], data: [],
/* label: { label: {
show: false, show: false,
position: 'center', position: 'center',
formatter: data => { // formatter: data => {
console.log(data.color) // console.log(data.color)
return `{c_style|${data.percent.toFixed(0)}%}\n{b_style|${data.name}}` // return `{c_style|${data.percent.toFixed(0)}%}\n{b_style|${data.name}}`
// '{c_style|{d}%}\n{b_style|{b}}' // // '{c_style|{d}%}\n{b_style|{b}}'
}, // },
rich: { // rich: {
b_style: { // b_style: {
fontSize: 12, // fontSize: 12,
fontWeight: 400, // fontWeight: 400,
color: '#A3B9DA' // color: '#A3B9DA'
}, // },
c_style: { // c_style: {
padding: [0, 0, 5, 0], // padding: [0, 0, 5, 0],
fontSize: 24, // fontSize: 24,
fontWeight: 'bold', // fontWeight: 'bold',
color: '#fff' // color: '#fff'
} // }
} // }
}, },
emphasis: { emphasis: {
label: { label: {
show: true, show: false,
fontSize: '14', fontSize: '14',
fontWeight: 'normal' fontWeight: 'normal'
} }
},*/ },
/* label: { /* label: {
show: false, show: false,
position: 'center' position: 'center'

Loading…
Cancel
Save