Create a wavy line using the gradient tool

Good day, everyone. I'm looking for help in creating a wavy or curved line within the Gradient tool in Illustrator. The illustration above shows what I have so far, but what I would like to achieve is a wavy line where the yellow changes to orange rather than the straight line that is there now. I would be grateful for any help that can be offered. Thank you.
