语言

Menu
Sites
Language
Can JS lib can be use in Native App ?

Hi ,

I want to build an application which need to show statstical data in form of Charts. As i am not able to find any suitable lib/ way/api  by which I can draw chart like PIE chart,Bar chart , Line chart. In web application we can use JS libs which can draw charts according to my requirement.

Here is an example using chartJS lib.

https://developer.tizen.org/community/tip-tech/create-animated-charts-chart.js

which is devlope in Web Application.

Can I use this JS lib for developing the same in Native App ? I think this is not possible directly. If there is any way please let me know. Or is there any Library which can be use for developing same requirement  in Native App.

Thanks

 

编辑者为: Raghvendra Singh 23 7月, 2015

响应

3 回复
Alex Dem

Hi,
fyi: I know only one way for interaction of C & javascript: Hybrid app (native service + UI web app) which communicate with each other via Message port. But look that such way is not applicable, because of your UI App should be Native.
Alexey.

colin Rao

Hi,

Possible you can try to find a chart lib implement by c/c++ for tizen native app. Such as cairo, tizen native support the cairo.

pius lee

Yes, chart.js can be used in webview.

You can just add webview to your application and run html with javascript on webview.

API

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__WEBVIEW.html

Tutorial

https://developer.tizen.org/development/tutorials/native-application/web-0