graphpite
[ class tree: graphpite ] [ index: graphpite ] [ all elements ]
Prev Next
How to use GraPHPite

How to use GraPHPite

The GraPHPite Tutorial

Table of Contents

How to use GraPHPite

Before we start getting concrete by code examples here is a little explanation of how GraPHPite works.

The "layer" mode

GraPHPite works by using layers. That is every element you specify in GraPHPite is a layer on another layer (ultimately the GraPHP is not on another layer but holds the canvas the other layers are drawn on.


  1. ...
  2. $PlotArea->addPlot(new LineChart(), "Chart");
  3. ...

  1. $Graph = new GraPHP(800, 600);
  2. $Graph->add(new PlotArea(), "PlotArea");
  3. $PlotArea->addPlot(new LineChart(new RandomDataSet(10, 20, 100)), "Chart");
  4. $Graph->Done();

Prev   Next
Creating the Graph

Documentation generated on Fri, 12 Nov 2004 08:24:16 +0100 by phpDocumentor 1.3.0RC3