Show X-Trace on a chart by default

Is it possible to show the X-Trace on a chart when the page is loaded (without having to click on the graph)? I set the mode to 4 (self.setMode(4)) but I don’t know how to make the X-Trace to be visible by default.
Thanks.

I don’t know of a way to do it with Ignition’s built-in charts. It can be done with the NoteChart Module with both the classic NoteChart and the EasyNoteChart by assigning a date/time to the traceTS property with a script. Or possibly bind that to now() to maintain an XTrace of the latest values.
See the feature list in the documentation.

1 Like

Is there a way to change the X-Trace label color on the classic Note Chart? By default, the label has the same color as the graph, but if light colors are used, it is difficult to see it on the white background. Ideally, I would like to see the labels black (same as the time stamp).
Can the visibility on the X-Trace be change? One option is to change the trace timestamp so it will be outside of the domain axis, but this won’t work for me.
Thanks.

Unfortunately, no. And no convenient way to change that. Presumably, if the chosen color is hard to read, it’d be hard to see the line, too. Note that the text of the X-Trace value is painted on a partially transparent background, repeating the chart background. That makes the labels more readable when on top of a tangle of lines, but there still has to be some contrast.[quote=“cstoica, post:3, topic:17230”]
One option is to change the trace timestamp so it will be outside of the domain axis, but this won’t work for me
[/quote]
It has to stay within the chart as all of the outer boundary decorations can be turned off. The chart area itself is the only sure place to put it (along with the value labels).