Skip to content

Interface: ScatterCalc ​

Experimental

Scatter calcdata: linear coordinates per point (NaN where a point cannot be placed).

Properties ​

PropertyModifierTypeDescription
appendOf?publicobjectExperimental Set by calcAppend (E7.2): this calc is previous plus append. Views and extremes use it to take the streaming path even when crossTraceCalc reported the trace as changed (the runtime then drops plan.append). Cleared on previous when the next streamed calc is made, so at most two calcs stay alive.
appendOf.appendreadonlyTraceAppend-
appendOf.previousreadonlyScatterCalc-
errorXpublicErrorBarCalc | undefinedExperimental
errorYpublicErrorBarCalc | undefinedExperimental
lengthreadonlynumberExperimental Point count (min(x.length, y.length), or the length of the given coordinate).
link?publicScatterLinkExperimental Fill linking (E9.4), set by crossTraceCalc.
markerSizereadonlynumber | Float32Array<ArrayBufferLike>Experimental Drawn marker diameters in CSS px: one value, or one per point after sizeref / sizemode / sizemin (0 hides a point). 0 when markers are off.
ppadreadonlynumber | Float64Array<ArrayBufferLike> | undefinedExperimental Autorange padding in px per point (Plotly's calcMarkerSize), when markers are drawn.
stack?publicScatterStackExperimental Stacking (E9.4), set by crossTraceCalc for traces in a stackgroup.
stream?readonlyunknownExperimental Streaming storage (E7.2): the arrays above are views into buffers with room at both ends, shared with the calc of the next extendTraces / prependTraces. Absent for a plain calc.
xpublicFloat64ArrayExperimental Per-point linear coordinates; stacked positions once crossTraceCalc stacked the trace.
ypublicFloat64ArrayExperimental

Released under the MIT License.