1 d3.keys = function(map) {
2 var keys = [];
3 for (var key in map) keys.push(key);
4 return keys;
5 };