Open peterdudfield opened 7 months ago
One way to do this is with padding={{ top: 20 }}
.
If we use <YAxis type="number" domain={[0, 20000]}/>
I think we will always run into issues for different data at different order of magnitudes.
@braddf I can make a PR, but wanted to get your opinion on domain
or padding
or other things in https://recharts.org/en-US/api/YAxis
@peterdudfield just looking at this now, my first impression is that padding is just the gap and I don't think it looks as nice
Yea I know what you mean. I thought it would be an empty space of padding, but it looks like its padding on the Yaxis, so its maybe a bit like a buffer ontop of the maximum value.
its this bit, above 4000
Currently the solar generation was very near 4000, and the graph look a bit close to the top. We could adjust the yaxis to something a bit
Here sets out a few examples of how to do it
https://stackoverflow.com/questions/50078787/recharts-set-y-axis-range