# XYChart heatmap heatRules and dataFields

**URL:** <https://forum.inductiveautomation.com/t/xychart-heatmap-heatrules-and-datafields/80922>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [October 24, 2023, 5:12pm UTC](https://forum.inductiveautomation.com/t/xychart-heatmap-heatrules-and-datafields/80922 "2023-10-24T17:12:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hw79](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hw79](https://forum.inductiveautomation.com/u/hw79)\
**Post date:** [October 24, 2023, 5:12pm UTC](https://forum.inductiveautomation.com/t/xychart-heatmap-heatrules-and-datafields/80922/1 "2023-10-24T17:12:15Z")

</div>

I have a heat map set up and I want to do a couple things with it.

Example, I have a dataset that the values range between 0.98 - 1.069, currently the color is based on the difference between them, from what I can tell.

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

I'd like to set a min and max of 0.90 and 1.10 so the values change color as they approach those extremes.

Also, if they go outside of that min and max range, I want to color them differently.

How can I achieve this?

Thanks!

---

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [October 24, 2023, 6:16pm UTC](https://forum.inductiveautomation.com/t/xychart-heatmap-heatrules-and-datafields/80922/2 "2023-10-24T18:16:23Z")

</div>

The 'heatmap' of the XY Chart won't let you do what you're asking. If you want the range to show between 0.9 and 1.1, that needs to be in the datasource.

I would recommend looking into the Apex Charts or create your own heatmap with sub views and a repeater.

---

<div class="post-metadata">

**Author:** ![hw79](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hw79](https://forum.inductiveautomation.com/u/hw79)\
**Post date:** [October 24, 2023, 6:18pm UTC](https://forum.inductiveautomation.com/t/xychart-heatmap-heatrules-and-datafields/80922/3 "2023-10-24T18:18:28Z")

</div>

Thank you, I'll look into it.
