ARC:How do I make the curved part of the line gradient, but not the background

image

I tried to use

But it didn’t work
I found that the only way to change colors is with this function, but not with gradients

Thank you for your answer!^ ^