Polymer web component draws an svg singraph using d3.js