Graphing libraries for WordPress [closed]

I had asked question like this long ago at WPTavern and it fizzled. Hope it fares better this time. 🙂

Drawing graphs can be done with multiple methods (generating image files, JS, Flash) and there are a lot of libraries available overall.

However there are some specific factors in context of WordPress:

  • it might be efficient to use lighter library with dependency on scripts bundled with WP (like jQuery);

  • it needs to be licensed under GPLv2 or compatible to fit in official repository (note that it has more harsh requirements than WP itself);

  • there are probably some specifics that make things easier/harder to use with WP techniques, like passing data to JavaScript with localization functions.

What libraries or other solutions had you used to build graphs in WordPress?

Please one thing per answer, so it is easier to discuss and vote on.

9 Answers
9

Google Chart API

Free service, that generates chart images (hosted and served by Google) from data in URL requests.

If you need something very specific and of fixed parameters it is easy to hardcode most of it and get away without any library (and licensing issues) at all.

Disadvantages:

  • not suitable for sensitive data (passed to and from Google over Internet);
  • not interactive.

Self-plug – I developed my own PHP wrapper for it, but it’s a bit stale at moment PHP class/WP plugin for Google Charts API.

Leave a Comment