# Help setting up the y axis scaling on a Perspective XY Chart

**URL:** <https://forum.inductiveautomation.com/t/help-setting-up-the-y-axis-scaling-on-a-perspective-xy-chart/87068>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 8, 2024, 8:37pm UTC](https://forum.inductiveautomation.com/t/help-setting-up-the-y-axis-scaling-on-a-perspective-xy-chart/87068 "2024-03-08T20:37:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Phung](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@Tony\_Phung](https://forum.inductiveautomation.com/u/Tony_Phung)\
**Post date:** [March 8, 2024, 8:37pm UTC](https://forum.inductiveautomation.com/t/help-setting-up-the-y-axis-scaling-on-a-perspective-xy-chart/87068/1 "2024-03-08T20:37:02Z")

</div>

Hello,

I am currently running into some trouble setting up the y axis scaling of a perspective XY chart. The chart in question should be a histogram/bar chart looking chart that is displaying the values of some tags. The values of these tags are very small, they can go as small as 10^-6 or 10^-7.

The problem I am having here is formatting both a linear y axis scale and a logarithmic scale for said chart. When I am attempting to set the linear y axis scale, I get the options to set a min and max values but the y axis then gets populated with too many values and then it becomes cluttered:

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

Is there a way to make the y axis here more legible?

The problem I have with the logarithmic scaling is that the y axis does not have any values and the data seems to "shrink and disappear":

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

Any help with addressing these two issues would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [March 9, 2024, 12:54pm UTC](https://forum.inductiveautomation.com/t/help-setting-up-the-y-axis-scaling-on-a-perspective-xy-chart/87068/2 "2024-03-09T12:54:20Z")

</div>

On the logarithmic scale, the issue is with your range. Since the log of 0 explodes to negative infinity, the chart will attempt to max out the range and your values will disappear.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/b/db5eb1f9109152b727e290ee0b066de9402d7901.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/b/1bb7899e3fd6aaec33b0e5b7bd2127b4279d9814.png)

Instead, set the min to a reasonable low value, or leave it blank so the chart will automatically set a lower limit based on the data (you can still specify a max):  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/0/6084d2ad17d51343ec1e57f67ff174184779e41a.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/2/a228a2ff328d9640b8dea3cdd5559c5bde60dd04.png)

For the linear chart, you'll have to play with the `appearance.grid.minDistance` property of your axis:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/0/70a3e0291a440047eb39c9b8c0cc6f6993e9ea29.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/e/6e6b69fc8112658b707b3ef4adfafbd308c397a5.png)

If you set it to a larger number, the space between gridlines will increase; I believe a value of `null` will automatically pick a grid spacing:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/2/122c26ba5c8f7025a056323dfb519d9cbf0cef6e.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/b/3bea0451429017e146a63286cd944e1725333915.png)

Note this is a visual distance so if you then scale the actual chart component it will adjust the grid numbers to maintain roughly the same visual spacing (relative to view size):

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

---

<div class="post-metadata">

**Author:** ![Tony\_Phung](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@Tony\_Phung](https://forum.inductiveautomation.com/u/Tony_Phung)\
**Post date:** [March 11, 2024, 2:14pm UTC](https://forum.inductiveautomation.com/t/help-setting-up-the-y-axis-scaling-on-a-perspective-xy-chart/87068/3 "2024-03-11T14:14:09Z")

</div>

Thank You for the help! I was able to solve my issues with your advice and some further experimentation.

---

<div class="post-metadata">

**Author:** ![Myasrama](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/myasrama/32/63822_2.png) [@Myasrama](https://forum.inductiveautomation.com/u/Myasrama)\
**Post date:** [July 11, 2024, 1:15pm UTC](https://forum.inductiveautomation.com/t/help-setting-up-the-y-axis-scaling-on-a-perspective-xy-chart/87068/4 "2024-07-11T13:15:57Z")

</div>

Hi Tony,

Would you be able to share your fix for this issue? currently facing a similar problem.

Thanks!

---

<div class="post-metadata">

**Author:** ![Tony\_Phung](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@Tony\_Phung](https://forum.inductiveautomation.com/u/Tony_Phung)\
**Post date:** [July 11, 2024, 3:49pm UTC](https://forum.inductiveautomation.com/t/help-setting-up-the-y-axis-scaling-on-a-perspective-xy-chart/87068/5 "2024-07-11T15:49:36Z")

</div>

Myasrama,

I just followed Felipe's advice and managed to resolve my issues. If I had to list the things that I did, I think it would be:

1. I had to adjust the min value of my Y axis to a value greater than 0, when it was set to zero it would just scale the range to infinity so that was causing issues.
2. For the linear chart I adjusted the appearance.grid.minDistance property. I believe I set it to null so that it would automatically pick a grid spacing.

I hope that helps.
