novus/nvd3 — pull request #457 by jgrund (2014-02-25 14:41:33+00:00)
Title: Fix: Legend. Make sure legend references most recent data.

If nvd3 is being used in a way where the same reference to data is not
kept, the legend can break.

The reason for this is event listeners on legend are only added on
enter; since click and dblclick reference the data from a closure, they
always reference the data value captured when the listeners were setup.

This patch does a lookup of data from series instead of referencing the
captured variable. By doing this, we always have the right data
reference.