antvis/G2
The issue has been closed
log scale 设置 domainMin 无效 #5185
pearmini posted onGitHub
Discussed in https://github.com/antvis/G2/discussions/5181
<div type='discussions-op-text'>
<sup>Originally posted by xyr550 June 9, 2023</sup>
代码
import { Chart } from "@antv/g2";
const chart = new Chart({ container: "container" });
chart.options({
type: "interval",
theme: "classic",
autoFit: true,
data: {
type: "fetch",
value:
"https://gw.alipayobjects.com/os/bmw-prod/fb9db6b7-23a5-4c23-bbef-c54a55fee580.csv",
},
encode: { x: "letter", y: "frequency" },
scale: { y: { type: "log" } },
axis: { y: { labelFormatter: ".0%" } },
});
chart.render();
</div>