天天看點

antv f2 橫坐标改變排列角度旋轉

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

name 是橫坐标名稱, 你需要根據資料自行更改。

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

這裡的name 應該改為 cityName