Image_Graph
[ class tree: Image_Graph ] [ index: Image_Graph ] [ all elements ]

Class: Image_Graph_Dataset

Source Location: /Image_Graph-0.8.0/Graph/Dataset.php

Class Overview


Data set used to represent a data collection to plot in a chart


Author(s):

Version:

  • Release: 0.8.0

Copyright:

  • 2003-2009 The PHP Group

Methods


Child classes:

Image_Graph_Dataset_Trivial
Trivial data set, simply add points (x, y) 1 by 1
Image_Graph_Dataset_VectorFunction
Vector Function data set.
Image_Graph_Dataset_Function
Function data set, points are generated by calling an external function.

Inherited Variables

Inherited Methods


Class Details

[line 47]
Data set used to represent a data collection to plot in a chart


[ Top ]


Method Detail

Image_Graph_Dataset (Constructor)   [line 102]

Image_Graph_Dataset Image_Graph_Dataset( )

Image_Graph_Dataset [Constructor]

[ Top ]

addPoint   [line 139]

void addPoint( int $x, [int $y = false], [var $ID = false])

Add a point to the dataset

$ID can contain either the ID of the point, i.e. 'DK', 123, 'George', etc. or it can contain values used for creation of the HTML image map. This is achieved using is an an associated array with the following values:

'url' The URL to create the link to

'alt' [optional] The alt text on the link

'target' [optional] The target of the link

'htmltags' [optional] An associated array with html tags (tag as key), fx. 'onMouseOver' => 'history.go(-1);', 'id' => 'thelink'


Overridden in child classes as:

Image_Graph_Dataset_Trivial::addPoint()
Add a point to the dataset
Image_Graph_Dataset_Sequential::addPoint()
Add a point to the dataset
Image_Graph_Dataset_VectorFunction::addPoint()
Add a point to the dataset
Image_Graph_Dataset_Function::addPoint()
Add a point to the dataset.

Parameters:

int   $x   —  The X value to add
int   $y   —  The Y value to add, can be omited
var   $ID   —  The ID of the point

[ Top ]

count   [line 175]

int count( )

The number of values in the dataset
  • Return: The number of values in the dataset

Overridden in child classes as:

Image_Graph_Dataset_Trivial::count()
The number of values in the dataset

[ Top ]

first   [line 281]

array first( )

The first point
  • Return: The last point

Overridden in child classes as:

Image_Graph_Dataset_Trivial::first()
The first point

[ Top ]

last   [line 291]

array last( )

The last point
  • Return: The first point

Overridden in child classes as:

Image_Graph_Dataset_Trivial::last()
The last point

[ Top ]

maximumX   [line 251]

var maximumX( )

The maximum X value
  • Return: The maximum X value

Overridden in child classes as:

Image_Graph_Dataset_Sequential::maximumX()
The maximum X value

[ Top ]

maximumY   [line 271]

var maximumY( )

The maximum Y value
  • Return: The maximum Y value

[ Top ]

minimumX   [line 241]

var minimumX( )

The minimum X value
  • Return: The minimum X value

Overridden in child classes as:

Image_Graph_Dataset_Sequential::minimumX()
The minimum X value

[ Top ]

minimumY   [line 261]

var minimumY( )

The minimum Y value
  • Return: The minimum Y value

[ Top ]

setName   [line 113]

void setName( string $name)

Sets the name of the data set, used for legending

Parameters:

string   $name   —  The name of the dataset

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.