D3 Line Chart Color Gradient based on Temperature Data
I have implemented this line chart in VS code. I would like to add a gradient like this to the blue curve, but I want the color to vary based on the value of another variable (weather temperature data). Does anyone know how to implement this?
Source: JavaSript – Stack OverflowNovember 1, 2021