# Vision Chart Number X-Axis X-Trace X-Axis Format

**URL:** <https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670>\
**Category:** Ignition\
**Created:** [May 12, 2020, 5:56pm UTC](https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670 "2020-05-12T17:56:10Z")\
**Posts on this page:** 9\
**Page:** 1

<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 12, 2020, 5:56pm UTC](https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670/1 "2020-05-12T17:56:10Z")

</div>

Hello,

I am plotting data on a Vision Chart with a number x-axis. When the user puts the chart into x-trace and clicks somewhere on the chart, a vertical line appears with little value annotations on each point. The value annotation for the x-axis value is in a weird time format (showing the datapoint number in the milliseconds which goes back to 0 after 999), is there a way of switching this to number format?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7991af534646ff1e63b148c4bd2e694c3e85dbd7.png)

---

<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 12, 2020, 6:03pm UTC](https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670/2 "2020-05-12T18:03:47Z")

</div>

@pturmel, can you do this with noteChart module?

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [May 12, 2020, 6:39pm UTC](https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670/3 "2020-05-12T18:39:34Z")

</div>

I believe the date displayed is using whatever date format the incoming dataset has. Using the default dataset on the Chart doesn’t display any milliseconds.

How is your data property setup?

Edit: Apparently i can’t read. I see now you’re not using a date x axis

The Default X Axis setup on the Chart is using a Date Axis Type. Did you delete that axis and change it to a Number Axis?

---

<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 12, 2020, 7:12pm UTC](https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670/4 "2020-05-12T19:12:26Z")

</div>

The incoming dataset is generated via script on a button press.

Yes, I deleted the default date x-axis and added a number axis.

---

<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 12, 2020, 7:28pm UTC](https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670/5 "2020-05-12T19:28:29Z")

</div>

You’ll have to use the custom method to supply that annotation. The Notechart module assumes the x-axis is always timestamp, as the notes features won’t work if they aren’t. But if you are just using the X-Trace, you can extract the milliseconds from the timestamp to format and display it as a number.

Your post is a bit misleading, btw, as the screenshot is of my NoteChart, not Vision’s classic Chart object. The translucent background of the X-Trace numbers and timestamp (to help readability) is a dead giveaway. Vision’s native Chart won’t do that.

{Oh, and I appreciate that you are using it by default… (: }

---

<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 12, 2020, 7:46pm UTC](https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670/6 "2020-05-12T19:46:51Z")

</div>

Yea, I was hesitant to say it was a NoteChart module chart as doing so may deter forum users from considering my problem as they may not be familiar with the NoteChart module - thinking that a solution to the regular Chart would be similar on the Classic Note Chart component.

The reason I am using a numbered x-axis rather than a date x-axis is because the date implementation will have large gaps all over the place (when machine generating data is not being run) making the data visualization less effective (in my opinion). I would like to add notes to the chart so perhaps I just need to bite the bullet.

Yes, I use your NoteCharts by default, love them!

---

<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 12, 2020, 7:49pm UTC](https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670/7 "2020-05-12T19:49:57Z")

</div>

> [@dion.botha](#):
>
> thinking that a solution to the regular Chart would be similar on the Classic Note Chart component.

Normally, yes, since NoteChart subclasses the classic Chart. However, if you look at my documentation, it says I completely rewrote the X-Trace functionality. (:

---

<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 12, 2020, 8:25pm UTC](https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670/8 "2020-05-12T20:25:31Z")

</div>

Is there anyway to use a date x-axis but have the datapoints spread evenly between points?

See if I use a date axis, this is what my chart looks like:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a9e300b267343327e5912518583056220377ba42.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:** [May 12, 2020, 11:36pm UTC](https://forum.inductiveautomation.com/t/vision-chart-number-x-axis-x-trace-x-axis-format/34670/9 "2020-05-12T23:36:11Z")

</div>

Hmmm. No, the x-axis is a dimension, not a category. Consider putting each run on its own pen, and subtracting off the starting point. That’ll place each run on a common axis (time from start). Not sure if that’ll yield something that’s useful for you. I’d have you consider combined-range subplots, but NoteChart can’t do that.
