How to generate graphs and charts from mysql datab

2019-01-31 04:21发布

How can I generate graphs and charts from a mysql database using php?

I'm trying to use "chart director" but I can't even install it properly, because I'm using php version 5.3, and it's using a deprecated function dl.

Do you know of any alternatives that:

  • fully support php 5.3
  • are easy to use for beginners
  • can access the mysql database and chart its data

4条回答
Animai°情兽
2楼-- · 2019-01-31 04:28

I use highcharts. They are very interactive (and very fancy I might add). You do have to get a little creative to access data from MySQL database, but if you have a general understanding of JavaScript and PHP, you should have no problems.

查看更多
男人必须洒脱
3楼-- · 2019-01-31 04:33

I use Google Chart Tools https://developers.google.com/chart/ It's well documented and the charts look great. Being javascript, you can feed it json data via ajax.

查看更多
贪生不怕死
4楼-- · 2019-01-31 04:36
迷人小祖宗
5楼-- · 2019-01-31 04:50

http://pchart.sourceforge.net/ looks very good and it's free.

查看更多
登录 后发表回答