# Fixed xAxes label size - XY Chart Perspective

**URL:** <https://forum.inductiveautomation.com/t/fixed-xaxes-label-size-xy-chart-perspective/88639>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [April 10, 2024, 2:13pm UTC](https://forum.inductiveautomation.com/t/fixed-xaxes-label-size-xy-chart-perspective/88639 "2024-04-10T14:13:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc.Akoto](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/marc.akoto/32/19291_2.png) [@Marc.Akoto](https://forum.inductiveautomation.com/u/Marc.Akoto)\
**Post date:** [April 10, 2024, 2:13pm UTC](https://forum.inductiveautomation.com/t/fixed-xaxes-label-size-xy-chart-perspective/88639/1 "2024-04-10T14:13:37Z")

</div>

Hi, I'm on an XYChart in Perspective 8.1.28

I would like to define a fixed size for my xAxes label, so that the long length labels don't shrink totally the grid itself.

Any idea ?  
Thanks in advance  
.

![xAxes_label_size](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/b/2bca70d6ce319c1c8424a828c5ea56bf6e85b2e1.png) ![xAxes_label_size_bad](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/d/bd534017ca8ce67e03dad5bc5810f52710018b68.png)

---

<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:** [April 10, 2024, 2:58pm UTC](https://forum.inductiveautomation.com/t/fixed-xaxes-label-size-xy-chart-perspective/88639/2 "2024-04-10T14:58:11Z")

</div>

There is a wrap property that you can add in.

> **[Perspective - XY Chart | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-chart-palette/perspective-xy-chart#xaxesappearancelabels)**
>
> The XY Chart displays data trends.

I couldn't get it to work on my test setup but there may be some other problems with my chart.

---

<div class="post-metadata">

**Author:** ![Marc.Akoto](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/marc.akoto/32/19291_2.png) [@Marc.Akoto](https://forum.inductiveautomation.com/u/Marc.Akoto)\
**Post date:** [April 10, 2024, 4:14pm UTC](https://forum.inductiveautomation.com/t/fixed-xaxes-label-size-xy-chart-perspective/88639/3 "2024-04-10T16:14:03Z")

</div>

The wrap property does wrap the text indeed.  
But is there a way to get a fixed width of the overall xAxes label area ?

![shrink](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/1177d916deb81bcb3951c335b5f8516b1e79792a.png) ![wrap](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/c/fcab4dc1d858c4af35829f032dc7544b95dfe165.png)

---

<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:** [April 10, 2024, 4:19pm UTC](https://forum.inductiveautomation.com/t/fixed-xaxes-label-size-xy-chart-perspective/88639/4 "2024-04-10T16:19:57Z")

</div>

I don't think so.  
The XY Chart component is based on the AM Charts third-party XY Chart. Their documentation is very good and you can see on the page linked below that they have a maxWidth property for the X-axis labels. I suspect that this is not implemented / exposed on the Ignition implementation of the component.

[https://www.amcharts.com/docs/v4/tutorials/wrapping-and-truncating-axis-labels/](https://www.amcharts.com/docs/v4/tutorials/wrapping-and-truncating-axis-labels/)

---

<div class="post-metadata">

**Author:** ![Marc.Akoto](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/marc.akoto/32/19291_2.png) [@Marc.Akoto](https://forum.inductiveautomation.com/u/Marc.Akoto)\
**Post date:** [April 10, 2024, 5:11pm UTC](https://forum.inductiveautomation.com/t/fixed-xaxes-label-size-xy-chart-perspective/88639/5 "2024-04-10T17:11:56Z")

</div>

Thanks @Transistor, indeed the maxWidth property of amChart doesn't seem to change the wrap width in Ignition.

I'm still looking forward to a solution : any input would be helpful

In the meantime I'm using a rotation = - 45
