← Back to Skills Marketplace
davaded

Echarts Chart Skill

by davaded · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ Security Clean
809
Downloads
0
Stars
4
Active Installs
2
Versions
Install in OpenClaw
/install echarts-ai-skill
Description
Generate charts from natural language or tabular data, recommend chart types, and export ECharts-based HTML or SVG. Use when users ask for one-sentence chart...
README (SKILL.md)

ECharts Chart Skill

Use this skill when the user wants chart output from a short description or from table-like data.

Workflow

  1. Translate the user's request into a ChartRequest JSON object.
  2. If the chart type is unclear, run the recommendation command first.
  3. Run the generation command to produce a stable ECharts option.
  4. Run the render command when the user wants an embeddable html or svg.

Files

  • Core types: src/types/chart.ts
  • Chart recommendation: src/core/recommend.ts
  • Option generation: src/core/spec-to-option.ts
  • Rendering: src/core/render.ts
  • Sample input: examples/study-progress.request.json
  • Universal metadata: manifest.yaml, agents/openai.yaml

Setup

npm install

Output rules

  • --out writes to an exact file path.
  • --out-dir writes the default file into a directory you choose.
  • desktop and home are valid aliases for --out-dir when the user explicitly asks for those locations.
  • ~ is expanded to the current user's home directory.
  • If no output path is provided, files default to the current working directory.

Commands

node dist/cli/recommend-chart.js --input examples\study-progress.request.json
node dist/cli/generate-chart.js --input examples\study-progress.request.json
node dist/cli/render-chart.js --input option.json --format html
node dist/cli/render-chart.js --input option.json --format svg --out D:\reports\study-chart.svg

Default output filenames:

  • Recommendation: spec.json
  • Option: option.json
  • HTML preview: preview.html
  • SVG preview: preview.svg

ChartRequest shape

{
  "title": "Monthly study completion",
  "dataset": [
    { "day": "2026-03-01", "completionRate": 62, "targetRate": 75 },
    { "day": "2026-03-02", "completionRate": 68, "targetRate": 75 }
  ],
  "goal": "trend",
  "xField": "day",
  "yField": "completionRate",
  "series": [
    { "name": "Completion", "field": "completionRate" },
    { "name": "Target", "field": "targetRate" }
  ]
}

Guidance

  • Prefer deterministic field mapping over free-form inference when the user has already named fields.
  • For pie charts, keep one category field and one metric field.
  • For scatter charts, require numeric xField and yField.
  • If the user only gave natural language, construct the smallest valid ChartRequest before calling scripts.
  • If the user needs a report artifact, render html first and svg second.
Usage Guidance
This skill appears to do what it says: recommend chart types, build ECharts options, and export HTML/SVG. Before installing or running it: (1) run npm install in the repository (renderSvg requires the echarts npm package); (2) review package.json / package-lock.json if you want to validate dependencies; (3) be aware that CLI commands read any --input file you provide and can write files to paths you allow (including Desktop / home); (4) the HTML preview references echarts from jsDelivr (a public CDN) — the HTML includes your chart data inline but does not itself exfiltrate it; (5) if you will process sensitive data, run the skill in a sandboxed environment or inspect the code and dependencies first.
Capability Analysis
Type: OpenClaw Skill Name: echarts-ai-skill Version: 0.1.1 The ECharts AI Skill is a legitimate toolkit designed to generate and export data visualizations. The code provides a structured workflow for recommending chart types, generating ECharts options, and rendering them into HTML or SVG files. While the CLI tools in 'dist/cli/args.js' allow writing to sensitive locations like the user's home or desktop directories, this behavior is explicitly documented in 'SKILL.md' and 'README.md' as a feature for exporting chart artifacts. No evidence of data exfiltration, malicious code execution, or harmful prompt injection was found; the only external network reference is a standard ECharts CDN link in the generated HTML output.
Capability Assessment
Purpose & Capability
Name/description match the code and CLI entrypoints: recommend -> generate -> render flows are implemented. The files implement chart heuristics, option building, HTML preview (CDN script) and server-side SVG rendering. No unrelated credentials, binaries, or capabilities are requested.
Instruction Scope
SKILL.md instructs running node CLI commands that read a JSON input and write preview artifacts. The runtime will read user-provided input files and can write to arbitrary output paths (including expanded ~, 'home', 'desktop' aliases) when the user requests those. This is expected for a chart-export skill but means the agent can write files to the user's filesystem if invoked with output arguments.
Install Mechanism
There is no install spec in the registry metadata, but SKILL.md says 'npm install' and the package contains dist/ and package.json/package-lock.json; running renderSvg also dynamically imports the 'echarts' package. This is a modest coherence gap (instructions require npm install even though no platform-level install step is declared), but it is proportionate and expected for a Node-based skill.
Credentials
The skill requests no environment variables or credentials. It only uses filesystem paths provided by the user and includes a CDN URL for client-side HTML previews (echarts via jsDelivr). No sensitive services or unrelated credentials are requested.
Persistence & Privilege
The skill is not marked 'always:true' and is user-invocable. It does not modify other skills' configs or request elevated, persistent platform privileges. Autonomous invocation is allowed by default but not combined here with broad credential access.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install echarts-ai-skill
  3. After installation, invoke the skill by name or use /echarts-ai-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.1
echarts-ai-skill v0.1.1 - Added compiled CLI and core files to the `dist/` directory (`dist/cli` and `dist/core`) for chart recommendation, generation, and rendering. - Updated output directory logic: default output is now the current working directory if no path is specified; `desktop`/`home` used only with explicit request. - Simplified setup instructions (removed `npm run build` from README). - Clarified CLI command usage and output rules in documentation. - Updated skill metadata to version 0.1.4 and improved guidance for output and field mapping.
v0.1.0
- Initial release of echarts-chart-skill for generating charts from natural language or tabular data. - Supports chart type recommendation, ECharts option generation, and export to HTML or SVG. - Provides CLI commands for recommendation, generation, and rendering workflows. - Flexible output handling, with aliases and defaulting to Desktop or home directory. - Detailed guidance and examples included for creating and mapping `ChartRequest` objects.
Metadata
Slug echarts-ai-skill
Version 0.1.1
License MIT-0
All-time Installs 4
Active Installs 4
Total Versions 2
Frequently Asked Questions

What is Echarts Chart Skill?

Generate charts from natural language or tabular data, recommend chart types, and export ECharts-based HTML or SVG. Use when users ask for one-sentence chart... It is an AI Agent Skill for Claude Code / OpenClaw, with 809 downloads so far.

How do I install Echarts Chart Skill?

Run "/install echarts-ai-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Echarts Chart Skill free?

Yes, Echarts Chart Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Echarts Chart Skill support?

Echarts Chart Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Echarts Chart Skill?

It is built and maintained by davaded (@davaded); the current version is v0.1.1.

💬 Comments