fix #4 by ignoring NaN values for color and scale