Generate bar charts with only HTML and icon images
This class can be used to generate bar chart diagrams using only HTML with CSS styles and icons images. It does not use GD or any other dynamic graphics generation library.
It takes as parameters a set of values that define each bar of the chart, a set of labels for horizontal and vertical axis legends.
It generates a bar chart using HTML tables for displaying each group of bars and also list the sample values numbers.
Additionally, it may gather sample values to generate the charts from the results of a given SQL query.
The class produces pure HTML code to display a'la bar chart. It will work in any browser, with or without styleseet and it doesn't required GD library installed on your server at all.
MULTIBARCHART Class:
The class produces pure HTML code to display multiple a'la bar chart, based on BARCHART class.
This class can be used to generate project planning and progress report Gantt charts.
It takes all the definitions of the chart details from associative arrays that are passed to the class constructor function.
The class supports the definition of details of project task groups, initial planned work, adjusted plan, real work done, progress (percentage done), milestones (products/objectives) and legend.
Several chart presentation details can be configured like the colors, row height, block height of blocks, where the blocks begin, text fonts, locale date formatting, legend titles, graphic scale (day, week or month), transparency of bars, lines (dependency) and icon (milestones).
The chart graphics are rendered using the PHP GD library functions. The charts are by default outputted in the PNG format, but can be also gif ou jpeg and saved to a file.
This package contains four classes that generate images stacked bar chart in the PNG format.
There is no limit in terms of number chart elements that can be rendered in a chart.
The object oriented structure allows to add new classes that in conjunction with the main chart class may also draw pie, line or any other kind of charts.
Here follow a brief description of the different classes made available:
1. bar - draws a colored bar
2. serie - draw a set of values
3. grilla - draw the chart line grid with a given width and scale
4. chart - process parameter data and use the other classes to render the chart image
The GD library is required to generate the chart images.