天天看点

antv f2 横坐标改变排列角度旋转

chart.axis("name", {
    label: {
        rotate: Math.PI / 3,
        textAlign: "start",
        textBaseline: "middle"
    }
});
           

name 是横坐标名称, 你需要根据数据自行更改。

例如 chart.position("cityName*confirmedCount")

这里的name 应该改为 cityName