score:0

Accepted answer

Turns out I needed to use arrow function instead of anonymous function like this:

 .force("link", d3.forceLink().id((d: any) => d.id).strength(0.015))

this solved my problem.


Related Query

More Query from same tag