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
| Parameter | Type |
|---|---|
el | HTMLElement |
dataOrFigure? | | FigureInput<object, LayoutInput> | readonly object[] |
layout? | LayoutInput |
config? | Config |
options? | ChartOptions |
Returns
Promise<Chart>