Class AccLinePlot Extends Plot
(Defined in: jpgraph_line.php : 450)

 AccLinePlot Plot Max()   Min()   SetInterpolateMode()   __construct() HideLegend()   PreScaleSetup()   SetCenter()   SetColor()   SetCSIMTargets()   SetLegend()   SetLineWeight()

Class usage and Overview
Accumulated bar plot.
Used to create a line plot where each individual data point is the sum of the individual series data points.

Features:

1. Unlimited number of series

AccBarPlot and LinePlot

Class Methods

AccLinePlot ::
Max()
Return the max value of data points in plot.

Description:
Takes into account all series and returns the maximum Y and X values for all the data series. Used internally to determine the autoscaling.

Example:

list(\$xmax,\$ymax) = \$acclineplot->Max();

AccLinePlot ::
Min()
Return the min value of all data points in plot.

Description:
Takes into account all series and returns the minimum Y and X value. Used internally to determine autoscaling.

Example:

list(\$xmin,\$ymin) = \$acclineplot->Min()

AccLinePlot ::
SetInterpolateMode(\$aIntMode)
Enable interpolate mode

ArgumentDefaultDescription
\$aIntMode  TRUE=Enable interpolation

Description:
When plotting accumulated line plots which have NULL values as data (i.e. '-') they will distort the accumulated plot since they will in effect be interpretated as having value 0. This means that there will be a drop in the plot. The only way to avoid this is to calculate the intermediate value. This can be achieved by calculating a linear interpoaltion for the missing value(s). Calling this method will replace all '-' values with an interpolated value.

Example:

\$accline->SetInterpolateMode()

AccLinePlot ::
__construct(\$plots)
Constructor

ArgumentDefaultDescription
\$plots  Array of line plots to use

Description:
Creates a new accumulated line plot from a number of line plots.