错误:无法读取未定义的属性(Reading' atnationlement'),而Barchart没有显示

发布于 2025-01-29 07:08:39 字数 431 浏览 2 评论 0原文

我想以角度进行条形图可视化,当子组件从组件中获取数据时,它显示了此错误,并且条形图未显示。

这是我的项目,有人可以帮忙吗?多谢。 enter image Description

-ivy-2uzmtk?file = src/app/components/bar-chart/bar-chart.component.ts“ rel =“ nofollow noreferrer”> https://stackblitz.com/edit/edit/angular-ivar-ivar-ivy-ivy-ivy-2uzmtk?file= src/app/组件/bar-chart/bar-chart.component.ts

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

https://stackblitz.com/edit/angular-ivy-2uzmtk?file=src/app/components/bar-chart/bar-chart.component.ts

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

她如夕阳 2025-02-05 07:08:39

包装中缺少D3模块,您应该安装它。

npm install d3 && npm install @types/d3 --save-dev

d3 module is missing from your package, you should install it .

npm install d3 && npm install @types/d3 --save-dev
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文