# Plotly

> Plotly interactive visualization library. Use for interactive charts.

- Skill: `majiayu000/plotly-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/plotly-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/plotly-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/plotly-2

---


# Plotly

Plotly creates **interactive** (zoomable, hoverable) charts in the browser. v6.0 (2025) drops big dependencies (Pandas is optional) and improves performance.

## When to Use

- **Dashboards**: Streamlit, Dash.
- **3D Plots**: Rotating 3D scatter plots.
- **Interactivity**: Users need to drill down into data.

## Core Concepts

### Plotly Express (`px`)

High-level API. `px.scatter(df, x="a", y="b", color="c")`.

### Graph Objects (`go`)

Low-level API. `go.Figure(data=[go.Scatter(...)])`.

### Dash

The framework for building web apps with Plotly charts.

## Best Practices (2025)

**Do**:

- **Use Plotly Express**: It covers 90% of use cases.
- **Use WebGL**: `render_mode='webgl'` for large datasets (>10k points).

**Don't**:

- **Don't use it for static papers**: Use Matplotlib for print.

## References

- [Plotly Python](https://plotly.com/python/)

