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

Class: Image_Graph_Plot_Pie

Source Location: /Image_Graph-0.8.0/Graph/Plot/Pie.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Element
      |
      --Image_Graph_Plotarea_Element
         |
         --Image_Graph_Plot
            |
            --Image_Graph_Plot_Pie

2D Piechart.


Author(s):

Version:

  • Release: 0.8.0

Copyright:

  • 2003-2009 The PHP Group

Methods


Inherited Variables

Inherited Methods

Class: Image_Graph_Plot

Image_Graph_Plot::Image_Graph_Plot()
PlotType [Constructor]
Image_Graph_Plot::dataset()
Get the dataset
Image_Graph_Plot::setDataSelector()
Sets the dataselector to specify which data should be displayed on the plot as markers and which are not
Image_Graph_Plot::setMarker()
Sets the marker to 'display' data points on the graph
Image_Graph_Plot::setTitle()
Sets the title of the plot, used for legend

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 50]
2D Piechart.


[ Top ]


Method Detail

explode   [line 277]

void explode( int $explode, [string $x = false])

Explodes a piece of this pie chart

Parameters:

int   $explode     Radius to explode with (or an array)
string   $x     The 'x' value to explode or omitted

[ Top ]

setDiameter   [line 321]

void setDiameter( mixed $diameter)

Set the diameter of the pie plot (i.e. the number of pixels the pie plot should be across)

Use 'max' for the maximum possible diameter

Use negative values for the maximum possible - minus this value (fx -2 to leave 1 pixel at each side)


Parameters:

mixed   $diameter     The number of pixels

[ Top ]

setRestGroup   [line 335]

void setRestGroup( double $limit, [string $title = 'The rest'])

Set the limit for the y-value, where values below are grouped together as "the rest"

Parameters:

double   $limit     The limit
string   $title     The title to display in the legends (default 'The rest')

[ Top ]

setStartingAngle   [line 302]

void setStartingAngle( [int $angle = 0], [string $direction = 'ccw'])

Set the starting angle of the plot

East is 0 degrees South is 90 degrees West is 180 degrees North is 270 degrees

It is also possible to specify the direction of the plot angles (i.e. clockwise 'cw' or counterclockwise 'ccw')


Parameters:

int   $angle     Angle for plot
string   $direction     Direction for plot ('cw' [clockwise] or 'ccw' [counter-clockwise])

[ Top ]


Documentation generated on Tue, 05 Oct 2010 16:00:52 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.