# Easy Chart - Panning does not update Date Range

**URL:** <https://forum.inductiveautomation.com/t/easy-chart-panning-does-not-update-date-range/63844>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [September 7, 2022, 5:51pm UTC](https://forum.inductiveautomation.com/t/easy-chart-panning-does-not-update-date-range/63844 "2022-09-07T17:51:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shane.m.alexander](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shane.m.alexander/32/38401_2.png) [@shane.m.alexander](https://forum.inductiveautomation.com/u/shane.m.alexander)\
**Post date:** [September 7, 2022, 5:51pm UTC](https://forum.inductiveautomation.com/t/easy-chart-panning-does-not-update-date-range/63844/1 "2022-09-07T17:51:30Z")

</div>

Has anyone figured out how to get the date range at the bottom of the built-in Easy Chart to follow the chart when panning? Whenever you pan around, the date range remains stuck and no longer reflects the time range in the chart.

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

---

<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:** [September 8, 2022, 10:03am UTC](https://forum.inductiveautomation.com/t/easy-chart-panning-does-not-update-date-range/63844/2 "2022-09-08T10:03:03Z")

</div>

I looked into this, but so far, I haven’t determined the answer. What I do know is that no matter where the easy chart is panned, all of these parameters remain fixed:

```auto
print "outerRangeStart: " + str(event.source.outerRangeStart)
print "outerRangeEnd: " + str(event.source.outerRangeEnd)
print "total Datapoints: "+ str(event.source.datapoints)
print "dateRangeLocation: " + str(event.source.dateRangeLocation)
print "cursorCode: " + str(event.source.cursorCode)
print "plotOrientation: " + str(event.source.plotOrientation)
print "gridlineWidth: " + str(event.source.gridlineWidth)
print "legend: " + str(event.source.legend)
print "hGap: " + str(event.source.hGap)
print "vGap: " + str(event.source.vGap)
print "utilityButtonSize: " + str(event.source.utilityButtonSize)
print "selectedXValue: " + str(event.source.selectedXValue)
print "barMargin: " + str(event.source.barMargin)
print "gapThreshold: " + str(event.source.gapThreshold)
print "xOffset3D: " + str(event.source.xOffset3D)
print "yOffset3D: " + str(event.source.yOffset3D)
print "digitalGap: " + str(event.source.digitalGap)
print "startupRange: " + str(event.source.startupRange)
print "startupSelection: " + str(event.source.startupSelection)
print "maxSelectionSize: " + str(event.source.maxSelectionSize)
print "dateStyle: " + str(event.source.dateStyle)
print "timeStyle: " + str(event.source.timeStyle)
print "trackMargin: " + str(event.source.trackMargin)
print "tickDensity: " + str(event.source.tickDensity)
print "tagHistoryResolution: " + str(event.source.tagHistoryResolution)
print "tagHistoryResolutionMode: " + str(event.source.tagHistoryResolutionMode)
print "unitCount: " + str(event.source.unitCount)
print "unit: " + str(event.source.unit)
print "rtLabel: " + str(event.source.rtLabel)
print "globalWhereClause: " + str(event.source.globalWhereClause)
print "propertiesLoading: " + str(event.source.propertiesLoading)
print "datapoints: " + str(event.source.datapoints)
print "startDate: " + str(event.source.startDate)
print "endDate: " + str(event.source.endDate)

```

Furthermore, I individually pulled all of the dataset parameters into a power table, and I was unable find anything to go off of in there either.

---

<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:** [September 9, 2022, 8:25am UTC](https://forum.inductiveautomation.com/t/easy-chart-panning-does-not-update-date-range/63844/3 "2022-09-09T08:25:47Z")

</div>

I had an opportunity to look at this again, and I was able to figure it out. Put this code in your Easy Chart’s mouseDragged event, and it will produce the desired effect:

```auto
event.source.startDate = event.source.getZoomedStartDate()
event.source.endDate = event.source.getZoomedEndDate()

```
