我无法在 Kendo UI 甘特图中启用图例。我尝试在图表配置中添加图例选项,但似乎不起作用。
legend: {
enabled: true,
background: "green",
position: "bottom",
labels: {
font: "20px sans-serif",
color: "red"
}
}
我无法在 Kendo UI 甘特图中启用图例。我尝试在图表配置中添加图例选项,但似乎不起作用。
legend: {
enabled: true,
background: "green",
position: "bottom",
labels: {
font: "20px sans-serif",
color: "red"
}
}
您需要添加系列选项而不是视图以使其工作,如下面的代码所示,因为图例基于series.property.name
series: [{
type: "day",
selected: true,
visible:true
}],
然后您可以UI
根据您的要求进行调整
更新的小提琴在此处说明