What are some potential pitfalls to avoid when trying to customize tick labels in JPGraph?

When customizing tick labels in JPGraph, it is important to avoid using the wrong method to set the labels, as this can lead to errors or unexpected behavior. Make sure to use the correct method, SetXTickLabels or SetYTickLabels, depending on whether you are customizing the x-axis or y-axis tick labels.

// Incorrect way to set tick labels
$graph->xaxis->title->Set("X-axis title");
$graph->xaxis->SetTickLabels(array('Jan', 'Feb', 'Mar', 'Apr', 'May'));

// Correct way to set tick labels
$graph->xaxis->title->Set("X-axis title");
$graph->xaxis->SetTickLabels(array('Jan', 'Feb', 'Mar', 'Apr', 'May'));