News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mikko Koppanen's Blog:
Creating a simple line graph
October 15, 2007 @ 12:55:31

Mikko Koppanen has another post to his blog today that once again shows the combination of PHP and Imagick to create/output an image - this time, it's a simple line graph.

This example demonstrates how Imagick can be used to create graphs. This graphing class itself is mostly a demonstrative example. There are also some hardcoded values in the graph (like the steps in the values on the left hand side) but it should not be hard to refine it into a more elegant graphing solution.

The graph is made using the Imagick drawing functions that extends the standard "draw" class. The code produces a graph with a (straight) line drawn from point to point - code and output examples are both included.

1 comment voice your opinion now!
imagick image output graph line tutorial imagick image output graph line tutorial


blog comments powered by Disqus

Similar Posts

BobCares.com: Deploying libcURL with PHP

Zend Developer Zone: Accessing DB2 Data Inside of i5/OS

Lineke Kerckhoffs-Willems' Blog: How to use the Symfony2 SonataAdminBundle

CodeForest.net: Multilanguage support in Zend Framework

PHPBuilder.com: Meet PRADO, the Component-based PHP Development Framework


Community Events





Don't see your event here?
Let us know!


interview opinion language bugfix list introduction framework tips library release series laravel community voicesoftheelephpant symfony podcast package api install deployment

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework