# Sync chart timestamps

**URL:** <https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 9, 2025, 5:14pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710 "2025-12-09T17:14:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ibrahim\_Mesecan](https://avatars.discourse-cdn.com/v4/letter/i/e56c9b/32.png) [@Ibrahim\_Mesecan](https://forum.inductiveautomation.com/u/Ibrahim_Mesecan)\
**Post date:** [December 9, 2025, 5:14pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/1 "2025-12-09T17:14:51Z")

</div>

> [@Easy Chart Zoom Start/End Time](https://forum.inductiveautomation.com/t/easy-chart-zoom-start-end-time/2334/2):
>
> chart=event.source.....(get the chart) zoomStart = chart.getZoomedStartDate() zoomEnd = chart.getZoomedEndDate()  
> Event doesn’t have the keyword source in it.

Can you please provide an example for this?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 9, 2025, 5:19pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/2 "2025-12-09T17:19:21Z")

</div>

Instead of bumping a 15 year old thread, which is _literally_ an example...

Can you provide more information about what you're trying to do or what is going wrong with the code snippet already provided?

---

<div class="post-metadata">

**Author:** ![Ibrahim\_Mesecan](https://avatars.discourse-cdn.com/v4/letter/i/e56c9b/32.png) [@Ibrahim\_Mesecan](https://forum.inductiveautomation.com/u/Ibrahim_Mesecan)\
**Post date:** [December 9, 2025, 5:23pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/3 "2025-12-09T17:23:53Z")

</div>

Hi Paul, thanks for the quick response 🙂  
On mouse clicking over a chart and selecting a range event in an XYChart, the chart automatically updates its x coordinate selected date range, zooms to the selected date range.  
I want to grab this selected date range and sync another chart with the same date range

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 9, 2025, 5:26pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/4 "2025-12-09T17:26:58Z")

</div>

Well the first half of that is what you've already copied and pasted - `getZoomedStartDate()` and `getZoomedEndDate()` are functions available on the chart component instance.

Then in your other chart you want to 'follow' that range, set the mode of the chart to 'manual' and send the two date parameters you're getting from chart A into chart B.

---

<div class="post-metadata">

**Author:** ![Ibrahim\_Mesecan](https://avatars.discourse-cdn.com/v4/letter/i/e56c9b/32.png) [@Ibrahim\_Mesecan](https://forum.inductiveautomation.com/u/Ibrahim_Mesecan)\
**Post date:** [December 9, 2025, 5:34pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/5 "2025-12-09T17:34:04Z")

</div>

I guess, I am missing something.  
Here is simple script that I am failing to adapt:  
chart = self.getSibling("XYChart")  
return "{} - {}".format(  
str(chart.getZoomedStartDate()),  
str(chart.getZoomedEndDate())  
)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 9, 2025, 5:36pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/6 "2025-12-09T17:36:29Z")

</div>

If you have an XY Chart, then you're in Perspective, not Vision, a different visualization module that didn't exist 15 years ago.

The XY Chart appears to be configured via the `xAxes.date.range` properties:

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

Which you could just link via property bindings between two charts?

---

<div class="post-metadata">

**Author:** ![Ibrahim\_Mesecan](https://avatars.discourse-cdn.com/v4/letter/i/e56c9b/32.png) [@Ibrahim\_Mesecan](https://forum.inductiveautomation.com/u/Ibrahim_Mesecan)\
**Post date:** [December 9, 2025, 5:38pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/7 "2025-12-09T17:38:10Z")

</div>

I tried that. However, chart is not updating its selected date ranges when zooming. They remain the same

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 9, 2025, 5:41pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/8 "2025-12-09T17:41:53Z")

</div>

Then you'll have to wait for someone else to offer advice, my knowledge of Perspective taps out early, unfortunately.

---

<div class="post-metadata">

**Author:** ![Ryan\_Ahlstrom](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@Ryan\_Ahlstrom](https://forum.inductiveautomation.com/u/Ryan_Ahlstrom)\
**Post date:** [December 9, 2025, 7:23pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/9 "2025-12-09T19:23:34Z")

</div>

Are the charts on the same page? In the same view?  
There are a couple ways to solve this, you could pass the ranges into the other chart with custom props, bind the ranges bi-bidirectionally, set up session custom props and handle the back and forth of the props that way.

---

<div class="post-metadata">

**Author:** ![Ibrahim\_Mesecan](https://avatars.discourse-cdn.com/v4/letter/i/e56c9b/32.png) [@Ibrahim\_Mesecan](https://forum.inductiveautomation.com/u/Ibrahim_Mesecan)\
**Post date:** [December 11, 2025, 2:30pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/10 "2025-12-11T14:30:42Z")

</div>

I have two charts in the same page. Chart1 is using the XYChart with its default sample data. On chart1, I enabled cursor and selected ‘process temp‘ as the series. And, when I click on chart1 and select a date range, chart1 zooms into the date range I just selected.

Now, I want to copy this current date range from this chart to chart2. however, I cannot see selected range on a chart property.

Similarly, when hovering over, the cursor shows the current date. But I cannot get that date from any property.

---

<div class="post-metadata">

**Author:** ![Ryan\_Ahlstrom](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@Ryan\_Ahlstrom](https://forum.inductiveautomation.com/u/Ryan_Ahlstrom)\
**Post date:** [December 11, 2025, 2:49pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/11 "2025-12-11T14:49:00Z")

</div>

You might need to parse out the date from a selected data point under the props. Have you looked at the Timeseries chart or Embr charts? Both may provide an easier solution to this.

---

<div class="post-metadata">

**Author:** ![Ibrahim\_Mesecan](https://avatars.discourse-cdn.com/v4/letter/i/e56c9b/32.png) [@Ibrahim\_Mesecan](https://forum.inductiveautomation.com/u/Ibrahim_Mesecan)\
**Post date:** [December 11, 2025, 3:01pm UTC](https://forum.inductiveautomation.com/t/sync-chart-timestamps/112710/12 "2025-12-11T15:01:35Z")

</div>

> [@Ryan\_Ahlstrom](#):
>
> You might need to parse out the date from a selected data point under the props

Actually, this selected data range can help  
Let me work on this more,  
Thanks 🙂
