Skip to main content
The Cell component is deprecated and will be removed in Recharts 4.0.Please use the shape prop or content prop on the respective chart components to customize the rendering of chart elements instead of using Cell.See the migration guide for more information.
The Cell component was used to define colors and styles of individual chart elements in Recharts 2.x.

Legacy usage

Props

string
The fill color of the cell.
string
The stroke color of the cell.

Migration

Instead of using Cell, customize individual elements using the shape prop:
For more details, see the Cell migration guide.