ng2-chart doesn't display as expected even more the console doesn't show any error

邮差的信 提交于 2019-12-06 05:27:32

Recently i have faced a similar problem

As you can see in the picture if height of parent (base-chart element) is 0 then chart not be built

Try to add the following within your component annotation:

@Component({
  ...
  styles: [`
    .chart {
      display: block;
    }`
  ],

Plunker Example (v1.1.0)

Plunker Example (Current version)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!