'Error: Cannot read properties of undefined (reading 'nativeElement'), and barchart did not show
I want to do the bar chart visualization in angular, when the child component gets data from the component, it shows this error, and the bar chart did not show.
Here is my project, someone can help? Thanks a lot. enter image description here
Solution 1:[1]
d3 module is missing from your package, you should install it .
npm install d3 && npm install @types/d3 --save-dev
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | john triantafillakis |
