Function: newPlot()
ts
function newPlot(el, dataOrFigure?, layout?, config?, options?): Promise<Chart>;Draw a new chart in el, replacing any chart already there. Resolves after the first frame.
Parameters
| Parameter | Type |
|---|---|
el | HTMLElement |
dataOrFigure? | | FigureInput<object, LayoutInput> | readonly object[] |
layout? | LayoutInput |
config? | Config |
options? | ChartOptions |
Returns
Promise<Chart>