ng2-chart 在 IE 上失败
ng2-chart fails on IE
从 ng2-charts
导入 ChartsModule
后
import { ChartsModule } from 'ng2-charts';
imports: [
ChartsModule
]
应用程序在 IE 上失败 - 字符无效
和 link 在 throw new Error('getColors - Unsupported chart type ${chartType}');
注意:应用程序包含 IE 的所有 polyfill
它帮助我拒绝 ng2-charts
并使用本地 chart.js
库。由于 ng2-charts
在下面使用 chart.js
并且 chart.js
具有所有需要的功能。我对包含的所有 polyfill 都有同样的问题。
从 ng2-charts
ChartsModule
后
import { ChartsModule } from 'ng2-charts';
imports: [
ChartsModule
]
应用程序在 IE 上失败 - 字符无效
和 link 在 throw new Error('getColors - Unsupported chart type ${chartType}');
注意:应用程序包含 IE 的所有 polyfill
它帮助我拒绝 ng2-charts
并使用本地 chart.js
库。由于 ng2-charts
在下面使用 chart.js
并且 chart.js
具有所有需要的功能。我对包含的所有 polyfill 都有同样的问题。