# Easychart selectedXValue outside xtrace,mark modes

**URL:** <https://forum.inductiveautomation.com/t/easychart-selectedxvalue-outside-xtrace-mark-modes/6824>\
**Category:** Ignition\
**Created:** [July 7, 2013, 12:58am UTC](https://forum.inductiveautomation.com/t/easychart-selectedxvalue-outside-xtrace-mark-modes/6824 "2013-07-07T00:58:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gekkoman](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@gekkoman](https://forum.inductiveautomation.com/u/gekkoman)\
**Post date:** [July 7, 2013, 12:58am UTC](https://forum.inductiveautomation.com/t/easychart-selectedxvalue-outside-xtrace-mark-modes/6824/1 "2013-07-07T00:58:28Z")

</div>

I am trying to create an annotation tool for easychart that allows users to ctrl click on a historical easychart in order to assign notes to temporal position.

Is easy to do in xtrace/mark modes as you can simply read selectedXValue.

I have however not been able to work out how to get the X value outside of these modes (I dont want to restrict annotation behaviour to just these modes). I have even tried switching to xtrace with setMode(4), but it displays X selection on screen but does not populate selectedXVlaue from the initiating click (you need to click again). I can also not find a corresponding getMode() to do a store, get value and restore.

Is there a way to do this?

As an aside is there full API documentation for the component methods anywhere? I have been resorting to dir(event.source) to work out what is available outside the standard objects exposed in the designer. I’m a newbie so am still working things out.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [August 14, 2013, 3:55am UTC](https://forum.inductiveautomation.com/t/easychart-selectedxvalue-outside-xtrace-mark-modes/6824/2 "2013-08-14T03:55:20Z")

</div>

Sorry, there isn’t a good way to do this beyond what you’ve already figured out.

For what it’s worth, adding a built-in way to handle annotations is definitely on our list of things we intend to work on fairly soon.
