Libchart

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

< BarChart > Protocol Reference

List of all members.

Protected Member Functions

 BarChart ($width, $height)
 computeAxis ()
 createImage ()
 isEmptyDataSet ($minNumberOfPoint)
 checkDataModel ()
 getDataAsSerieList ()
 getFirstSerieOfList ()

Protected Attributes

 $bound
 $axis
 $hasSeveralSerie

Detailed Description

Base abstract class for rendering both horizontal and vertical bar charts.

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


Member Function Documentation

BarChart-p::BarChart ( $  width,
$  height 
) [protected]

Creates a new bar chart.

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

BarChart-p::computeAxis (  )  [protected]

Compute the axis.

BarChart-p::createImage (  )  [protected]

Create the image.

BarChart-p::isEmptyDataSet ( $  minNumberOfPoint  )  [protected]

Returns true if the data set has some data.

Parameters:
minNumberOfPoint Minimum number of points (1 for bars, 2 for lines).
Returns:
true if data set empty

BarChart-p::checkDataModel (  )  [protected]

Checks the data model before rendering the graph.

BarChart-p::getDataAsSerieList (  )  [protected]

Return the data as a series list (for consistency).

Returns:
List of series

BarChart-p::getFirstSerieOfList (  )  [protected]

Return the first serie of the list, or the dataSet itself if there is no serie.

Returns:
XYDataSet


The documentation for this protocol was generated from the following file:
  • BarChart.php

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