Skip to content

Function: planRestyle() ​

ts
function planRestyle(update, fullData, opts, traceIndices?): Set<Stage>;

Experimental

Plan a restyle: every attribute path in update applied to the given traces.

Parameters ​

ParameterTypeDescription
updateReadonly<Record<string, unknown>>Attribute strings to new values, e.g. { 'marker.color': 'red' }.
fullDatareadonly FullTrace[]-
optsPlanOptions-
traceIndicesreadonly number[]Traces the update applies to (all traces when omitted).

Returns ​

Set<Stage>

Released under the MIT License.