[ubuntu-za] Graphs on website

Charl Wentzel charl.wentzel at vodamail.co.za
Tue Jul 21 10:02:40 BST 2009

Just some feedback for those that might be interested...

I found an excellent open source tool for doing charts on a web server:
Flot --> http://code.google.com/p/flot/

It is javascript based and works on FireFox, Opera, Sahara, etc.  (It
comes with no surprise that there is "special" catering for Internet
Exploder!)  And it is very easy to use.

It solves four of my major problems:

- Works as-is on both my Ubuntu Desktop and the embedded pc
So development and target environment works exactly the same

- No connection to the Internet is required
All files are hosted by the server/device and will work on a stand-alone

- No additional server-side libraries are required
The additional libraries are javascript which is simply "hosted" to the
client.  In other words... I don't need to cross-compile anything for
the embedded platform.  

- Requires no additional processing
The client browser does all the graphics.  The embedded devices are
typically 500Mhz and can't spend too much time creating graphics.

The downside is that slow clients with very old browsers might be slow
or might not show the graphs.


On Fri, 2009-05-29 at 11:03 +0200, Martin Wright wrote:
> Try JS Chart http://www.jscharts.com/
> Martin
> -----Original Message-----
> From: ubuntu-za-bounces at lists.ubuntu.com
> [mailto:ubuntu-za-bounces at lists.ubuntu.com] On Behalf Of Charl Wentzel
> Sent: Thursday, May 28, 2009 5:40 PM
> To: Ubuntu SA Local Community
> Subject: [ubuntu-za] Graphs on website
> Hi Guys
> I have a PHP website currently showing data in a table based on a MySQL
> MySQL (obviously running on a LAMP server).  I would now like to show a
> graph in stead, e.g. line chart, bar graph, pie chard, etc.
> Is there a simple application that would dymanically create one of these
> charts (in say a gif or jpg format) from a MySQL query that I can call
> from PHP?  
> I know about the PHP GD2 module that allows you to dynamically draw
> lines and stuff (like a Paintbrush applications), but that would be
> awfully complicated to generate charts with.
> Charl

More information about the ubuntu-za mailing list