Skip to main content

Creating Interactive Visualizations with Plotly

Plotly is a company which provides a number of open-source libraries allowing users to build interactive graphs. Unlike static images, Plotly graphs can respond to user actions with popup labels, pan-and-zoom abilities, faceted data displays, and more. Plotly libraries are available in Python — the focus of this tutorial — as well as various programming languages, including R and Julia. A wide variety of graphs is available through Plotly libraries, ranging from the statistical or scientific to the financial or geographic. These graphs can be displayed using various methods, including Jupyter notebooks, HTML files, and web applications produced with Plotly’s Dash framework.

This lesson provides an overview of what Plotly is, why it’s useful, and how it can be used with Python. It also demonstrates the different modules in the Plotly framework (Plotly Express and Plotly Graph Objects) and the methods required to create, edit, and export data visualizations.

Reviewed by:

  • Mario Bañuelos
  • Rob Lewis

Learning outcomes

After completing this lesson, you will be able to:

  • Create interactive data visualizations in Python using Plotly’s open-source graphing libraries
  • Understand the distinction between Plotly Express, Plotly’s Graph Objects, and Plotly Dash
  • Create and export graphs using plotly.express and plotly.graph_objects
  • Add custom features to graphs
Interested in learning more?

Check out this lesson on Programming Historian's website

Go to this resource

Cite as

Grace Di Méo (2023). Creating Interactive Visualizations with Plotly. Version 1.0.0. Edited by Scott Kleinman. ProgHist Ltd. [Training module]. https://doi.org/10.46430/phen0115

Reuse conditions

Resources hosted on DARIAH-Campus are subjects to the DARIAH-Campus Training Materials Reuse Charter

Full metadata

Title:
Creating Interactive Visualizations with Plotly
Authors:
Grace Di Méo
Domain:
Social Sciences and Humanities
Language:
en
Published to DARIAH-Campus:
12/18/2024
Originally published:
12/13/2023
Content type:
Training module
Licence:
CCBY 4.0
Sources:
Programming Historian
Topics:
Data visualisation, Python
Version:
1.0.0