# Create Interactive Plotly Visualizations

Complex chart APIs make it difficult to choose chart types, configure interactions, and produce polished results. This skill provides focused Plotly guidance and examples.

## Install

```bash
npx skillstore add davila7/plotly
```

## Metadata

- Status: approved
- Slug: davila7-plotly
- Skillstore revision: r2
- Version status: missing
- Tree hash: f71c1a4c0046ae1101c2244e1a7298e6729014f722e05e948becb06a85eda035
- Author: davila7
- GitHub username: davila7
- License: MIT
- Repository: https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/skills/scientific/plotly
- Ref: c43861a65bb95efcae259cd161c9d6f4dc7eec6f
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: filesystem, external\_commands, network
- Quality score: 78
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/davila7-plotly
- Manifest: https://skillstore.pages.dev/api/skills/davila7-plotly/manifest

## Capabilities

- Recommends Plotly Express or graph objects based on chart complexity and customization needs.
- Guides creation of statistical, scientific, financial, geographic, hierarchical, and 3D charts.
- Explains subplots, templates, colors, axes, legends, annotations, shapes, and responsive layouts.
- Covers hover details, selection, controls, range sliders, and animated figures.
- Shows interactive HTML and static PNG, JPEG, WebP, SVG, and PDF export options.
- Provides patterns for Jupyter, browser, Dash, and multi-chart dashboard workflows.

## Use Cases

- Explore Experimental Results: Create interactive scatter plots, heatmaps, distributions, and 3D surfaces for scientific analysis.
- Present Business Metrics: Build clear time-series, financial, comparison, and hierarchical charts for recurring reports.
- Develop Interactive Dashboards: Combine styled subplots, controls, hover details, and responsive behavior for web applications.

## Prompt Templates

### Create a Basic Chart

```
Using a pandas DataFrame named [dataframe], create a Plotly Express [chart type] with [x], [y], clear labels, and a title.
```

### Compare Groups

```
Visualize [metric] across [groups] using an appropriate Plotly chart. Add color encoding, hover details, and an accessible legend.
```

### Build a Styled Dashboard Figure

```
Create a [rows] by [columns] Plotly subplot figure for [metrics]. Coordinate colors, axes, annotations, sizing, and responsive behavior.
```

### Design an Advanced Interactive View

```
Build an interactive Plotly visualization for [workflow] with [controls], custom hover content, animation, and both HTML and [static format] exports.
```

## Limitations

- Requires a working Python environment and separate Plotly installation.
- Static image export requires Kaleido, and newer Kaleido versions require Chrome or Chromium.
- Some map styles require external services, network access, or access tokens.
- Provides guidance and examples but does not inspect data quality or validate analytical conclusions.

## Best Practices

- Use Plotly Express for standard DataFrame charts, then refine the returned figure with graph object methods.
- Choose labels, color scales, hover fields, and dimensions that match the audience and data.
- Select export settings deliberately, especially embedded libraries, image size, scale, and network requirements.

## Anti Patterns

- Do not use graph objects for simple charts when Plotly Express provides the required result.
- Do not overload figures with traces, controls, annotations, or hover fields that obscure the main comparison.
- Do not assume CDN-based HTML exports work offline or static exports work without Kaleido.

## Security Audit

- Audited at: 2026-07-23T15:17:04.332\+00:00
- Summary: All 41 static findings are false positives caused by documentation examples, Markdown code fences, chart terminology, and official Plotly links. No malicious intent, prompt injection, unsafe command execution, unauthorized network activity, or dangerous file handling was found.

## Stats

- Views: 515
- Downloads: 9
- Favorites: 0
- Popularity score: 0
