Closed ionicview closed 5 years ago
我创建了Ionic4的一个新工程,似乎图形无法显示。 又创建了一个Ionic3的新工程,图形正常显示了。 Ionic4是无法使用ngx-echarts吗?
我看了下,应该是Ionic4的布局方式导致echarts获取到的宽度为0,因此没有显示。 你可以设置下[autoResize]="true",让echarts自动调整,还有也可以通过设置initOpts中的宽度
[autoResize]="true"
initOpts
非常感谢,好用了。
我创建了Ionic4的一个新工程,似乎图形无法显示。 又创建了一个Ionic3的新工程,图形正常显示了。 Ionic4是无法使用ngx-echarts吗?