|
Drawing dynamic graphs in PHP
The web is all about presenting data, and a picture paints a thousand words - so what's better than a graph to quickly and easily present figures and trend to yor web site visitor?
There's a great deal of software available to produce static diagrams and graphs as image files - .gif or .jpg are the most common formats - and there's a lot of professional / marketing sites which that use them. But what if you want your diagrams to change as the data held on your server changes?
In PHP, the Gd package allows you to generate images on the fly - and it works very well. But those are images ("graphics") based on the pixel addressing of the image and you've still got a lot of conversion, clipping and presentation to do if you want a graph of (say) ticket sales from 2000 to 2007 along the X axis, with a vertical scale from 0 to 50,000 on Y ... when the image is 600 x 450.
That's where additional graphic packages such as Phplot come in to play ... you can specify just the data sets, a few key parameters, and the titles and the work is done for you.
There's a PHPlot example on our website, and you'll find links from that page to the PHPlot download. (written 2007-03-09 19:27:12)
Associated topics are indexed under G902 - Well House Consultants - Web site techniques, utility and visibilityH309 - PHP - Maps, Graphics and GeographicsH999 - Additional PHP Material
Some other Articles
Express serviceWeekend VisitorsSpring PicturesA week is a long time in the life of a conference centreDrawing dynamic graphs in PHPDilton MarshA ReferenceMushroom Curry and Perl CoursesWondering where I have beenPassenger flows
|
2259 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46 at 50 posts per page
This is a page archived from The Horse's Mouth at
http://www.wellho.net/horse/ -
the diary and writings of Graham Ellis.
Every attempt was made to provide current information at the time the
page was written, but things do move forward in our business - new software
releases, price changes, new techniques. Please check back via
our main site for current courses,
prices, versions, etc - any mention of a price in "The Horse's Mouth"
cannot be taken as an offer to supply at that price.
Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).
|
|