【发布时间】:2015-04-15 16:56:57
【问题描述】:
我有以下代码在图表上显示线条。我无法找到如何格式化 x 轴。我想显示类似于 y 轴的每千个间隔(0,1000,2000,3000,4000 等)。我正在使用剑道 UI。
function createChart() {
$("#chart").kendoChart({
title: {
text: "Units sold"
},
dataSource: {
data: stats
},
categoryAxis: {
labels: {
step: 1000,
format: "n0"
},
},
series: [{
type: "area",
line: {
style: "smooth"
},
field: "x",
categoryField: "y"
}],
});
}
这是我的小提琴:
【问题讨论】:
标签: javascript html kendo-ui kendo-chart