Hi!
I'am trying to customise my chart and fill background in this way:
<CartesianGrid strokeDasharray='5 5' fill='red' />
This code doesn't work for me, background still transparent. Any ideas?
@sdoomz CartesianGrid only render some lines now. So the props fill can the grid of CartesianGrid.
And would you like to fill all the grid by red?
@xile611 I want to change background color of AreaChart and I thought that CartesianGrid is good way to do this.
.recharts-cartesian-grid is direct area what I want to fill with new background color.
OK! It'll be a feature in the next version.
Most helpful comment
OK! It'll be a feature in the next version.