highcharts仪表盘的配置项
gaugeOption: {
chart: {
type: "gauge",
spacing: [30, 0, 0, 0],
},
credits: {
enabled: false,
},
title: {
text: "设备故障率( % )",
verticalAlign: "bottom",
style: {
color: "#666666",
fontSize: "24rpx",
fontWeight: "bolder",
},
y: 0,
},
pane: {
startAngle: -150,
endAngle: 150,
background: [],
},
plotOptions: {
gauge: {
dial: {
//仪表盘指针
radius: "70%",
backgroundColor: "#a1d7ed",
},
},
},
yAxis: {
min: 0,
max: 100,
tickPixelInterval: null,
offset: 0,
labels: {
enabled: false,
},
plotBands: [
{
from: 0,
to: 33,
color: "#a5d4eb",
},
{
from: 33,
to: 68,
color: "#5db7df",
},
{
from: 68,
to: 100,
color: "#1e9bd3",
},
],
},
series: [
{
data: [],
name: "设备故障率",
tooltip: {
valueSuffix: "%",
},
},
],
},