smart-charts: Convert CSV, Excel, and JSON into Interactive ECharts Charts

Introduction

The common workflow in data analysis is to first export the table, then open a BI tool or write a script to bind the chart. If the table is a bit messy—merged cells, Chinese headers, or requiring aggregation first—you have to keep toggling between pandas and chart configuration. If you are already processing files with an Agent in environments like Cursor or Claude Code, you likely want to consolidate “table reading, type selection, and plotting” into a single conversation, rather than setting up the environment from scratch every time.

Here, we introduce smart-charts on SkillHub: a chart generation Skill designed for Agents, driven by data files, outputting interactive HTML charts that can be opened locally.

What is this

smart-charts is a community Skill published on SkillHub, with the coordinate @user_5b28ea14/smart-charts. The current page indicates version v8.4.0, authored by hanli.

The official introduction summarizes it into two steps: input data files in formats like CSV / Excel / JSON into the conversation; the Agent processes them according to the Skill workflow to deliver interactive charts (HTML), with support for saving charts as images. The Skill offers 32 chart types and 3 themes, powered by ECharts visualization underneath.

Compared to “just giving the Agent a piece of drawing code and letting the model piece together the option temporarily,” smart-charts converges parsing, type selection, and rendering into a Skill-defined workflow, reducing manual configuration and dependency omissions.

Official Entry: https://api.skillhub.cn/user_5b28ea14/smart-charts
Skill Details Page: https://www.skillhub.cn/skills/user_5b28ea14/smart-charts

Core Features

The following capabilities are derived from the SkillHub page description and align with the Skill’s positioning (reading table-like files provided by users and generating visualizations):

  1. Multi-format Data Input: Supports common table/semi-structured files such as CSV, Excel, JSON, etc. (Specific parsing rules are subject to the installed SKILL.md).
  2. Chart Types and Themes: 32 chart types and 3 sets of themes for different presentation scenarios.
  3. Interactive HTML Delivery: Generates ECharts pages viewable interactively in a browser, rather than static screenshots.
  4. Image Export: Charts can be saved as images in the generated results for easy insertion into documents or reports.
  5. Agent Trigger Scenarios: When users request data analysis, chart generation, data visualization, or provide table files hoping for charts, the Agent loads this Skill to execute (consistent with the Use when… description in SkillHub’s English documentation).

Note: The introduction for @indiv-lailalli/smart-charts in pre-fetched materials points to browser automation, which does not match the chart Skill described above; this article is based on the user_5b28ea14 details page.

Installation and Activation

The installation process follows the official SkillHub documentation skillhub.cn/install/skillhub.md. The key point is to use the skillhub CLI and point --dir to the current Agent’s skills directory; otherwise, it may default to ./skills/ and not be recognized.

1. Check or Install SkillHub CLI

command -v skillhub && skillhub --version

If not installed, you can execute the full installation (CLI + default Skill) according to the documentation:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

For CLI-only installation:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install smart-charts to the Current Agent

Taking Cursor as an example, the skills directory is ~/.cursor/skills/ (paths for other clients can be found in section 4 of the same installation document):

skillhub install @user_5b28ea14/smart-charts --dir ~/.cursor/skills/

You can also ask the Agent to install it via conversation according to the official prompt:

Please install `@user_5b28ea14/smart-charts` based on https://skillhub.cn/install/skillhub.md.

3. After Enabling

After installation, restart or reload the Agent as required by your client; specific subcommands and environment dependencies (like Python and requirements.txt) are subject to the SKILL.md and scripts/ instructions within the Skill package. For first-time use, it is recommended to let the Agent run the environment self-check steps in the documentation first (if the Skill provides a --doctor type command).

Codex CLI, Claude Code, etc., only differ in path: change --dir to ~/.codex/skills/, ~/.claude/skills/, etc., while the installation coordinate remains @user_5b28ea14/smart-charts.

Typical Usage

Conversational (Consistent with the “Two-step Generation” on SkillHub page)

  1. Place the data file (e.g., sales.csv, report.xlsx) in the workspace accessible to the Agent.
  2. Express your intent in the conversation, for example: “Analyze this sales table and generate appropriate comparison charts” or “Use this JSON for trend visualization.”
  3. The Agent loads smart-charts, parses the data, selects the chart type and theme, and generates interactive HTML; saves as an image if needed according to the page instructions.

CLI Assistance (After installing the Skill)

The Skill itself usually contains entry points like scripts/cli.py for parsing, conversion, and rendering. A typical call form specifies chart types and axis fields for the data file; complex cleaning is often done by the Agent generating pandas code via transform parameters in the Skill documentation and executing it in a sandbox. For specific flags, error codes, and multi-chart batch configurations, please refer directly to the installed SKILL.md and references/ directory to avoid inconsistency with v8.4.0 behavior.

Scenarios and Notes

Suitable for

  • When you have CSV / Excel / JSON and want to quickly get shareable ECharts pages within an Agent session.
  • When you need many chart types and theme presets without wanting to manually write ECharts options every time.
  • When a team uniformly distributes the same “read table → plot” standard through SkillHub.

Notes

  • For large files, deeply nested JSON, non-tabular media, etc., the Skill may have explicit limitations; refer to the capability boundaries in SKILL.md and do not assume direct database connections or real-time streams.
  • For dirty headers, multi-sheet files, or column names with Chinese or special characters, usually the Agent needs to perform column name normalization or transform according to Skill conventions. Do not skip the Skill workflow to write alternative scripts (if the Skill documentation requires the CLI to be used).
  • When there are same-name or similar coordinates on SkillHub, please confirm @user_5b28ea14/smart-charts and version v8.4.0 during installation and reference to avoid installing the wrong package.

Conclusion

smart-charts encapsulates “tabular data → interactive ECharts HTML (savable as image)” into an Agent Skill, suitable for lightweight analysis and visualization delivery in existing LLM programming environments. Installation and updates are subject to SkillHub documentation. See the official page for details and author information:

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye