Graphs

Over the years I have used a number of packages to generate graphs, simple enough graphs such as line, bar, pie etc. I have used some open source ones PhpMyGraph(offline at the moment) and LibChart (Reading from a MySql and using PHP to generated the graphs), before using Google Charts in recent years, using JSON, PHP and MySql. Also Chart.js (www.chartjs.org). I hope to put up some of my observations, and how-tos regarding my adventures with them here.

LibChart

I like these for Pie Charts (2 and 3 D), Multiplie Line Charts and Bar Charts. I dont like the watermarked/LibChart title, and I would like to be able to title the columns but it is a powerful graph generator. Not that much of an issue on most servers now but you needed PHP with GD Version: 2.0 or higher FreeType Version: 2.0 or higher.

Examples

(be patient)
  • Line Chart
  • Multiple Line Chart
  • Pie Chart 2D and 3D
  • Vertical Bar Chart
  • Horiontal Bar Chart
  • Multiple Bar Chart
PhpMyGraph

I always like these graphs for simplicity, negatives are there is no Pie Chart, and the randomise colour for Bar Charts contradict what you would expect in some charts, probably needs some customising. (if the library files are not available on the site, I will put them on my github.)

Examples

(be patient)
  • Line Chart
  • Multiple Line Chart
  • Bar Chart (Horizontal and Vertical
  • Bar and Line Combo Chart (Horizontal and Vertical
  • PhpMyGraph Version 4.0 and 5.0

Google Charts

A tremendous resource and options in graphs to produce. Plenty of documentation on line. One thing I like is the dynamic charts you can create and read information from a google spreadsheet. I suppose I am not a great fan of JavaScript for which it is over dependent.

Chart.jsi

Another excellent graph generator for Data visualisation. Fairly straightfoward to use the Content Delivery Network version of the library(chart.js) and format the javascript to generate a graph.