sample for d3.js