Graphs » Documentation
Virtually every value of the graphing software can be set as defaults or can be changed or added to on the fly through your calling program.
Where applicable, values should be passed as arrays if more than one series is being provided. eg. If there are two series and both are to be trend lined, then pass array(TRUE,TRUE). If there are two series and only the second is to be trend lined, then pass array(FALSE,TRUE). For a single series, pass array(TRUE).
Change the Image Height - Number
$newgraph-> setOutputImageHeight($image_height);
Change the Image Width - Number
$newgraph-> setOutputImageWidth($image_width);
Set the Graph Title - String
$newgraph-> setGraphTitle($graph_title);
Set the X-Values - array
$newgraph-> setXValues($x_values);
Set the X-Values for display on the right axis - array
$newgraph-> setXValuesRight($x_values_right);
Set the X Title - String
$newgraph-> setXTitle($x_title);
Set the Y Title - String
$newgraph-> setYTitle($y_title);
Set the Maximum Value to show on the Graph - Number
$newgraph-> setMaxValue($max_value);
Set the File Name, which if set, will write the output to a file rather than the screen - String /path/to/file/to/be/saved
$newgraph-> setFileName($file_name);
Set the Size relative to the defaults - Number e.g. 2 is twice the size, .5 is half the size
$newgraph-> setSize($size);
Suppress the labels above the values on the graph - TRUE / FALSE
$newgraph-> setSupressLabels($supressLabels);
Suppress the diamond shape - TRUE / FALSE
$newgraph-> setSupressDiamonds($supressDiamonds);
Set a trend line - TRUE / FALSE
$newgraph-> setLinearTrend($linearTrend);
Set a trend line - TRUE / FALSE
$newgraph-> setExponentialTrend($exponentialTrend);
Set a trend line - TRUE / FALSE
$newgraph-> setPowerTrend($powerTrend);
Set a trend line - TRUE / FALSE
$newgraph-> setLogarithmicTrend($logarithmicTrend);
Set a trend line
$newgraph-> setAverageTrend($averageTrend);
Set a trend line - TRUE / FALSE
$newgraph-> setPolynomialTrend($polynomialTrend);
Set a polynomial trend order - Number
$newgraph-> setPolynomialTrendOrder($polynomialTrendOrder);
Set a threshold line to display on the graph - Number
$newgraph-> setTrendThreshold($trendThreshold);
Set to show the RSquared value on the trend on the graph - TRUE / FALSE
$newgraph-> setRSquared($rSquared)