data in javascript of d3 is available