Move custom graph filtering to display script