I am having issues in setting decimal scales for Linear Gauge in kendo Charts...
function createGauge() {
$("#gauge").kendoLinearGauge({
pointer: {
value: 0.5,
size: 15,
shape: "arrow",
color: '#0000ff'
},
scale: {
majorUnit: 20,
minorUnit: 5,
max: 1,
labels: {
format: "n2"
},
vertical: false,
ranges: [{
from: 0,
to: 0.3,
color: "#00ff00"
}, {
from: 0.3,
to: 0.6,
color: "#ffff00"
}, {
from: 0.6,
to: 1,
color: "#ff0000"
}]
}
});
}
$(document).ready(function () {
setTimeout(function () {
createGauge();
$("#example").bind("kendo:skinChange", function (e) {
createGauge();
});
}, 400);
});
When i set decimal ranges the labels of the scale do not appear...
If someone can edit this code... Here is the fiddle