This is what I found when I applied a color shader with the index ratio channel to a cloner object. The gradient is shifted, there is not correspondence between the index value and the colour that should be set.
There is something wrong: my expectation or the result?
Here you can see the simple project so you can try if you want.
This is the material:
and the color shader setup:
The strange result: