我需要在Kendo线性规图表中表示非线性或较大比例的值,并突出显示不同范围的值并在比例上标记多个。图表尺寸小,范围大或价值大都无法呈现/看起来很困难。
http://dojo.telerik.com/@kk8322/ULokuFuZ
我准备切换到任何其他Javascript图表库(最好是Highcharts / Kendo图表)以获取此行为。
答案 0 :(得分:0)
您需要设置量规区域的宽度。 API Reference for it.
<script>
$(document).ready(function() {
$("#gauge").kendoLinearGauge({
gaugeArea:{
width:500
},
pointer: [{
value: 670000,
shape: "arrow",
color: "black"
}, {
value: 480000,
color: "blue",
shape: "arrow"
}, {
value: 570000,
size: 15,
color: "blue",
shape: "arrow"
}],
scale: {
min: 470000,
max: 770000,
vertical: false,
ranges: [{
from: 470000,
to: 470500,
color: "#c20000"
},{
from: 470500,
to: 471000,
color: "yellow"
}, {
from: 771500,
to: 770500,
color: "yellow"
}, {
from: 770500,
to: 770000,
color: "#c20000"
}]
}
});
});
</script>