example4 with d3.js