如何添加Angular 2中的融合图表的许可证密钥2
如Fusion Charts文档中所述,它不适用于Angular。如何为角度项目实施此功能?
fusionCharts.options.license.license({{ 钥匙: '', Credit Label:false, });
As explained here in fusion charts documentation, it doesn't work for angular. How can I implement this for the angular projects?
FusionCharts.options.license({
key: '',
creditLabel: false,
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
中使用以下代码
请在您的app.module.ts fusionCharts.options ['license'] ({{
钥匙: '',
Credit Label:false,
});
NB:如果发生错误,请检查您的tsconfig.json,并删除严格:true选项。
谢谢
Please use the below code into your app.module.ts
FusionCharts.options['license']({
key: '',
creditLabel: false,
});
NB:If Still error occurs the please check your tsconfig.json and trun off the strict : true option.
Thanks
您可以尝试使用以下步骤使用FusionCharts的许可版本:
在您的项目root或其他地方创建一个名为FusionCharts的文件夹,并将FusionCharts许可版本的库模块文件复制到该文件夹中。
。
安装Angular2-FusionCharts包装器:
NPM安装Angular2-FusionCharts-Save
安装Angular2-FusionCharts之后,将其导入到Angular AppModule中,如下所示:
一旦导入库后,您可以在Angular Application中使用此组件:
在Angular Apponponement中 : :
现在,您可以在app.component.html模板中使用组件:
检查此文档 - “ nofollow noreferrer”> https://www.fusioncharts.com/dev/upgrading/license-activation
You can try with the below steps to use your licensed version of FusionCharts:
Create a folder named fusioncharts in your project root or elsewhere and copy the library module files of your licensed version of FusionCharts into that folder.
Install the angular2-fusioncharts wrapper:
npm install angular2-fusioncharts --save
After installing angular2-fusioncharts, import it in your Angular AppModule as follows:
Once the library is imported, you can use this component in your Angular application:
In your Angular AppComponent:
Now, You can use component in your app.component.html template:
Check this document - https://www.fusioncharts.com/dev/upgrading/license-activation