# Convert Easy Chart .selectedXValue to Date

**URL:** <https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942>\
**Category:** Ignition\
**Created:** [May 13, 2019, 4:27pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942 "2019-05-13T16:27:37Z")\
**Posts on this page:** 12\
**Page:** 2

<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:** [May 23, 2019, 11:18am UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/21 "2019-05-23T11:18:12Z")

</div>

> [@dion.botha](#):
>
> expose the other chart mode (Zoom, Pan, Mark, X-Trace) in the property editor.

I vaguely recall not doing that for some specific reason. I'll revisit it.

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [May 23, 2019, 8:49pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/22 "2019-05-23T20:49:06Z")

</div>

Another nice to have would be to have the ‘Trace Timestamp’ property work when the chart is in Mark mode.

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [May 23, 2019, 9:10pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/23 "2019-05-23T21:10:28Z")

</div>

> [@pturmel](#):
>
> I’ll play with this. Sounds odd. It is supposed to start in mode zero.

Are you seeing anything similar on your end?

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [May 23, 2019, 9:42pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/24 "2019-05-23T21:42:26Z")

</div>

> [@dion.botha](#):
>
> Phil, would love an onDoubleClick extension function for the charts - this would allow me to get rid of the ‘Insert Note’ button (which I am finding difficult to get how I want by changing it’s viability). Just something for you to consider!

Guess I can just do this with single click, not a big issue.

---

<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:** [May 24, 2019, 12:09pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/25 "2019-05-24T12:09:25Z")

</div>

> [@dion.botha](#):
>
> have the ‘Trace Timestamp’ property work when the chart is in Mark mode.

Not going to happen anytime soon. I completely rewrote X-Trace mode to support the current feature set. Mark mode passes through to the native chart UI for control and rendering. I'd have to completely rewrite mark mode, too. /-:

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [May 29, 2019, 6:34pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/26 "2019-05-29T18:34:32Z")

</div>

Another nice to have would be to improve the ‘Date Style’ and ‘Time Style’ editable properties. Currently we only have a choice between Auto/MDY/DMY/YMD. Our company made the decision a while ago to use a non ambiguous date format but I cannot conform to this.

---

<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:** [May 29, 2019, 8:50pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/27 "2019-05-29T20:50:05Z")

</div>

> [@dion.botha](#):
>
> Another nice to have would be to improve the ‘Date Style’ and ‘Time Style’ editable properties.

I pass these through from the stock chart implementations. If IA changes these, the same functionality will come through in NoteChart. Might want to note this on [ideas.inductiveautomation.com](http://ideas.inductiveautomation.com).

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [June 5, 2019, 7:47pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/28 "2019-06-05T19:47:27Z")

</div>

Another nice to have would be custom properties. I’m guessing you pass these through from stock chart implementations too?

I submitted this here for anyone to vote for:  
[https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/add-custom-properties-for-easy-chart](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/add-custom-properties-for-easy-chart)

---

<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:** [June 7, 2019, 5:27pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/29 "2019-06-07T17:27:03Z")

</div>

Yes, I just pass that stuff through. If IA adds it to the EasyChart, it’ll show up in the EasyNoteChart automatically.

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [August 14, 2019, 10:26pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/30 "2019-08-14T22:26:06Z")

</div>

Ahhhh I am feeling a little déjà vu - my apologies, I was using .selectedXValue on some older stuff that I had not updated since purchasing NoteCharts - Thanks!

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [June 17, 2020, 6:19pm UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/31 "2020-06-17T18:19:08Z")

</div>

This is a little unfortunate because when it is in Mark mode and you click on a point in the chart, the timestamp is displayed.

I keep finding applications where the user would like to make a note on particular data points. Zooming in and putting a note near the datapoint is a little janky.

Could you not just add a new property called Mark Timestamp and somehow bind to the Mark mode displayed timestamp?

---

<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:** [June 18, 2020, 12:20am UTC](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942/32 "2020-06-18T00:20:58Z")

</div>

No, it’s not that simple. The true timestamp that drives `traceTS` is only available with NoteChart because I _completely rewrote X-Trace mode_. I’m not accessing an underlying timestamp from the original selectedXValue at all–that isn’t accessible. I’d have to _completely rewrite Marker mode_ to do what you ask. Not on my to-do list. Sorry.

[Previous page](https://forum.inductiveautomation.com/t/convert-easy-chart-selectedxvalue-to-date/24942.md?page=1)
