Line graph
Informations
Author: Anthony Master
License: FPDF
Description
This script allows to create line-based charts. The method to use is the following:
LineGraph(float w, float h, array data [, string options [, array colors [, int maxVal [, int nbDiv]]]])
w: graph width
h: graph height
data: multidimensional array containing series of data
options: string containing display options
colors: multidimensional array containing line colors; if null
or not given, some random colors are used
maxVal: maximum ordinate; if 0
or not given, it is automatically computed
nbDiv: number of vertical divisions (default value: 4
)