Skip to content

onResize for ResponsiveContainer #3326

Description

@maHu5

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs neededIssues that require documentationfeature requestIssues that are feature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions