Libchart

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

LineChart Class Reference

List of all members.

Public Member Functions

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

Protected Member Functions

 computeLayout ()
 printAxis ()
 printLine ()
 printCaption ()

Detailed Description

Line chart.

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


Member Function Documentation

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

Creates a new line chart. Line charts allow for XYDataSet and XYSeriesDataSet in order to plot several lines.

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

LineChart::computeLayout (  )  [protected]

Computes the layout.

LineChart::printAxis (  )  [protected]

Print the axis.

LineChart::printLine (  )  [protected]

Print the lines.

LineChart::printCaption (  )  [protected]

Renders the caption.

LineChart::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:
  • LineChart.php

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