Contents
Previous
Next
 To get access to the JpGraph library you will need to include at
 least two files, the base library and one or more of the plot
 extensions. So for example to create a basic line plot the top of your
 PHP file must have the lines:
  
include (
'jpgraph.php');
include ('jpgraph_line.php'
);
...
 // Code that uses the jpgraph library
...
Note: You might also use the PHP directive
 require. The difference is subtle in that include will only include
 the code if the include statement is actually executed. While require()
 will always be replaced by the file specified. See PHP documentation
 for further explanation. For most practical purposes they are
 identical.
Contents
Previous
Next