【问题标题】:Manually re-render FusionChart in Angular在 Angular 中手动重新渲染 FusionChart
【发布时间】:2021-04-04 06:02:25
【问题描述】:

我正在使用 Angular 8 的 FusionCharts Suite XT v3.16.0。

我正在尝试让 FusionChart 图表在收到新数据时重新呈现。

  1. 我为模板中的 fusioncharts 元素指定了“#fc”的 id。

  2. 我使用@ViewChild() 来获取对元素的引用

@ViewChild('fc', { static: false }) fc: any;

  1. 然后我在引用上调用了 render() 方法。

    this.fc.render();

  2. 尽管编译器识别出引用上存在 render() 方法。

在运行时,发生错误,说明没有 render() 方法。

ERROR TypeError: this.fc.render is not a function

【问题讨论】:

    标签: angular fusioncharts


    【解决方案1】:

    我为提供的数据使用了错误的图表“类型”。

    【讨论】:

      猜你喜欢
      • 2018-10-27
      • 2015-11-23
      • 2015-10-19
      • 2016-12-14
      • 2021-12-17
      • 2019-06-17
      • 1970-01-01
      • 2017-06-25
      • 2020-09-19
      相关资源
      最近更新 更多