Highcharts 配置仪表系列高度表
我试过像这样的配置 这是我的密码 我想让圆的宽度变大,改变线的颜色Highcharts 配置仪表系列高度表,highcharts,Highcharts,我试过像这样的配置 这是我的密码 我想让圆的宽度变大,改变线的颜色 请帮助我,谢谢。您可以添加每个绘图带的厚度属性 plotBands: [{ thickness: 50, from: 0, to: 120, color: '#55BF3B' // green }, { thickness: 50, from: 120, to
请帮助我,谢谢。您可以添加每个
绘图带的厚度属性
plotBands: [{
thickness: 50,
from: 0,
to: 120,
color: '#55BF3B' // green
}, {
thickness: 50,
from: 120,
to: 160,
color: '#DDDF0D' // yellow
}, {
thickness: 50,
from: 160,
to: 200,
color: '#DF5353' // red
}]
要更改线的颜色,请使用您的系列的拨号选项
series: [{
name: 'Speed',
dial: {
backgroundColor:'#D9972E',
radius: '100%',
baseWidth: 5,
baseLength: '5%',
baseWidth: 10,
rearLength: '0%',
},
data: [80],
tooltip: {
valueSuffix: ' km/h'
}
}]
series: [{
name: 'Speed',
dial: {
backgroundColor:'#D9972E',
radius: '100%',
baseWidth: 5,
baseLength: '5%',
baseWidth: 10,
rearLength: '0%',
},
data: [80],
tooltip: {
valueSuffix: ' km/h'
}
}]