Skip to content

Interface: PriceCalc ​

Experimental

Calcdata of an ohlc or candlestick trace. Index-aligned with the data (length).

Properties ​

PropertyModifierTypeDescription
closereadonlyFloat64ArrayExperimental
drawnreadonlyInt32ArrayExperimental Data indices of the drawn bars (every value finite), in data order.
highreadonlyFloat64ArrayExperimental
increasingreadonlyUint8ArrayExperimental 1 where the bar is increasing (Plotly's dir), 0 where decreasing.
lengthreadonlynumberExperimental
lowreadonlyFloat64ArrayExperimental
minDiffreadonlynumberExperimental The smallest spacing between distinct positions (Plotly's Lib.distinctVals(x).minDiff), or NaN without a finite position.
openreadonlyFloat64ArrayExperimental Linear prices (log10 on log axes).
origPosreadonlyFloat64ArrayExperimental Linear x before period alignment: what hover labels show (Plotly's orig_p).
period?readonlyobjectExperimental With xperiod: each bar's period (linear), which pos is aligned within.
period.endsreadonlyFloat64Array-
period.startsreadonlyFloat64Array-
posreadonlyFloat64ArrayExperimental Linear x positions after period alignment.
slotpublicPriceSlotExperimental Placement (updated by the cross-trace calc).
sortedreadonlybooleanExperimental The drawn bars' positions never decrease (hover bisects them).
xTypereadonlyAxisType | undefinedExperimental
yTypereadonlyAxisType | undefinedExperimental

Released under the MIT License.