我正在寻找在 recharts 反应库中自定义 Y 轴的方法?

I am searching for way to customize Y-Axis in recharts react library?

Yaxis将有自定义标签而不是数字,它分为3个阶段,每个阶段将有3个级别1s、2s、3s。请建议如何使用 recharts 库自定义 YAxis?

3秒 2秒 1秒 C阶段 3秒 2秒 1秒 B阶段 3秒 2秒 1秒 A阶段

你在找这样的东西吗:

<YAxis
     tickFormatter={(tick) => {
     return `${tick} and some other label`;
     }}
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"></script>