New option for line and bar graphs to filter out x-axis labels

Hi I have added in functionality as described above that I think would be useful when disabling graphs with large amount of labels. It is not always necessary to see every label so I have added an option to supply a filter that will remove the unwanted labels. an example can be seen here http://fiddle.jshell.net/leighking2/eqzd2dp5/