The Graph SetMargin function is used to set the margin size of a graph. It is useful for adjusting the spacing and alignment of the elements of the graph.
Here are some examples using the SetMargin function:
Example 1 - Set all margins to 10 pixels:
SetMargin(10, 10, 10, 10);
//output the graph
$graph->Stroke();
?>
Example 2 - Set different margins for each side:
SetMargin(20, 30, 20, 30);
//output the graph
$graph->Stroke();
?>
In both examples, the jpgraph package library is used.
PHP Graph::setmargin - 1 examples found. These are the top rated real world PHP examples of Graph::setmargin from package GotCms extracted from open source projects. You can rate examples to help us improve the quality of examples.