# Chart component in XY Plot mode, display red line for current timestamp

**URL:** <https://forum.inductiveautomation.com/t/chart-component-in-xy-plot-mode-display-red-line-for-current-timestamp/14961>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [August 2, 2017, 8:58am UTC](https://forum.inductiveautomation.com/t/chart-component-in-xy-plot-mode-display-red-line-for-current-timestamp/14961 "2017-08-02T08:58:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 2, 2017, 8:58am UTC](https://forum.inductiveautomation.com/t/chart-component-in-xy-plot-mode-display-red-line-for-current-timestamp/14961/1 "2017-08-02T08:58:23Z")

</div>

I Have a Chart component, chart type XY Plot, with dataset (time/value)  
I would like to plot (every minute) a vertical red line to display the current timestamp.  
Any idea how to achieve it ???

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/ee75a2bcd6779d9dcf189129d503db3e7ca8ff67.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 2, 2017, 11:07am UTC](https://forum.inductiveautomation.com/t/chart-component-in-xy-plot-mode-display-red-line-for-current-timestamp/14961/2 "2017-08-02T11:07:00Z")

</div>

[NoteChart](https://www.automation-pros.com/modulesales.html). Compute a ‘notes’ dataset with just the current timestamp and suitable text. Simple. Or if you want to use the ‘notes’ dataset for actual event marks, NoteChart also accepts an ‘altNotes’ dataset, originally intended for dynamic UI support.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 2, 2017, 11:21am UTC](https://forum.inductiveautomation.com/t/chart-component-in-xy-plot-mode-display-red-line-for-current-timestamp/14961/3 "2017-08-02T11:21:57Z")

</div>

Thanks, I implemented this solution with a notes dataset and a timer to refresh it with the current timestamp.
