var myChart = echarts.init(document.getElementById('echarts1'));
option = {
series: [
{
type: 'gauge',
radius: "110",
data: [{value: 28000, name: '日均在线'}],
axisLine : {
lineStyle : {
color : [[1,"orange"]], //仪表盘颜色
width : 15
}
},
axisTick : {//刻度线
show : false
},
axisLabel: {//刻度标签
show: false
},
splitLine: {//分割线
show: false
},
pointer: {//指针
show: false
},
detail: { // 仪表盘详情
show: true,
offsetCenter: [0,0],
color: "auto",
fontSize: 30,
formatter: "{value}"
},
title: { // 仪表盘标题。
show: true,
offsetCenter: [0,"50%"],
fontSize: 15,
color : "#b2b1b1"
}
}
]
};
myChart.setOption(option);
效果图