2
votes

I started a new project today using Nathan Walker advanced seed for angular 2 and nativescript. I need to use ng2-charts or any other charts library. Any advice would be appreciated.

2

2 Answers

0
votes

Generally, It's not possible because nativescript use the native view and native api, and ng2-chart use an webview. Of course, nativescript have the webview api https://docs.nativescript.org/cookbook/ui/web-view , but I think it's for rendering html (from raw or url) So, your solution is to find a native chart works with nativescript https://github.com/markosko/nativescript-charts or the official one (paid) http://docs.telerik.com/devtools/nativescript-ui/Controls/NativeScript/Chart/getting-started

0
votes

Official NativeScript UI components are not paid anymore and are the first choice of components when meet your needs.

It also has chars for Angular-Nativescript combo here

Easy way to play with these UI components before you start coding for it is the demo app available here.