You are probably right guessing what Micheal needs.
I was thinking that he just wants to add a color legend and was trying with a function of one variable to achieve this goal.
BTW, thats the collapsed region in my sheet showing two approaches for a legend (the second being the preferred one):
![1.png]()