开发者

Google Chart Tools API in Phonegap application for Android?

开发者 https://www.devze.com 2023-03-27 13:31 出处:网络
I´d like to add charts in my phonegap application. I have tested phonegap wiht Google chart image in wich you pass a fat url with the p开发者_如何学Pythonroper parameters and it returs a png image wi

I´d like to add charts in my phonegap application. I have tested phonegap wiht Google chart image in wich you pass a fat url with the p开发者_如何学Pythonroper parameters and it returs a png image with the chart and it woks fine.

Now I want to try with the google chart tools API because it offers more user interactivity. I have tested it in non-mobile web apps and it works, but when I try to use it in a phonegap project all I get is a black screen with this text: "Hello World, ChartsActivity!"

Does anyone have an example of how to integrate the google charts in a phonegap project?

Thanks in advance


I´ve found the answer to my problem.

I discovered that Android (I´m working with version 2.2) has not yet SVG display support enabled. So the Google chart tools API and the Visualization API in general can´t be used as it relies on SVG format. It´s a shame. I hope soon this will be fixed.

Here is a link to the issue tracker where comments on the subject are posted: link

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号