Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
42
rated 0 times [  46] [ 4]  / answers: 1 / hits: 8502  / 4 Years ago, wed, november 11, 2020, 12:00:00

Trying to create network graph with Angular 9 and d3.js by following the example in https://medium.com/netscape/visualizing-data-with-angular-and-d3-209dde784aeb


Versions installed are
"d3": "^6.2.0", "@types/d3": "^6.1.0"


Getting the below error - Property 'event' does not exist on type


enter


Checked other answers in SO but they are all related to version mismatch and I just got the latest version from d3.


Help please.


More From » angular

 Answers
5

d3.event has been removed in version 6. See also the change log:



D3 now passes events directly to listeners, replacing the d3.event global and bringing D3 inline with vanilla JavaScript and most other frameworks



This answer addresses very well how to access the event object now.


[#2317] Saturday, November 7, 2020, 4 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hallie

Total Points: 503
Total Questions: 114
Total Answers: 103

Location: Iraq
Member since Fri, Jun 5, 2020
4 Years ago
hallie questions
;