# Perspective XY Chart - Dynamic Colors

**URL:** <https://forum.inductiveautomation.com/t/perspective-xy-chart-dynamic-colors/102319>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [February 13, 2025, 3:19pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-dynamic-colors/102319 "2025-02-13T15:19:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seth\_Thompson](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Seth\_Thompson](https://forum.inductiveautomation.com/u/Seth_Thompson)\
**Post date:** [February 13, 2025, 3:19pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-dynamic-colors/102319/1 "2025-02-13T15:19:34Z")

</div>

Good day, I am using the XY Chart Gantt Chart for an equipment status plot for various devices.  
It is referenced from the example documentation seen in the Ignition User manual:

> **[XY Chart Example - Gantt Chart | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-chart-palette/perspective-xy-chart/xy-chart-example-gantt-chart)**
>
> In addition to basic data plotting, an XY Chart can be used to plot horizontal bar across different lanes, in this fashion:

I would like to change the color of the column based on an integer called "state" (sort of like a multi-state indicator binding) instead of the color string, where a color string is unavailable in the named queries I plan to use. Is there any way to use a binding for the column opposed to using **series[0].column.appearance.deriveFieldsFromData.fill.color**?

An example of a chart I am attempting to replicate:

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

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [February 13, 2025, 4:04pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-dynamic-colors/102319/2 "2025-02-13T16:04:21Z")

</div>

Check out my ribbon chart for inspiration, that’s exactly how it works; it looks up colors for a given state from a dictionary.

> **[Ignition Exchange](https://inductiveautomation.com/exchange/1514/overview)**
>
> Discover, share, and download community made Ignition resources in collaboration with your organization or the Ignition community.

---

<div class="post-metadata">

**Author:** ![Seth\_Thompson](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Seth\_Thompson](https://forum.inductiveautomation.com/u/Seth_Thompson)\
**Post date:** [February 13, 2025, 4:12pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-dynamic-colors/102319/3 "2025-02-13T16:12:43Z")

</div>

This is exactly what I needed, thank you!
