Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chart Tools API in Phonegap application for Android?

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 proper 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

like image 399
Norberto Avatar asked Apr 18 '26 01:04

Norberto


1 Answers

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

like image 138
Norberto Avatar answered Apr 24 '26 11:04

Norberto



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!