我试图让Y轴的值方向从1到8000,顶部是8000,底部是1。
function createChart() {
$("#chart").kendoChart({
title: {
text: "Units sold"
},
dataSource: {
data: stats
},
categoryAxis: {
labels: {
step: 10,
format: "n2"
},
},
series: [{
type: "line",
field: "y",
categoryField: "x",
style: "smooth",
markers: {
visible: false
}
}],
});
}
$(document).ready(createChart);
这是jfiddle:http://jsfiddle.net/nDS3S/31/
答案 0 :(得分:1)