FreeMED Opensource EMR/PM Software |
FreeMED. GraphNormalizeNormalizing graph for trending data points over time Summary
DrawCanvas
Method to draw the canvas background. Should be called before DrawData. |
function GraphNormalize ( $title, $options = NULL )
Method to draw the canvas background.
function DrawCanvas ( )
Draws the actual points on the graph.
function DrawData ( )
Internal method to draw the “legend” box.
function DrawLegend ( )
Draw graph title in nice box
function DrawTitle( $title )
Add data set
function DataSet ( $name, $values )
Determine numeric boundaries of input data for normalization
function GetDataLimits ( & $minx, & $miny, & $maxx, & $maxy )
Master method to create the graph image in memory
function Process ( )
Output graph as JPEG and exit
function OutputJPEG ( )
Output graph as PNG and exit
function OutputPNG ( )
Internal method to produce “dashed” line style
function _DashedLine( $x0, $y0, $x1, $y1, $fg, $bg )
Internal method to draw a “rounded” box
function _RoundedBox ( $x1, $y1, $x2, $y2, $radius, $color )