liveBook · Manning

Plotly figure

As explained in Build Python Web Apps with Streamlit

A Plotly figure is an object containing the traces, layout, and configuration that define a Plotly visualization.

A Plotly figure is the chart object that gathers visualization components before display. With Plotly Graph Objects, start with an empty Figure, add traces, and configure the layout. section 6.5.1

How Build Python Web Apps with Streamlit covers it

How deep it goes
Explains incremental construction through traces and layout, without detailing Plotly internals.
Examples
Uses daily sales data to create a lines-and-markers time-series chart with metric-based titles and axis labels.
What it assumes
Assumes a prepared dataframe and metric definition while demonstrating figure construction from an empty object.
What you can do after
Build it from scratch with Plotly Graph Objects and display it through Streamlit.
How it connects
Connects Plotly Graph Objects, scatterplots, time-series data, and Streamlit.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Python Web Apps with Streamlit. The section links point to the parts of the book it draws on.