CLASS Plot
(Defined in: jpgraph.php : 5555) Class usage and Overview
Abstract base class for all plots. This abstract base class defines the signature that all plots must adhere to. It also provides the default trivial implementation for these framework methods.
Public properties:
Name | Type | Description |
value | DisplayValue | Control the data value displayed at each data point |
See also related classes:
DisplayValue, LinePlot, ErrorPlot and ScatterPlot
Class Methods
function SetCenter($aCenter)
Center the data pointr between tick labels
Argument | Default | Description |
$aCenter
|
true
| True=Center each data point |
Description
Used for text scales. Centers the data values between the ticvk marks instead if falling exactly on them.
$barplot->SetCenter();
function SetColor($aColor)
Specify color for plot.
Argument | Default | Description |
$aColor
| | Color |
Description
Specify color for plot. Each plot type is free to interpret it to its own choosing.
$lineplot->SetColor('red');
function SetCSIMTargets(&$aTargets,$aAlts)
Set URL targets for CSIM
Argument | Default | Description |
&$aTargets
| | URL for each CSIM point |
$aAlts
|
null
| Alt texts for each CSIM point |
Description
Set the URL links for the CSIM if the plot type support this.
$url1 = "http://someotherurl.html"
$url2 = ..
...
$targetarray = array($url1, $url2, $url3, $url4);
$barplot->SetCSIMTargets($targetarray);
function SetLegend($aLegend)
Set legend string for this plot
Argument | Default | Description |
$aLegend
| | Legend string |
Description
Set legend string for this plot
$lineplot->SetLegend('Year 2002');
function SetLineWeight($aWeight)
Specify line weight for plot
Argument | Default | Description |
$aWeight
|
1
| Line weight in pixels |
Description
Specify line weight for plot
$lineplot->SetWeight(2);