我正在尝试在条形图的 x 轴上显示类别标签,但不知道如何执行此操作。这是HTML和JS:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div id="chart"></div>
<script src="js/thirdParty/jquery.js"></script>
<script src="js/thirdParty/kendo.all.min.js"></script>
<script>
$(function () {
$("#chart").kendoChart({
legend: {
visible: false
},
seriesDefaults: {
type: "column"
},
series: [{
name: "Category A",
data: [5]
}, {
name: "Category B",
data: [20]
}, {
name: "Category C",
data: [10]
}],
})
});
</script>
</body>
</html>
以下屏幕截图在我试图放置标签的红色框中突出显示:
任何帮助,将不胜感激。