Why do you want to bother with using Microsoft Excel to make a new graph each week, when you can use CSS and PHP you can create attractive bar graphs, asks Terrill Dent. He provides detailed code samples to show how you can create bar, line, points, and 3D bar graphs. The first step is to create a simple list using PHP, with three parameters on each
- height: The height of that individual bar in pixels or em.
- left: The y-axis or horizontal offset for that bar group.
- class(optional): So we can style individual data sets.
Terry provides code to ensure that even if you do not have an apprpriate height value to display, you can scale the data relative to your desired graph height. After the list is printed, you can turn it into a bar graph. Terry displays the the minimum styles needed to complete the transformation, and also provides the code to create a fancy bar graph, a faux line graph, and a dotted graph.




