# XY chart shared xAxis

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-shared-xaxis/103619>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 13, 2025, 11:22am UTC](https://forum.inductiveautomation.com/t/xy-chart-shared-xaxis/103619 "2025-03-13T11:22:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [March 13, 2025, 11:22am UTC](https://forum.inductiveautomation.com/t/xy-chart-shared-xaxis/103619/1 "2025-03-13T11:22:46Z")

</div>

Hello!

In Ignition Perspective I´m using a XY chart with 2 different database binding...same value from 2 different years.  
The results after using same yAxis range looks like:

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

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

What I would like now is to overlap the pink and the blue charts

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/1/6152bd8e95f760c442868aabc2ffa14b10c8fd76.png)

The script transform I´m using for the binding of both dataSources jython is:

```python

	
	code_filter = self.getSibling("TextField_3").props.text
	

	

	resultsDS = value  
	filtered_list = []
	

	if resultsDS is not None:
	    row_count = resultsDS.getRowCount()
	    
	    for row in range(row_count):
	        codigo = resultsDS.getValueAt(row, "CODIGO")
	        if codigo == code_filter:
	            week_start = resultsDS.getValueAt(row, "WEEK_START")
	            pue = resultsDS.getValueAt(row, "AVG_KWIT") # Weekly PUE value
	
	            filtered_list.append({
	                "t_stamp": week_start, # Week start timestamp
	                "process_temp": pue # Map PUE to process_temp
	            })
	

	return filtered_list

```

WEEK\_START is the date of begining of the week (values are calculated weekly)

Is there a way I can overlap both graphs?

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [March 19, 2025, 9:36am UTC](https://forum.inductiveautomation.com/t/xy-chart-shared-xaxis/103619/2 "2025-03-19T09:36:30Z")

</div>

Yes, there is a way by adding 2 xAxes each of them linked to a serie and each serie with their own binded data. Maybe unify the range with max and min common values for better visualization.

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

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