Closed denisemauldin closed 7 years ago
This should be a very quick fix in your assignment/append. The append
signature is parameterized with a generic for the type of element being appended (child element type). See the JSDoc comments here.
So all you need to do is use append<SVGGElement>('g')
and it will work :smile:
Thanks! :)
Using D3Service from
d3-ng2-service
, I am doing the following:This throws a TypeScript error:
Is this an error in the D3Service Types or am I selecting/appending incorrectly?