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

Class: Image_Graph_Grid

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

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Element
      |
      --Image_Graph_Plotarea_Element
         |
         --Image_Graph_Grid

A grid displayed on the plotarea.


Author(s):

Version:

  • Release: 0.8.0

Copyright:

  • 2003-2009 The PHP Group

Methods


Child classes:

Image_Graph_Axis_Marker_Area
Display a grid
Image_Graph_Axis_Marker_Line
Display a grid
Image_Graph_Grid_Lines
Display a line grid on the plotarea.
Image_Graph_Grid_Bars
Display alternating bars on the plotarea.
Image_Graph_Grid_Polar
Display a line grid on the plotarea.

Inherited Variables

Inherited Methods

Class: Image_Graph_Element

Image_Graph_Element::height()
The height of the element on the canvas
Image_Graph_Element::setBackground()
Sets the background fill style of the element
Image_Graph_Element::setBackgroundColor()
Sets the background color of the element.
Image_Graph_Element::setBorderColor()
Sets the border color of the element.
Image_Graph_Element::setBorderStyle()
Sets the border line style of the element
Image_Graph_Element::setFillColor()
Sets the fill color of the element.
Image_Graph_Element::setFillStyle()
Sets the fill style of the element
Image_Graph_Element::setFont()
Sets the font of the element
Image_Graph_Element::setFontAngle()
Sets the font angle
Image_Graph_Element::setFontColor()
Sets the font color
Image_Graph_Element::setFontSize()
Sets the font size
Image_Graph_Element::setLineColor()
Sets the line color of the element.
Image_Graph_Element::setLineStyle()
Sets the line style of the element
Image_Graph_Element::setPadding()
Sets padding of the element
Image_Graph_Element::showShadow()
Shows shadow on the element
Image_Graph_Element::width()
The width of the element on the canvas
Image_Graph_Element::write()
Writes text to the canvas.
Image_Graph_Element::_clip()
Clip the canvas to the coordinates of the element

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Constructor [Image_Graph_Common]
Image_Graph_Common::add()
Adds an element to the objects element list.
Image_Graph_Common::addNew()
Creates an object from the class and adds it to the objects element list.
Image_Graph_Common::hide()
Hide the element

Class Details

[line 61]
A grid displayed on the plotarea.

A grid is associated with a primary and a secondary axis. The grid is displayed in context of the primary axis' label interval - meaning that a grid for an Y-axis displays a grid for every label on the y-axis (fx. a Image_Graph_Grid_Lines, which displays horizontal lines for every label on the y-axis from the x-axis minimum to the x-axis maximum). You should always add the grid as one of the first elements to the plotarea. This is due to the fact that elements are 'outputted' in the order they are added, i.e. if an grid is added *after* a chart, the grid will be displayed on top of the chart which is (probably) not desired.



[ Top ]


Method Detail

setAxisPoints   [line 206]

void setAxisPoints( [mixed $start = 'min'], [mixed $end = 'max'])

Sets the starting and ending points of the grid, these defaults to 'min' and 'max' which signals that the grid should span the entire the perpendicular axis

Parameters:

mixed   $start   —  The starting value, use 'min' to start and "beginning" of the perpendicular axis
mixed   $end   —  The starting value, use 'min' to start and "end" of the perpendicular axis

[ Top ]


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