我在使用剑道堆积图时遇到了一些问题 - 例如,值为:M4_IN = 1,M4_OUT = 7 图表在值轴上显示701 - 它将7堆叠为700.
$("#monthlyChartIn").kendoChart({
dataSource: monthlyDS,
title: "aaa",
autoBind: true,
theme: "Metro",
legend: {visible:true},
seriesDefaults: {
type: "column",
stack: true,
tooltip: {
visible: true,
template: "#: category# : #: value#"
}
},
categoryAxis: {
field: "Unit",
labels: {
rotation: -90
}
},
series: [
{
stack: "M4",
name: 'a',
field: "M4_IN",
},
{
stack: "M4",
name: 'b',
field: "M4_OUT",
},
],
});
感谢您的帮助!