feat: 调整首页echarts图
This commit is contained in:
parent
4bd50e2f9e
commit
0accfe3a4a
@ -154,25 +154,35 @@ const trendOption = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const skillsOption = {
|
const skillsOption = {
|
||||||
|
tooltip: {
|
||||||
|
trigger: 'item',
|
||||||
|
formatter({ name, value }) {
|
||||||
|
return `${name} ${value}%`
|
||||||
|
},
|
||||||
|
},
|
||||||
legend: {
|
legend: {
|
||||||
top: '5%',
|
|
||||||
left: 'center',
|
left: 'center',
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
top: '5%',
|
top: '7%',
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
radius: ['40%', '70%'],
|
radius: ['40%', '85%'],
|
||||||
avoidLabelOverlap: false,
|
avoidLabelOverlap: true,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
borderColor: '#fff',
|
borderColor: '#fff',
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: false,
|
||||||
formatter(param) {
|
position: 'center',
|
||||||
return param.name + ' (' + param.percent + '%)'
|
},
|
||||||
|
emphasis: {
|
||||||
|
label: {
|
||||||
|
show: true,
|
||||||
|
fontSize: 36,
|
||||||
|
fontWeight: 'bold',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
labelLine: {
|
labelLine: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user