GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Site
  • Page
  • « plotly.io.to_json
  • plotly.io.read_json »
  • str
  • type

This view

  • Original page
  • New address

GeezerVison is showing plotly.com — plotly.io.from_json — 7.1.0 documentation

  • Site
      • plotly.express: high-level interface for data visualization
      • plotly.graph_objects: low-level interface to figures, traces and layout
      • plotly.subplots: helper function for laying out multi-plot figures
      • plotly.figure_factory: helper methods for building specific complex charts
      • plotly.io: low-level interface for displaying, reading and writing figures
  • Page
      • plotly.io.from_json
  • « plotly.io.to_json
  • plotly.io.read_json »

plotly.io.from_json¶

plotly.io.from_json(value, output_type='Figure', skip_invalid=False, engine=None)¶

Construct a figure from a JSON string

Parameters
  • value (str or bytes) – String or bytes object containing the JSON representation of a figure

  • output_type (type or str (default 'Figure')) – The output figure type or type name. One of: graph_objects.Figure, ‘Figure’, graph_objects.FigureWidget, ‘FigureWidget’

  • skip_invalid (bool (default False)) – False if invalid figure properties should result in an exception. True if invalid figure properties should be silently ignored.

  • engine (str (default None)) –

    The JSON decoding engine to use. One of:
    • if “json”, parse JSON using built in json module

    • if “orjson”, parse using the faster orjson module, requires the orjson package

    • if “auto” use orjson module if available, otherwise use the json module

    If not specified, the default engine is set to the current value of plotly.io.json.config.default_engine.

Raises

ValueError – if value is not a string, or if skip_invalid=False and value contains invalid figure properties

Returns

Return type

Figure or FigureWidget

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.