title: typescript: Attr() function of d3 objects not accepting object / function
body: <p>I am trying to create a d3 chart using typescript in angular2 application.</p>
  
  <p>Typescript compiler not allowing to pass objects/Array to function attr() on d3 objects, allowing only string. </p>
  
  <p>I want to pass an object / Array.</p>