implement cursorable in d3