能否改变仪表盘data里value和name的样式,官方api里未给出data相关参数https://echarts.baidu.com/option.html#series-gauge
配置项如下
option = {
tooltip : {
formatter: "{a} <br/>{b} : {c}%"
},
// toolbox: {
// feature: {
// restore: {},
// saveAsImage: {}
// }
// },
series: [
{
name: '业务指标',
type: 'gauge',
detail: {formatter:'{value}%'},
axisLine:{
lineStyle:{
width:'10',
color:[[0.2, '#fafb25'], [0.8, '#53f9f7'], [1, '#46e831']]
}
},
radius:'20%',
splitLine:{
length: '10'
},
pointer:{
width: '4'
},
// title:{
// show: true
// },
data: [{
value: 85,
name: '收入达成',
//fontSize: '10',
//label:{
// fontSize:'10',
// color: '#FFFFFF'
//}
}]
}
]
};