added option for line and bar graphs to have their x-axis label filtered out based on a user defined function