How to move this material in Y axis?

My suggestion includes creating a material with 1 to 7 colors, bake this material to a render target, create a material from this render target and then move this material with a panner. That includes some extra steps but I can post it if you are interested.