Skip to content

Interface: SubplotMirror ​

Experimental

A secondary view of one cartesian subplot's traces (M3 wave 2, E5.9). Each trace on the subplot gets a second TraceView from its module's plot.create, drawn into the mirror's viewport with the mirror's axes (same type, categories and range breaks as the subplot's, the mirror's ranges and length) and transform. The runtime updates the mirror views with the main views' update plans (data, style, selection), so they stay in step; set only changes transforms. Mirror views get no pointer events and are not hoverable. Traces that draw on several subplots (splom cells) are not mirrored.

Properties ​

PropertyModifierTypeDescription
disposedreadonlybooleanExperimental
subplotreadonlystringExperimental The mirrored subplot's id ('xy').
transformreadonly| Readonly<DataTransform> | undefinedExperimental Linear coordinates → mirror viewport world px.
viewportreadonlyViewportExperimental
xaxisreadonlyAxisInfo | undefinedExperimental The mirror's axes (after the first placement).
yaxisreadonlyAxisInfo | undefinedExperimental

Methods ​

dispose() ​

ts
dispose(): void;

Experimental

Remove the viewport and free the mirror views.

Returns ​

void


set() ​

ts
set(options): void;

Experimental

Move the mirror or change its ranges: a transform update for the views, no uploads.

Parameters ​

ParameterType
optionsSubplotMirrorOptions

Returns ​

void

Released under the MIT License.