Returns the X values from a series.
XVALS(series, item, dt)
|
series |
- |
An input series | ||||
|
item |
- |
Optional. An integer, the series item. Defaults to 1, the primary item. | ||||
|
dt |
- |
Optional. An integer, the date/time format.
|
A new series or table containing the x values of the series.
W1: grand(5, 2)
xvals(W1)
returns the series {0.0, 2.0, 4.0, 6.0, 8.0}.
xvals(W1)
returns a series that consists of the x values of W1.
W1: grand(3, 1);settime("13:00");sethunits("time")
W2: xvals(w1)
W3: xvals(w1, 1, 1)
W1 contains the absolute time values 0:00:00, 0:00:01, 0:00:02.
W2 contains the relative time values 13:00:00, 13:00:01, 13:00:02.
The dt
option applies to series with date or time horizontal units. For
Use IDX to return the indices of a series or array.
Use XTOIDX to convert X values to indices.