Use the correct access when computing bounded y-values for constrained panning.
authorRobert Konigsberg <konigsberg@gmail.com>
Sun, 24 Feb 2013 07:08:43 +0000 (02:08 -0500)
committerRobert Konigsberg <konigsberg@gmail.com>
Sun, 24 Feb 2013 07:08:43 +0000 (02:08 -0500)
commitf93af875f34cdc7ed523f2545103ef6d6f4a1891
tree5a582339c059f888a8a6bcbdada0b41e04b29af9
parent745e9e52bf0c9fe1eec18ad64d76787419b033f4
Use the correct access when computing bounded y-values for constrained panning.

Dygraphs was computing the second y-axis using extreme range of the first y-axis. This fixes bug 294, setting panEdgeFraction to non-zero breaks secondary y-axis label computation.

Also add a minor optimization by moving a computation outside the axis loop.
dygraph-interaction-model.js