Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
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 scal 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
H999 - Additional PHP Material
H112 - PHP - Further Web Page and Network Handling
H312 - PHP - Tips and Techniques
G902 - Well House Consultants - Web site techniques, utility and visibility

Back to
Dilton Marsh
Previous and next
or
Horse's mouth home
Forward to
A week is a long time in the life of a conference centre

Some other Articles
Express service
Weekend Visitors
Spring Pictures
A week is a long time in the life of a conference centre
Drawing dynamic graphs in PHP
Dilton Marsh
A Reference
Mushroom Curry and Perl Courses
Wondering where I have been
Passenger flows
1637 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 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).

© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho