# XY Chart - How to set linear-gradient in column

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-how-to-set-linear-gradient-in-column/91997>\
**Category:** Ignition\
**Created:** [June 18, 2024, 6:49am UTC](https://forum.inductiveautomation.com/t/xy-chart-how-to-set-linear-gradient-in-column/91997 "2024-06-18T06:49:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [June 18, 2024, 6:49am UTC](https://forum.inductiveautomation.com/t/xy-chart-how-to-set-linear-gradient-in-column/91997/1 "2024-06-18T06:49:13Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/a/aa5858cdf7add0d1c7714ee79f36b891d753daa8.png)

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

```python
linear-gradient(#e66465, #9198e5)

```

but it's not working.

What else could I try?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [June 18, 2024, 8:47am UTC](https://forum.inductiveautomation.com/t/xy-chart-how-to-set-linear-gradient-in-column/91997/2 "2024-06-18T08:47:25Z")

</div>

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/](https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/gradients/)

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [June 18, 2024, 12:33pm UTC](https://forum.inductiveautomation.com/t/xy-chart-how-to-set-linear-gradient-in-column/91997/3 "2024-06-18T12:33:34Z")

</div>

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