dynamicColorMap:setting up a filterFunction