Skip to content
Skills Library
Data & analytics · Building & coding

chart

/chart

Renders interactive charts in the browser using Chart.js. Use when the user wants to visualize data, plot numbers, draw a bar chart, line chart, pie chart, doughnut chart, radar chart, graph metrics, compare benchmarks, show a cost curve, or display a time series. Always renders live in browser — never as a static image.

Author
npow ↗
Licence
Apache-2.0
Last repository change
20.08.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 20.08.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Renders interactive charts in the browser using Chart.js. Use when the user wants to visualize data, plot numbers, draw a bar chart, line chart, pie chart, doughnut chart, radar chart, graph metrics, compare benchmarks, show a cost curve, or display a time series. Always renders live in browser — never as a static image.

Original author description

Renders interactive charts in the browser using Chart.js. Use when the user wants to visualize data, plot numbers, draw a bar chart, line chart, pie chart, doughnut chart, radar chart, graph metrics, compare benchmarks, show a cost curve, or display a time series. Always renders live in browser — never as a static image.

How it works

  1. Workflow
  2. Self-review checklist
  3. Golden rules
  4. Reference files
Original SKILL.md headings · 44 lines, 434 words
SKILL.md preview
---
name: chart
description: Renders interactive charts in the browser using Chart.js. Use when the user wants to visualize data, plot numbers, draw a bar chart, line chart, pie chart, doughnut chart, radar chart, graph metrics, compare benchmarks, show a cost curve, or display a time series. Always renders live in browser — never as a static image.
allowed-tools: Write, Edit, mcp__chrome-devtools__new_page, mcp__chrome-devtools__navigate_page, mcp__chrome-devtools__wait_for, mcp__chrome-devtools__take_screenshot, mcp__chrome-devtools__list_pages

category: tool
capabilities: [trend-tracking]
output_types: [chart, data]
complexity: moderate
cost_profile: low
maturity: beta
metadata_source: inferred
---

# Chart

Renders interactive charts in the browser using Chart.js from context-supplied data and chart type.

## Workflow

1. **Extract data and chart type** — identify labels, datasets, and chart type (bar, line, pie, doughnut, radar) from the user's request or conversation context.
2. **Choose colors** — assign dataset colors from the standard palette. See [TEMPLATE.md](TEMPLATE.md) for the palette.
3. **Write the HTML file** — write a complete self-contained file to `/tmp/chart.html` using the Chart.js template matching the chart type. See [TEMPLATE.md](TEMPLATE.md) for all templates.
4. **Render in browser** — follow [`_shared/chrome-devtools-render.md`](../_shared/chrome-devtools-render.md) to open `/tmp/chart.html`, wait for render, screenshot, and fix-and-reload if needed. `wait_for` the static `<h2 id="ready">` text (Chart.js renders to canvas — canvas text is NOT detectable by `wait_for`). See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for chart-specific fixes.

## Self-review checklist

Before delivering, verify ALL:

- [ ] Screenshot shows the chart with visible title, labels, and data — no blank canvas
- [ ] Chart text is readable on dark background — not invisible black-on-dark
- [ ] Container div has explicit `height` (e.g. `500px`) in CSS — not just on the canvas element
- [ ] Both `responsive: true` and `maintainAspectRatio: false` are set in chart options
- [ ] `Chart.defaults.color` and `Chart.defaults.borderColor` are set before `new Chart()`
- [ ] Dataset colors are from the standard palette — no ad-hoc inline colors
- [ ] CDN URL is exactly `https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.min.js`
- [ ] `wait_for` is called with the chart title text before `take_screenshot`

## Golden rules

Hard rules. Never violate these.

1. **Never set width or height on the canvas element.** Set dimensions on the wrapper div via CSS (`height: 500px`). Canvas attributes override Chart.js responsive sizing.
2. **Always set both `responsive: true` and `maintainAspectRatio: false`.** Either alone is insufficient — the chart collapses to 0 height without both.
3. **Always set `Chart.defaults.color` and `Chart.defaults.borderColor` before creating any chart.** Without them, all text renders as black and is invisible on the dark background.
4. **Always use `new_page` for first open.** Use `mcp__chrome-devtools__new_page` with `url: file:///tmp/chart.html`. Use `navigate_page` with `type: reload` only for subsequent fixes.
5. **Always add a static `<h2 id="ready">Title</h2>` above the canvas and `wait_for` it.** Chart.js renders text onto canvas — canvas text is invisible to `wait_for`. The static element is the only reliable render signal.
6. **Never hardcode colors inline in datasets.** Always use colors from the standard palette array defined in TEMPLATE.md.

## Reference files

| File | Contents |
|------|----------|
| [TEMPLATE.md](TEMPLATE.md) | Complete Chart.js HTML templates for bar, line, and pie/doughnut; color palette; data format patterns |
| [TROUBLESHOOTING.md](TROUBLESHOOTING.md) | Failure diagnosis table: symptoms, causes, fixes |

Files in this package (3)
  • SKILL.md 4 KB
  • TEMPLATE.md 9 KB
  • TROUBLESHOOTING.md 4 KB

Versions

RepositoryScoreLicence
This page · npow/claude-skills90Apache-2.0
guohaonan-shy/excalidrawer100MIT

Database snapshot: 13.11.2026 · package version b9dec03bfa6f (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100chart-image
    Generate publication-quality PNG chart images from data, supporting line, bar, area, candlestick, pie, and heatmap charts. Triggers when the user asks to visualize data, create a graph, plot a time series, or generate a chart for a report, alert, or dashboard. Runs as a…
  • 100simulator-charts
    Simulator.Company chart and dashboard specialist. Use when the user wants to create, configure, or query charts (line, bar, stackedBar, pie, …), dashboards, or financial time-series visualisations on a graph layer. Trigger on any of these intents: — Creating: "create chart",…
  • 100chart-generation
    Use this skill for generating data-driven charts and visualizations using Python. Triggers: "create chart", "generate graph", "plot data", "visualize data", "bar chart", "line chart", "pie chart", "comparison chart", "positioning matrix", "trend chart", "market size chart", "TAM…
  • 90moda-chart
    Data charts on Moda from real data — CSV, a table, pasted numbers: bar, line, area, pie, scatter, combo; an editable chart on a live canvas, exported png or pdf. Use for: "chart/graph/plot this data", "visualize these numbers". NOT: a chart inside an artifact another moda skill…
  • 100data-charts
    Analyze tabular data and render charts (bar, line, scatter, pie, histogram) to PNG/SVG with pandas + matplotlib. Use whenever the user wants to plot, chart, graph, or visualize data from a CSV/JSON/Excel file or inline numbers.
  • 100graphic-chart
    Generates data visualization charts (bar, line, area, pie, doughnut, scatter, radar, treemap) as PNG using Apache ECharts v6. 1080×1080px default, 5 style presets, highlight annotations. Trigger when user says "create a chart", "visualize data", "make a bar chart", "line graph",…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.