Skip to main content

Example Usage

Example Output

Overview

pydantic model zero_true.Plotly The PlotlyComponent is designed to incorporate interactive Plotly graphs within web interfaces, ideal for data visualization tasks that require interactivity and detailed graphical displays. This component accepts serialized Plotly figures, allowing for dynamic and responsive data visualization solutions.
The uniqueness of each component is ensured by a validation process for component IDs, making it suitable for applications that involve multiple interactive elements. This integration capability makes it a valuable tool for scientific research, data analysis, and interactive reporting.

JSON Schema

Bellow are the various attributes you can assign to the component. Utlizing them can allow for modifications to the pre-created object.
zero_true.Plotly
Zero True Component

Methods

from_figure: (figure: Figure, id: str); Creates a PlotlyComponent instance from a Plotly figure.

to_json

to_json: Converts the component to a JSON-serializable dictionary.