Skip to content

Interface: TraceAppend ​

Experimental

A streaming change of one trace (E7.2): count points were added at one end by extendTraces (at: 'end') or prependTraces (at: 'start'), and trimmed points were removed from the other end by maxPoints. Retained points keep their values; their index moves by count for prepends and by -trimmed for extends. Several calls batched into one update are merged.

Properties ​

PropertyModifierTypeDescription
atreadonly"end" | "start"Experimental
countreadonlynumberExperimental Points added.
keysreadonlyreadonly string[]Experimental Attribute strings that received points ('x', 'y', 'marker.color', …).
lengthreadonlynumberExperimental
previousreadonlynumberExperimental Point counts (trace._length) before and after: length = previous - trimmed + count.
startreadonlynumberExperimental Index of the first added point in the new data: length - count (end) or 0 (start).
trimmedreadonlynumberExperimental Points removed from the opposite end.

Released under the MIT License.