score:1

Accepted answer

you're logging in two completely different contexts -- first in the key function of the data join and then in the enter selection. the first log will be called at least once per element in the data array as the purpose of that function is to return a key that tells d3 how to match data and dom elements. the second will be called once for every new data element (i.e. it couldn't be matched to an existing dom element).

if not all of the elements that you expect show up in the enter selection, you need to adjust your key function -- in particular, i would use tweet.tid as the key in your case.


Related Query