Skip to content

Add @fluentui/react-charts ResponsiveContainer#30

Open
rbertels wants to merge 1 commit into
sydsutton:masterfrom
rbertels:charts_responsivecontainer
Open

Add @fluentui/react-charts ResponsiveContainer#30
rbertels wants to merge 1 commit into
sydsutton:masterfrom
rbertels:charts_responsivecontainer

Conversation

@rbertels

Copy link
Copy Markdown
Contributor

Hey Andrew,

After dabbling with the charts I've found that there is a ResponsiveContainer inside the official package.
It is built to wrap a chart element and handle resize events.
This pull requests adds this container and its props.

Attached is a GIF of the testbed showing a chart that is wrapped (above) vs a chart that is not (below).
As you can see the unwrapped chart needs a 'hover' event to trigger a redraw.

chart_wrapper

Happy to hear your thoughts!

PS. I've been running the 4.0.0-prerelease-003 for a while now I think it may be ready for the real world :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant