Skip to content

Function: react() ​

ts
function react(el, dataOrFigure?, layout?, config?, options?): Promise<Chart>;

Update el to show a new figure efficiently (diffing), or create the chart if needed.

Parameters ​

ParameterType
elHTMLElement
dataOrFigure?| FigureInput<object, LayoutInput> | readonly object[]
layout?LayoutInput
config?Config
options?ChartOptions

Returns ​

Promise<Chart>

Released under the MIT License.