Apply linear gradient to a path

I want to apply a linear gradient in a chart path, currently i’m overlaping 5 paths with a color opacity between 0.02 and 0.08 but it would be better to create a single path with a LinearGradient color type.

Is there anyway to do this?

This is the effect that i want to simplify