i need a onResize callback prop in ResponsiveContainer to get informed, if the Size of the component changes.
With this feature i get the ability to adjust my Charts.
Like to center the title or adjust x-axis.
export interface Props {
...
onResize?: (size: { containerWidth: number; containerHeight: number }) => void;
}
i need a onResize callback prop in ResponsiveContainer to get informed, if the Size of the component changes.
With this feature i get the ability to adjust my Charts.
Like to center the title or adjust x-axis.
export interface Props {...onResize?: (size: { containerWidth: number; containerHeight: number }) => void;}