统计图修改

master
OathK1per 2022-11-16 13:55:10 +08:00
parent a8294da2f2
commit 135785f211
1 changed files with 13 additions and 6 deletions

View File

@ -15,8 +15,8 @@
<div class="am-btn-toolbar" style="padding-left:.5rem;">
<div class="am-btn-group am-btn-group-xs">
<div class="am-btn-group am-btn-group-xs am-form-file">
<div id="chartmain" style="width:1000px; height: 600px;margin:20px auto"></div>
<div id="chartmain2" style="width:1000px; height: 600px;margin:20px auto"></div>
<div id="chartmain" style="width:800px; height: 500px;margin:20px auto"></div>
<div id="chartmain2" style="width:800px; height: 500px;margin:20px auto"></div>
</div>
</div>
</div>
@ -37,7 +37,8 @@
left: 'center'
},
tooltip: {
trigger: 'item'
trigger: 'item',
formatter: '{a}{b}<br/>项目数占比:{d}%'
},
legend: {
orient: 'vertical',
@ -70,10 +71,16 @@
avoidLabelOverlap: true,
data: [],
label: {
normal: {
formatter: '{b}:{d}%'
}
show: true,
position: 'inside',
color: 'black',
formatter: '{c}'
},
// label: {
// normal: {
// formatter: '{b}:{d}%'
// }
// },
emphasis: {
itemStyle: {
shadowBlur: 10,