Public Member Functions | Data Fields

chartService Class Reference

Public Member Functions

 __construct (&$xmlArr)
Public render ($objName)
getPlotData (&$bizObj, $fields, $labelField)
 xyGraphRender (&$bizObj, &$xmlArr)
 pieGraphRender (&$bizObj, &$xmlArr)
 renderXYPlot (&$data, &$xmlArr)
 renderPiePlot (&$data, &$xmlArr)

Data Fields

 $m_PlotList

Detailed Description

Definition at line 25 of file chartService.php.


Constructor & Destructor Documentation

__construct ( &$  xmlArr )

Initialize chartService with xml array metadata

Parameters:
array$xmlArr
Returns:
void

Definition at line 40 of file chartService.php.


Member Function Documentation

& getPlotData ( &$  bizObj,
fields,
labelField 
)

Get plot data array

Parameters:
BizObj$bizObjobject reference of bizobj
array$fieldslist of bizobj fields
array$labelFieldlabel field of bizobj
Returns:
array reference of the array [field][index]

Definition at line 94 of file chartService.php.

Here is the caller graph for this function:

pieGraphRender ( &$  bizObj,
&$  xmlArr 
)

draw the Pie type graph (can have 1 pie plot)

Parameters:
BizObj$bizObjobject reference of bizobj
array$xmlArrxml array reference
Returns:
void

Definition at line 188 of file chartService.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Public render ( objName )

Render the chart output

Parameters:
string$objNameobject name which is the bizform name
Returns:
void

Definition at line 50 of file chartService.php.

Here is the call graph for this function:

renderPiePlot ( &$  data,
&$  xmlArr 
)

chartService::renderPiePlot() - draw the Pie type plot

Parameters:
array$dataplot data array reference
array$xmlArrxml array reference
Returns:
object refernce Pie plot object reference

Definition at line 293 of file chartService.php.

Here is the caller graph for this function:

renderXYPlot ( &$  data,
&$  xmlArr 
)

Draw the XY type plot

Parameters:
array$dataplot data array reference
array$xmlArrxml array reference
Returns:
object refernce XY plot object reference

Definition at line 226 of file chartService.php.

Here is the caller graph for this function:

xyGraphRender ( &$  bizObj,
&$  xmlArr 
)

Draw the XY type graph (can have > 1 plots)

Parameters:
BizObj$bizObjobject reference of bizobj
array$xmlArrxml array reference
Returns:
void

Definition at line 120 of file chartService.php.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: