Open jameshadfield opened 5 years ago
Can't seem to find this lib. I imagine it's not this one https://github.com/YanYuanFE/react-ruler?
my mistake. https://github.com/souporserious/react-measure
@jameshadfield how were you planning on using this?
My idea would be:
flex-grow
to said two containers so that they grow based on window sizereact-measure
Does this sound fair to you?
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
Currently we hardcode the chart dimensions and use an overly simple watcher for window resizes. I've not used ~react-ruler~
react-measure
but have heard good things about it and it seems appropriate here.