# 修改好的进度条
option = {
tooltip:{
show:false,
},
legend:{
selectedMode:false
},
grid: {
left: '0%',
top:'0%',
right: '0%',
bottom: '8%',
containLabel: true
},
xAxis: [{
show: false,
}],
yAxis: [{
axisTick:'none',
axisLine:'none',
offset:'27',
axisLabel: {
textStyle: {
color: '#ffffff',
fontSize:'16',
}
},
data: '8',
}, {
axisTick:'none',
axisLine:'none',
axisLabel: {
textStyle: {
color: '#ffffff',
fontSize:'16',
}
},
data: ['100%']
},{
axisLine:{
lineStyle:{
color:'rgba(0,0,0,0)'
}
},
data: [],
}],
series: [{
clickable:false,
name: '条',
type: 'bar',
stack:'圆',
yAxisIndex: 0,
color:'#f4f4f4',
data: [23],
barWidth: 24,
z:1,
label:{
normal:{
show:true,
// position:'right',
left:'center',
formatter:function(param){
return param.value + '%';
},
textStyle:{
color: '#ffffff',
fontSize:'16',
}
}
},
itemStyle: {
normal: {
color:'#999999'
},
},
},
{
name: '外框',
type: 'bar',
yAxisIndex: 0,
barGap: '-100%',
data: [100],
barWidth: 24,
z:0,
color:'#f4f4f4',
itemStyle: {
normal: {
color:'#e3e3e3'
},
},
},
]
};
echars进度条
最新推荐文章于 2024-06-23 13:00:46 发布