Libchart

Simple PHP chart drawing library
  • Introduction
  • Download
  • Sample Code
  • Reference API
  • Links
  • Main Page
  • Classes
  • Directories
  • Class List
  • Class Members

HorizontalBarChart Class Reference

List of all members.

Public Member Functions

 HorizontalBarChart ($width=600, $height=250)
 render ($fileName=null)

Protected Member Functions

 computeLayout ()
 printAxis ()
 printBar ()
 printCaption ()

Detailed Description

Horizontal bar chart

Author:
Jean-Marc Trémeaux (jm.tremeaux at gmail.com)


Member Function Documentation

HorizontalBarChart::HorizontalBarChart ( $  width = 600,
$  height = 250 
)

Creates a new horizontal bar chart.

Parameters:
integer width of the image
integer height of the image

HorizontalBarChart::computeLayout (  )  [protected]

Computes the layout.

HorizontalBarChart::printAxis (  )  [protected]

Print the axis.

HorizontalBarChart::printBar (  )  [protected]

Print the bars.

HorizontalBarChart::printCaption (  )  [protected]

Renders the caption.

HorizontalBarChart::render ( $  fileName = null  ) 

Render the chart image.

Parameters:
string name of the file to render the image to (optional)


The documentation for this class was generated from the following file:
  • HorizontalBarChart.php

Site last modified August 13th, 2007 by Jean-Marc Trémeaux