Recharts: Fill background for CartesianGrid component

Created on 11 Oct 2016  路  3Comments  路  Source: recharts/recharts

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?

Enhancement

Most helpful comment

OK! It'll be a feature in the next version.

All 3 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexliu-github picture alexliu-github  路  3Comments

YikaJ picture YikaJ  路  3Comments

Eric24 picture Eric24  路  3Comments

scottdickerson picture scottdickerson  路  3Comments

chin-idean picture chin-idean  路  3Comments