XY Chart - How to set linear-gradient in column

Good morning, actually I'm changing the columns color in an xy chart setting the color in a property and than passing it in the deriveFieldFromData and usually this color is red or green.

I'm trying to change this color setting a linear-gradient on that, for example

linear-gradient(#e66465, #9198e5)

but it's not working.

What else could I try?

The AM Charts documentation says it's possible but I don't know how to apply it in Perspective.

https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/gradients/

Thank you for the suggestion, let's see if someone has already played with this