Loading...
Loading...
Interactive web-based charts for data analysis and business intelligence. Project-based output in output/chart-html/<project>/ with HTML + script + data + screenshot.
npx skill4agent add starchild-ai-agent/official-skills chartoutput/chart-html/getDataURLoutput/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 imagebtc-90d-20260401| Template | Best for |
|---|---|
| Time-series trends, multi-series comparisons |
| Category comparisons, rankings |
| Composition / share breakdown |
| OHLCV price charts |
| Correlation, distribution |
| KPI cards + 2×2 multi-chart grid |
| Multi-dimension scoring |
| Matrix / calendar intensity |
| Two series with very different scales (e.g. market cap vs stablecoin supply) — left and right Y axes, each with its own label color |
| Stacked panels sharing one X axis (e.g. price + volume + RSI) — single ECharts instance, tooltip/zoom synced across all panels |
| Incremental contribution breakdown (e.g. P&L attribution, budget variance) — positive/negative bars stacked on a floating base |
create_project(name, description, data_sources)scripts/build_chart.pybuild_chart(template_name, ...)build_chart_custom(...)index.htmlsave_chart(html, project_dir=project_dir)save_generate_script(script_content, project_dir)generate.pysave_data(data, project_dir)data.jsoncreate_project(...)preview_serve(
title="Chart Preview",
dir="skills/chart/scripts",
command="python3 chart_server.py /data/workspace/output/chart-html 7860",
port=7860
)/preview/<id>/<project-name>/index.htmlscreenshot.pngscreenshot_chart(project_dir)screenshot.png<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>| File | Purpose |
|---|---|
| Base dark theme CSS |
| Export helpers: download/copy/save-to-project |
| Project creation, HTML build, data/script save, screenshot |
| Static server + |
| Reusable chart templates |
| All generated chart artifacts |
const DATA = ...window.CHART_INSTANCEStopic-range-date