Change DygraphLayout so it calculates the plot area when its requested
authorAdam Vartanian <flooey@gmail.com>
Fri, 16 Sep 2011 23:58:10 +0000 (19:58 -0400)
committerAdam Vartanian <flooey@gmail.com>
Fri, 16 Sep 2011 23:58:10 +0000 (19:58 -0400)
commit70be5ed17a59b006aa1ee34cec86c1623dd2bd61
treecdf2895ec192cc622c80f84c2b42b38e3e6e41a5
parent0987402460d9d364626087efc266dc665f098caa
Change DygraphLayout so it calculates the plot area when its requested
rather than at construction.  The layout is constructed before axis
information has been parsed, so it always assumes there's only one axis
and never learns otherwise.

Update test to show a border around the div bounding box.  Prior to the
fix, the second axis would clearly extend beyond the box.
dygraph-canvas.js
dygraph-layout.js
dygraph-range-selector.js
tests/two-axes.html