PortalJS Add Chart
Adds a gated recharts chart to a PortalJS dataset showcase page.
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 10, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · cea9b42
Ran a real add-chart pass in a scaffolded PortalJS portal: npm install recharts@^2.15.0 succeeded and tsc --noEmit passed clean; the skill correctly gated the chart to one dataset's showcase while a from-scratch baseline rendered the chart on every dataset's page instead — exactly the bug the SKILL.md warns about.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 9/10
- Docs & honesty 5/5
What PortalJS Add Chart does
Installs recharts, writes a reusable Chart.tsx component, and wires it into a PortalJS dataset showcase's Views section, gated to the chosen dataset so other showcases are unaffected. Supports line, bar, area, pie, and scatter charts reading the same CSV/JSON the table already uses. Triggers when visualizing a dataset already registered in datasets.json inside a PortalJS portal.
How to install PortalJS Add Chart
git clone https://github.com/datopian/portaljs
cd portaljs
mkdir -p ~/.claude/skills
cp -r skills/portaljs-add-chart ~/.claude/skills/portaljs-add-chart
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger PortalJS Add Chart
-
/portaljs-add-chartAdds a gated recharts chart to a PortalJS dataset showcase page.
It also activates on plain-language prompts like these:
-
Add a bar chart to this PortalJS dataset showcase page -
Wire a recharts line chart into my dataset's Views section -
Show this registered CSV dataset as a scatter chart on the portal
Frequently asked questions
- Is the PortalJS Add Chart skill free?
- Yes. The skill itself is free from datopian/portaljs. SkillProof publishes the install command and an independent test verdict at no cost.
- Does PortalJS Add Chart work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 10, 2026. Verdict: Tested · Works. Ran a real add-chart pass in a scaffolded PortalJS portal: npm install recharts@^2.15.0 succeeded and tsc --noEmit passed clean; the skill correctly gated the chart to one dataset's showcase while a from-scratch baseline rendered the chart on every dataset's page instead — exactly the bug the SKILL.md warns about.
- What is the PortalJS Add Chart SkillProof Score?
- 9.6/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 9/10, docs & honesty 5/5.
- How do I install PortalJS Add Chart?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use PortalJS Add Chart with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.