add d3.js support