Graphing: dynamic 3D bar charts

In today's article on dynamic graphing with PHP, we convert the supplied script that plots a a line graph into one that plots a bar chart on the fly from dynamic data:



Then, we discover how to fill the bars with colour:


Finally, we give the bars a 3D perspective effect:


The start-up code is provided, so the tutorial is for Dreamweaver users with any level of PHP experience.

$2.79
- OR -

Overview

Table of Content:

  • Making a bar chart
  • Adding to the data class
  • Creating the barchart_viewer.php script
  • Drawing the bar chart
    • Filling the bar with color
  • Giving the bars a 3D look
    • Determining some new plot points
    • Allocating extra colors
    • Drawing in the top and sides

Allan Kent

Allan KentAllan comes from Cape Town, South Africa. He has been implicated in writing for several WROX, glasshaus, Wiley and Apress publications, generally in the 'cool stuff that PHP can do' sections.

You can catch up with him at his website http://www.mediafrenzy.co.za.

See All Postings From Allan Kent >>

Reviews

Be the first to write a review

You must me logged in to write a review.