jdorn / php-reports

A PHP framework for displaying reports from any data source, including SQL and MongoDB
http://jdorn.github.com/php-reports
GNU Lesser General Public License v3.0
478 stars 235 forks source link

Alternative Charts like Google Api #143

Open cpavon89 opened 10 years ago

cpavon89 commented 10 years ago

Someone changed the type of chart of google api to AmCharts, flocharts or Highcharts graphics?

I have a query generated in json format in my php report, but since I will use my system on a pc that will not be connected to internet, need to get rid of google and implement another who may no internet connection.

I read in one of the topics that one of the priorities of @jdorn is to generate offline charts, but I hope someone give me hand on what I need urgently. thanks

jdorn commented 10 years ago

What type of charts do you need to support? If you're just doing simple bar or line charts, it shouldn't be that bad to swap in another library. The hard part is if you want to support all the custom Google Charts options or charts like AnnotatedTimeline.

Copy the chart templates to template/local

mkdir templates/local/html
cp templates/default/html/chart_page.twig templates/local/html/chart_page.twig
cp templates/default/html/chart_report.twig templates/local/html/chart_report.twig

and modify them as needed.

cpavon89 commented 10 years ago

Hi @jdorn: I want to use other chart's like google.. I found several charts like google api, and they work offline mode. My purpose is create a graphics in the server without internet connections. Also, watching the forum, i saw that you wanna do the google offline mode. Anyway, that's what I need to do. My intention is to replace google api with AmCharts.