epochjs / epoch

A general purpose, real-time visualization library.
http://epochjs.github.io/epoch
MIT License
4.97k stars 278 forks source link

Handle Container Resize #19

Open rsandor opened 10 years ago

rsandor commented 10 years ago

Currently we assume that a container for a plot will remain absolute and fixed. Modern CSS frameworks such as bootstrap provide adaptive styles that will resize element display widths as the browser window changes size. Look into handling these resize events intelligently and resizing plots when they occur.

claaslange commented 10 years ago

Hi,

are there any news regarding this issue?

rsandor commented 10 years ago

Haven't gotten around to looking too deeply into the issue. If you absolutely need it, I can see about getting into the next release :)

RyanNielson commented 10 years ago

I could definitely use something like this right now. I have a highly responsive site, and am loving Epoch so far. The lack of responsiveness is causing some issues though.

rsandor commented 10 years ago

@RyanNielson - Some of the work I am doing on chart options now should make this possible, just need a good way to querying whether or not a container div has changed size.

RyanNielson commented 10 years ago

@rsandor Good to hear, thanks! Currently I'm just hooking into window resize and recreating the graph, but that's not the best solution for long term.

rsandor commented 10 years ago

Indeed, I think it should be a lot easier when you can simply reset the dimensions via the .option method. Working as fast as I can to get this in :)