The recharts library draws the Y axis incorrectly
enter image description here
code
<YAxis
type="number"
dataKey="response"
name="Response"
tickFormatter={(v) => String(safeRound(v, 2))}
interval={0}
domain={["0", 'auto']}
/>
I set the minimum value to 0. But it still takes -1500 from somewhere. Even though there are no such numbers in the data I’m passing in
I set the minimum domain=[0, ‘auto’]
New contributor
Dan Florko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.