Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
starchild-ai-agent avatar

Chart

  • 3.7k installs
  • 18 repo stars
  • Updated July 27, 2026
  • starchild-ai-agent/official-skills

Interactive ECharts web page with specified data, template, and PNG export capability.

About

Chart is an interactive web charting skill that generates ECharts-based visualization pages with project-based organization. Developers use it to create time-series trends, category comparisons, OHLCV price analysis, and multi-dimensional dashboards. The skill supports 11 templates (line, bar, pie, candlestick, scatter, dashboard, radar, heatmap, dual-axis, multi-panel, waterfall) stored in dedicated output folders. Each chart project includes an HTML page, reproducible Python generation script, data snapshot, and optional PNG screenshot. Workflows involve picking a template, creating a project folder, building the chart with `build_chart()`, serving via `chart_server.py`, and exporting images via toolbar buttons (Download PNG, Copy Image, Save Image). Data embeds directly in HTML to avoid CORS issues. 11 chart templates: line, bar, candlestick, scatter, dashboard, dual-axis, multi-panel, waterfall, pie, radar, heatmap. Project-based storage: each chart in dedicated folder with index.html, generate.py, data.json, screenshot.png, README.

  • 11 chart templates: line, bar, candlestick, scatter, dashboard, dual-axis, multi-panel, waterfall, pie, radar, heatmap
  • Project-based storage: each chart in dedicated folder with index.html, generate.py, data.json, screenshot.png, README
  • Toolbar exports: Download PNG, Copy Image to clipboard, Save Image to project folder
  • ECharts CDN rendering with native getDataURL canvas merge for reliable PNG output
  • Synced tooltips and zoom across multi-panel charts; floating-base waterfall for P&L attribution

Chart by the numbers

  • 3,686 all-time installs (skills.sh)
  • +81 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #131 of 2,277 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

chart capabilities & compatibility

Capabilities
line chart · bar chart · candlestick chart · scatter chart · dashboard · png export · clipboard copy · multi panel sync
Use cases
data analysis
Platforms
macOS · Windows · Linux
Runs
Runs locally
Pricing
Free
From the docs

What chart says it does

Interactive web charts: line, bar, candle, scatter, with HTML and screenshot output.
SKILL.md metadata description
npx skills add https://github.com/starchild-ai-agent/official-skills --skill chart

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs3.7k
repo stars18
Security audit2 / 3 scanners passed
Last updatedJuly 27, 2026
Repositorystarchild-ai-agent/official-skills

What it does

Generate interactive web charts (line, bar, candlestick, scatter) with PNG export for data visualization and business intelligence.

Who is it for?

Data analysis, BI dashboards, price charting, financial reporting, time-series comparisons, correlation analysis.

Skip if: Real-time streaming dashboards, high-frequency trading visualization, 3D geospatial rendering.

When should I use this skill?

User requests visual chart for data exploration, dashboard creation, or report generation.

What you get

Reproducible, shareable chart projects with interactive web pages, PNG exports, and version-controlled generation scripts.

  • index.html (interactive chart page)
  • generate.py (reproducible script)
  • data.json (data snapshot)

By the numbers

  • 11 chart templates available
  • Project structure: 4 files per chart (index.html, generate.py, data.json, screenshot.png)
  • Toolbar includes 3 export buttons

Files

SKILL.mdMarkdownGitHub ↗

Chart — Project-Based Interactive Charting

Generate interactive chart pages with Apache ECharts. Each chart lives in a dedicated project folder under output/chart-html/, making it easy to reuse and iterate.

When to Use

Any time the user wants a visual chart: price charts, comparisons, dashboards, business analytics, etc.

Architecture

  • ECharts (CDN) for rendering
  • ECharts native export (`getDataURL`) + canvas merge for reliable PNG output
  • Project-based storage: one folder per chart project
  • No gallery mode: all artifacts stay in the project folder

Project Structure (Required)

Each chart project should follow:

output/chart-html/
  <project-name>/
    index.html        # chart page
    generate.py       # generation script (for reproducibility)
    README.md         # title / description / data source notes
    data.json         # data snapshot
    screenshot.png    # saved image

Example folder name: btc-90d-20260401

Workflow

Step 1: Pick template or custom layout

Available templates:

TemplateBest for
line.htmlTime-series trends, multi-series comparisons
bar.htmlCategory comparisons, rankings
pie.htmlComposition / share breakdown
candlestick.htmlOHLCV price charts
scatter.htmlCorrelation, distribution
dashboard.htmlKPI cards + 2×2 multi-chart grid
radar.htmlMulti-dimension scoring
heatmap.htmlMatrix / calendar intensity
dual-axis.htmlTwo series with very different scales (e.g. market cap vs stablecoin supply) — left and right Y axes, each with its own label color
multi-panel.htmlStacked panels sharing one X axis (e.g. price + volume + RSI) — single ECharts instance, tooltip/zoom synced across all panels
waterfall.htmlIncremental contribution breakdown (e.g. P&L attribution, budget variance) — positive/negative bars stacked on a floating base

Step 2: Create project folder

Use create_project(name, description, data_sources) from scripts/build_chart.py.

Step 3: Build and save chart page

Use either:

  • build_chart(template_name, ...)
  • build_chart_custom(...)

Then save as index.html in the project folder:

  • save_chart(html, project_dir=project_dir)

Step 4: Save reproducible assets

Also save:

  • save_generate_script(script_content, project_dir)generate.py
  • save_data(data, project_dir)data.json
  • project README is created by create_project(...)

Step 5: Serve preview

Use project-root serving (recommended):

preview_serve(
  title="Chart Preview",
  dir="skills/chart/scripts",
  command="python3 chart_server.py /data/workspace/output/chart-html 7860",
  port=7860
)

Then open: /preview/<id>/<project-name>/index.html

Important behavior in v3.0.1:

  • chart_server.py now rewrites preview-prefixed static paths internally (/preview/<id>/.../...) before filesystem lookup.
  • This guarantees the preview iframe resolves the real project index.html instead of falling back to root directory listing.
  • Keep project pages under output/chart-html/<project>/index.html (do not serve output/chart-html directly as a static preview without chart_server.py).

Step 6: Export image

Two modes: 1. User wants web page + image: click "💾 Save Image" in page toolbar, saves to current project as screenshot.png 2. User wants image only: call screenshot_chart(project_dir) (Playwright) and send screenshot.png directly

Toolbar Requirements

Every chart page must include these buttons:

<div class="actions">
  <button onclick="downloadPNG(this)">📥 Download PNG</button>
  <button onclick="copyToClipboard(this)">📋 Copy Image</button>
  <button onclick="saveToProject(this)">💾 Save Image</button>
</div>

Do not include gallery entry.

Key Files

FilePurpose
skills/chart/scripts/base-styles.cssBase dark theme CSS
skills/chart/scripts/base-export.jsExport helpers: download/copy/save-to-project
skills/chart/scripts/build_chart.pyProject creation, HTML build, data/script save, screenshot
skills/chart/scripts/chart_server.pyStatic server + /save-chart API
skills/chart/templates/*.htmlReusable chart templates
output/chart-html/<project>/*All generated chart artifacts

Notes

  • Embed data directly in HTML (const DATA = ...) to avoid iframe CORS issues.
  • For multi-chart pages, register all chart instances in window.CHART_INSTANCES.
  • Use meaningful project names (topic-range-date) for easy lookup.

Related skills

Forks & variants (1)

Chart has 1 known copy in the catalog totaling 1 installs. They canonicalize to this original listing.

How it compares

Pick chart for agent-driven one-off ECharts HTML artifacts; use a dashboard framework when you need authenticated multi-user BI infrastructure.

FAQ

How do I create a new chart project?

Call create_project(name, description, data_sources) from scripts/build_chart.py, then use build_chart(template_name, ...) and save_chart(html, project_dir).

Can I export the chart as an image?

Yes. Click 'Download PNG' toolbar button in the page, or call screenshot_chart(project_dir) with Playwright to save PNG directly.

Which template should I use for time-series data?

Use line.html for trends and multi-series comparisons, or dual-axis.html if series have very different scales.

Is Chart safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.