Przejdź do treści
Biblioteka skilli
Dane i analityka · Budowanie i kod

plotly

/plotly

Wspiera tworzenie interaktywnych wykresów Plotly w D3 i WebGL, dashboardów Dash, Plotly Express i animacji dla aplikacji analitycznych w sieci.

Repozytorium
Agent-Skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
01.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Wspiera tworzenie interaktywnych wykresów Plotly w D3 i WebGL, dashboardów Dash, Plotly Express i animacji dla aplikacji analitycznych w sieci.

Oryginalny opis (EN)

Expert Plotly visualization assistance covering interactive D3/WebGL charts, Dash dashboards, Plotly Express, and animations. Use when building interactive web charts and analytical data applications.

Jak działa

  1. When to Use
  2. Quick Start
  3. Core Concepts
  4. Common Patterns
  5. Best Practices
  6. Troubleshooting
  7. References
Sekcje z nagłówków SKILL.md, w oryginale · 164 linii, 588 słów
Podgląd SKILL.md
---
name: plotly
description: Expert Plotly visualization assistance covering interactive D3/WebGL charts, Dash dashboards, Plotly Express, and animations. Use when building interactive web charts and analytical data applications.
---

# Plotly

Plotly generates publication-quality interactive charts, dashboards, and analytical visualizations across Python, R, and JavaScript.

## When to Use

- **Interactive Web Dashboards & Visualizations**: Building zoomable, pan-able, and hover-interactive charts in Python/JS.
- **Financial & Candlestick Charts**: Displaying high-frequency stock, crypto, and commodity data with interactive range sliders.
- **3D Surface & Geospatial Mapping**: Rendering 3D point clouds, geospatial choropleth maps, and WebGL scatter plots.
- **Jupyter & Streamlit Integration**: Embedding interactive visualizations into Streamlit, Dash, or JupyterLab.

## Quick Start

```python
import plotly.express as px

# Create interactive scatter plot with hover tooltips and trendline
df = px.data.iris()
fig = px.scatter(
    df, x="sepal_width", y="sepal_length",
    color="species", size="petal_length",
    hover_data=["petal_width"],
    title="Iris Dataset - Interactive Feature Exploration"
)

# Open in browser or render in Jupyter
fig.show()
```

## Core Concepts

### High-Level Charting with Plotly Express

Generating rich multi-variable interactive charts in one line:

```python
import plotly.express as px
import pandas as pd

# Load sample dataset
df = px.data.gapminder().query("year == 2007")

fig = px.scatter(
    df,
    x="gdpPercap",
    y="lifeExp",
    size="pop",
    color="continent",
    hover_name="country",
    log_x=True,
    size_max=60,
    title="Global Health vs. Wealth (2007)",
    labels={"gdpPercap": "GDP per Capita (USD)", "lifeExp": "Life Expectancy (Years)"},
    template="plotly_white"
)

# Customize hover tooltip formatting
fig.update_traces(
    hovertemplate="<b>%{hovertext}</b><br>GDP/Capita: $%{x:,.2f}<br>Life Expectancy: %{y:.1f} yrs<extra></extra>"
)

# Export interactive HTML widget
fig.write_html("interactive_scatter.html", include_plotlyjs="cdn")
```

### Financial Candlestick Chart with Range Slider (graph_objects)

Detailed technical analysis with interactive time navigation:

```python
import plotly.graph_objects as go
import pandas as pd

df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')

fig = go.Figure(data=[go.Candlestick(
    x=df['Date'],
    open=df['AAPL.Open'],
    high=df['AAPL.High'],
    low=df['AAPL.Low'],
    close=df['AAPL.Close'],
    name='AAPL'
)])

fig.update_layout(
    title='Apple Inc. (AAPL) Stock Price',
    yaxis_title='Stock Price (USD)',
    xaxis_rangeslider_visible=True,
    template='plotly_dark'
)

fig.write_html("candlestick_chart.html")
```

### Interactive Subplot Grid with Secondary Y-Axis

Combining bar charts and line charts across synchronized subplots:

```python
from plotly.subplots import make_subplots
import plotly.graph_objects as go

fig = make_subplots(specs=[[{"secondary_y": True}]])

months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']
fig.add_trace(go.Bar(x=months, y=[120, 150, 180, 220, 260, 310], name="Revenue ($k)"), secondary_y=False)
fig.add_trace(go.Scatter(x=months, y=[85, 88, 89, 92, 94, 95], name="Retention (%)", mode="lines+markers"), secondary_y=True)

fig.update_layout(title="H1 Revenue & Retention Trends", template="plotly_white")
fig.update_yaxes(title_text="Revenue in Thousands ($)", secondary_y=False)
fig.update_yaxes(title_text="Customer Retention Rate (%)", secondary_y=True)
```

## Common Patterns

### Customizing Layout and Dark Theme Styling

**Problem**: Default white themes mismatch dark mode application dashboards.

**Solution**:
Apply custom templates and update figure layout:

```python
fig.update_layout(
    template="plotly_dark",
    title_font_size=20,
    xaxis_title="Measurement",
    yaxis_title="Count",
    legend=dict(orientation="h", yanchor="bottom", y=1.02, xanchor="right", x=1),
    margin=dict(l=40, r=40, t=60, b=40)
)

# Export interactive standalone HTML
fig.write_html("dashboard_chart.html")
```

## Best Practices

**Do**:

- Start with `plotly.express` for rapid prototyping; drop down to `plotly.graph_objects` only for complex multi-axis layouts.
- Use `include_plotlyjs="cdn"` when exporting HTML files to reduce file size from 3MB down to a few kilobytes.
- Use WebGL-accelerated traces (`go.Scattergl`) when rendering more than 50,000 points to keep the browser responsive.
- Customize `hovertemplate` to display meaningful business units and currency signs cleanly.

**Don't**:

- Plot millions of raw points without downsampling; dense overlapping points degrade browser DOM rendering.
- Embed full static PNG images when users need zoom, pan, and hover interactivity.
- Forget to set responsive container sizing (`fig.update_layout(autosize=True)`).

## Troubleshooting

| Error                                                      | Cause                                                        | Solution                                                                      |
| :--------------------------------------------------------- | :----------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `fig.show() does nothing in terminal script`               | Terminal execution lacks browser renderer or Jupyter widget. | Export to HTML with `fig.write_html("chart.html")` or run in Jupyter.         |
| `ValueError: Plotly Express cannot process wide-form data` | DataFrame columns not in tidy (long) format.                 | Use `df.melt()` to convert wide DataFrame into long-form format.              |
| `Slow rendering with 100k+ data points`                    | SVG rendering bottleneck in browser DOM.                     | Use WebGL-accelerated chart variants: `go.Scattergl` instead of `go.Scatter`. |

## References

- [Plotly Python](https://plotly.com/python/)

Wersje

RepozytoriumWynikLicencja
Ta strona · G1Joshi/Agent-Skills100MIT
TerminalSkills/skills100Apache-2.0
FrancoStino/opencode-skills-collection100MIT
FOURTEEN1416/academic-agent-toolkit100CC-BY-4.0
sickn33/agentic-awesome-skills100MIT
lamm-mit/scienceclaw100Apache-2.0
aipoch/medical-research-skills100MIT
LUNARTECH-X/superpowers100MIT
davila7/claude-code-templates95MIT

Migawka bazy z 13.11.2026 · wersja paczki 06faef632819 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100plotly-dashboard-skill
    Buduje aplikacje Plotly Dash ze wspólnym szablonem wykresów i szybkimi callbackami dla interaktywnych dashboardów z wieloma widokami.
  • 100alterlab-plotly
    Tworzy interaktywne wykresy w bibliotece Plotly: podpowiedzi, powiększanie, animacje, suwaki zakresu, wykresy 3D i samodzielny HTML, także dla dashboardów Dash.
  • 95plotly-interactive-plots
    Tworzy interaktywne wizualizacje naukowe w Plotly (plotly.express i graph_objects): ponad 40 typów wykresów, animacje oraz eksport do HTML, PNG, SVG i PDF.
  • 100plotly-chart-generator
    Prawdopodobnie generuje wykresy Plotly na potrzeby analiz i treści wizualnych.
  • 95bigdata-visualization
    Tworzy statyczne i interaktywne wykresy w Matplotlib, Seaborn i Plotly do dashboardów, raportów i wizualnej eksploracji danych.
  • 100data-visualization
    Tworzy czytelne wykresy i dashboardy z danych strukturalnych za pomocą matplotlib, seaborn i plotly.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.