Single trace scatter plot with fill-color-gradient

hello, i want to create a single line graph trace and fill the gap between graph line and x-axis with 3 color at specific trsholds. for example let’s say that i have a line graph where at point x my y value is 90; i want to fill the gap with colors shuch that until it is 60 vertical line should be green, for 60 to 80 it should be yellow and for 80 to 90 it should be red. please note that i can create this graph with 3 traces if i use same data set where i cut off anything higher than 60 to 60, 80 to 80 and so. this will work but for large datasets it is really time consuming.

HI @firat welcome to the forums.

This topic might be interesting:

thank you!

1 Like