Skip to main content
The Customized component is deprecated and will be removed in Recharts 4.0.Starting from Recharts 3.x, all charts can render arbitrary elements anywhere. Just render your components directly without the Customized wrapper.
The Customized component was necessary to render custom elements in Recharts 2.x. It is no longer needed in Recharts 3.x.

Legacy usage

Props

ReactElement | FunctionComponent
required
The custom component to render.Can be a React element or function component.

Migration

Simply render your components directly:
Your custom components now have direct access to the chart context and can be rendered anywhere in the chart tree.