我想将范围显示为我的传奇。一个示例指标就像this
我可以拥有它,以便根据值可以使用颜色和文本[Bad / Good / Excellent]吗?
plotBands: [{
from: 0,
to: 120,
color: '#55BF3B' // green
}, {
from: 120,
to: 160,
color: '#DDDF0D' // yellow
}, {
from: 160,
to: 200,
color: '#DF5353' // red
}]
答案 0 :(得分:1)
当然,只需为图例创建单独的系列,然后启用它们:http://jsfiddle.net/kbvC3/734/
series: [{
name: 'Speed',
data: [80],
tooltip: {
valueSuffix: ' km/h'
}
}, {
showInLegend: true,
name: "Bad",
color: '#55BF3B' // green
}, {
showInLegend: true,
name: "Good",
color: '#DDDF0D' // yellow
}, {
showInLegend: true,
name: "Excellent",
color: '#DF5353' // red
}]