chart
.interval()
.position("号位*平均分")
//这里开始设置label
.label("平均分", (val) => {
return{
position: "middle",
offset: 0,
content: (originData) => {
return val + "分";
},
style: {
fill: "#001529",
},
}
})
//设置结束
.color("name")
.adjust([
{
type: "dodge",
marginRatio: 0,
},
]);