Element draws an svg singraph using d3.js