When I use the value 0, everything ticks, and the entire graph collapses into one point.
import React from "react";
import { Gauge as GaugeAnt, GaugeConfig } from "@ant-design/plots";
export const Gauge = () => {
const config: GaugeConfig = {
data: {
percent: 0
},
axis: {
y: {
tickMethod: () => [0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1]
}
},
style: {
textContent: () => "value: 0"
}
};
return <GaugeAnt {...config} />;
};
Describe the bug / 问题描述
When I use the value 0, everything ticks, and the entire graph collapses into one point.
Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
Version / 版本
Please select / 请选择
OS / 操作系统
Browser / 浏览器