What are the best practices for setting an external border around a graph in PHP using JPGraph?

When creating a graph using JPGraph in PHP, it is important to set an external border around the graph to improve its visual appearance and readability. This can be achieved by using the SetFrame() method and specifying the border color, width, and style.

// Create a new graph object
$graph = new Graph(800, 600);

// Set the external border around the graph
$graph->SetFrame(true, 'black', 1);

// Add data and render the graph
// (code for adding data and rendering the graph goes here)