Skip to content

Function: restyle() ​

ts
function restyle(el, update, traces?): Promise<Chart>;

Plotly restyle: see Chart.restyle. Takes attribute paths ('marker.color') whose array values hold one value per trace, so it is not typed against the traces' attributes.

Parameters ​

ParameterType
elHTMLElement
updateAttributeUpdate
traces?TraceIndices

Returns ​

Promise<Chart>

Released under the MIT License.