我目前有一个线性仪表,如下所示:
$("#depthBar-" + conveyanceId).kendoLinearGauge({
pointer: {
value: 0,
shape: "arrow",
color: "transparent",
start: 0,
reverse: true
},
scale: {
majorUnit: 500,
minorUnit: 100,
min: -2000,
max: 2000,
vertical: false,
reverse: false,
ranges: [
{
from: -2000, // LimitLo
to: -1500,
color: "#ffc700"
},
{
from: 2000, // LimitHi
to: 1500,
color: "#ffc700"
}, {
from: 2000, // LimitHiHi
to: 1800,
color: "#c20000"
}, {
from: -5000,
to: -1800,
color: "#c20000" // LimitLoLo
}, {
from: 0,
to: 286,
color: "lightblue"
}
]
}
});
是否可以让栏只显示最大和最小标签,而不是介于两者之间的标签?在这种情况下,我希望它只在刻度的一端显示“-2000”,在另一端显示“2000”。