You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
Currently we hardcode the chart dimensions and use an overly simple watcher for window resizes. I've not used react-rulerreact-measure but have heard good things about it and it seems appropriate here.
The text was updated successfully, but these errors were encountered:
we apply flex-grow to said two containers so that they grow based on window size
We have an "on window resize" event (probably gotta add some timeout so that it doesn't get triggered too many times too quickly) that checks the size of the container using react-measure
We would then have to trigger a component update, propagate the size to the chart, and redraw the chart (i.e update all the scales, etc).
The other option is to more simply, have pseudo media queries, and have different chart sizes based on the different window sizes, and pass these to the chart for re-rendering. This does not then require the use of react-measure, but we'd have to be listening to window resizes of course
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently we hardcode the chart dimensions and use an overly simple watcher for window resizes. I've not used
react-rulerreact-measure
but have heard good things about it and it seems appropriate here.The text was updated successfully, but these errors were encountered: