antvis/G2

Boxplot can not set scale and axis #4355

pearmini posted onGitHub

箱线图

  • 版本:5.0.0-beta.1
  • 描述:无法设置比例尺和坐标轴

image

G2.render({
  type: "boxplot",
  paddingLeft: 60,
  data: {
    type: "fetch",
    value:
      "https://gw.alipayobjects.com/os/bmw-prod/1ecf85d2-8279-46a1-898d-d2e1814617f9.json"
  },
  encode: {
    x: "Continent",
    y: "GDP"
  },
  scale: {
    x: { type: "log" } // 无效
  },
  axis: {
    y: { labelFormatter: "~s" } // 无效
  }
})

Fund this Issue

$0.00
Funded

Pull requests