Create custom data charting tools using Perl and GD

Create professional-looking charts for data visualization using Perl and GD. Move beyond standard pie charts to incorporate annotations, indicators, and layering for enhanced informational delivery.

More than just another "pie-graphs-with-GD" tutorial, this article describes techniques you can use to create new levels of usefulness in your dynamically generated charts. Cook up some automatically generated graphs for your organizational meetings or live enterprise directory data. Annotate the charts with readable text that delivers more information than the standard pie chart.

Perl and the GD modules have been used together for many years to create useful dynamic charts and graphics for Web sites and presentations. This article shows how to use these tools to create professional-looking, focused, and highly informative charts in near real time for your organizational needs.

Using a modified version of the GD::Pie.pm module, we will build custom charts, then use the acquired data points to create indicators and text annotations. Additionally, we show a method of layering geometric primitives and using transparent pass-throughs to create separate channels of information inside the charts.

The techniques described allow you to create complex charts and use the GD tools as starting points for creating your own programs.


Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <quote> <img>
  • Lines and paragraphs break automatically.

More information about formatting options