Skip to content

Function: update() ​

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

Plotly update: restyle and relayout in one step.

Parameters ​

ParameterType
elHTMLElement
traceUpdateAttributeUpdate
layoutUpdateLayoutUpdate
traces?TraceIndices

Returns ​

Promise<Chart>

Released under the MIT License.