Skip to content
Back to skills

Generate Echarts Charts From Data

ASecurity

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 generation, auto chart selection from data, or embeddable chart previews.

  • 37 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 19, 2026
ai-agentsgoshellnodeapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add rondoflow/rondoflow --skill generate-echarts-charts-from-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate Echarts Charts From Data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Generate Echarts Charts From Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-generate-echarts-charts-from-data/badge)](https://www.skillsdirectory.com/skills/rondoflow-generate-echarts-charts-from-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: generate-echarts-charts-from-data
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 generation, auto chart selection from data, or embeddable chart previews."
category: "Web & Scraping"
author: community
version: "0.1.1"
icon: globe
---

# 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

```powershell
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

```powershell
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

```json
{
  "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.

Files in this skill

  • SKILL.md2.8 KB
  • manifest.json462 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.