Function: figureFromJSON()
ts
function figureFromJSON(json): FigureInput;Decode a figure saved with chartToJSON (or encoded by Plotly): typed-array specs become typed arrays again, anywhere in the figure. Accepts the JSON text or the parsed value; throws on a non-object or a malformed typed-array spec.
Parameters
| Parameter | Type |
|---|---|
json | unknown |