# Easy Chart Y axis label orientation

**URL:** <https://forum.inductiveautomation.com/t/easy-chart-y-axis-label-orientation/90463>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [May 15, 2024, 10:51pm UTC](https://forum.inductiveautomation.com/t/easy-chart-y-axis-label-orientation/90463 "2024-05-15T22:51:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emile\_Laplante](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@Emile\_Laplante](https://forum.inductiveautomation.com/u/Emile_Laplante)\
**Post date:** [May 15, 2024, 10:51pm UTC](https://forum.inductiveautomation.com/t/easy-chart-y-axis-label-orientation/90463/1 "2024-05-15T22:51:39Z")

</div>

Hi,

Is it possible in ignition vision to change Y axis label orientation of easy chart?

I'd like it to be horizontal rather than vertical since they run into each other when I get a lot of subplots:

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

Thank you!

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [May 16, 2024, 1:06am UTC](https://forum.inductiveautomation.com/t/easy-chart-y-axis-label-orientation/90463/2 "2024-05-16T01:06:04Z")

</div>

This can be done with scripting using the configureChart extension function.

**Example:**

```python
def configureChart(self, chart):
	# Needed to convert the more intuitive degrees into the required radians
	# ...This could probably also be done close enough without the import using angle * (3.14/180)
	from java.lang import Math
	
	# Check to see if subplots are being used (CombinedDomainXYPlot)
	if hasattr(chart.plot, 'subplots'):
		# Iterate through all of the range axes for each subplot and set the label angle to 45 degrees
		for plot in chart.plot.subplots:
			
			for axis in xrange(plot.rangeAxisCount):
				plot.getRangeAxis(axis).setLabelAngle(Math.toRadians(45))
	else: # (AutoAnnotateXYPlot)
		# Iterate through each range axis of the default ploy rotate all labels 45 degrees
		# ...if there are any axis on the right side, the angle will have to be 225 [45 + 180] to orientate right side up
		for axis in xrange(chart.plot.rangeAxisCount):
			chart.plot.getRangeAxis(axis).setLabelAngle(Math.toRadians(45))

```

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

**Edit:** The original code assumed the implementation of subplots based upon the OP's picture. Updated the code, so it will work whether or not subplots are being used.

---

<div class="post-metadata">

**Author:** ![Emile\_Laplante](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@Emile\_Laplante](https://forum.inductiveautomation.com/u/Emile_Laplante)\
**Post date:** [June 6, 2024, 5:31pm UTC](https://forum.inductiveautomation.com/t/easy-chart-y-axis-label-orientation/90463/3 "2024-06-06T17:31:56Z")

</div>

Works great, thanks 🙂
