<YAxis
orientation="right"
// YAxis={{
// tickFormatter: (Estimated_minutes) =>
// parseFloat(Estimated_minutes).toFixed(0),
// }}
formatter={formatYAxis}
type="number"
yAxisId="2"
dataKey="Estimated_minutes"
fill="#000000"
/>
How to format the integer value in Yaxis? I have tried toFixed but it's still giving me the error. Is there any other way I can implement this?