← 返回 Skills 市场
chartgen-ai

Analysis Data

作者 ChartGen AI · GitHub ↗ · v1.0.4 · MIT-0
cross-platform ✓ 安全检测通过
360
总下载
0
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install analysis-data
功能描述
Chartgen skill providing three core functions: data analysis, data interpretation, and data visualization. **Use Cases**: (1) Data Analysis - Statistics, fil...
使用说明 (SKILL.md)

\r \r

ChartGen AI Chart Generator\r

\r AI-powered chart generator that creates professional visualizations through natural language. Built on ChartGen AI engine.\r \r

Overview\r

\r Transform your data into stunning, interactive charts with simple natural language commands. No coding required - just describe the chart you want, and ChartGen AI generates it instantly.\r \r This skill supports Text-to-Chart, Text-to-SQL, and Text-to-Data analysis. Simply provide Excel/CSV files or JSON data, describe your visualization needs in plain language, and get interactive ECharts visualizations, structured analysis reports, and AI-driven insights.\r \r Powered by ChartGen AI engine, supporting multiple chart types including bar, line, pie, scatter, area, and more. Optimized for business analytics and data storytelling.\r \r API Service: This skill uses the ChartGen API service hosted at chartgen.ai. All data is sent to https://chartgen.ai/api/platform_api/ for processing.\r \r ---\r \r

Quick Start\r

\r

1. Apply for an API Key\r

\r You can easily create and manage your API Key at chartgen.ai. To begin with, you need to register for an account.\r \r Steps:\r

  1. Visit chartgen.ai and sign up for an account\r
  2. Access the API management dashboard\r
  3. Create a new API and set the credit consumption limit\r
  4. Copy the API Key for use\r \r

2. Configure Environment Variable\r

\r

export CHARTGEN_API_KEY="your-api-key-here"\r
```\r
\r
### 3. Run Scripts\r
\r
```bash\r
# Generate Chart (Text-to-Chart)\r
python scripts/data_visualization.py --query "Draw a bar chart of sales by region" --file sales.xlsx\r
\r
# Data Analysis\r
python scripts/data_analysis.py --query "Calculate total sales by region" --file sales.xlsx\r
\r
# Data Interpretation\r
python scripts/data_interpretation.py --query "Analyze sales trends" --file sales.xlsx\r
```\r
\r
---\r
\r
## Credit Rules\r
\r
- Calling a single tool consumes 20 credits\r
- You get 200 free credits per month for free accounts\r
- When credits run out, you can purchase more or upgrade your account on the [chartgen.ai Billing page](https://chartgen.ai/billing)\r
\r
---\r
\r
## Scripts Reference\r
\r
| Script | Function | Use Case |\r
|--------|----------|----------|\r
| `data_visualization.py` | Chart Generation | Text-to-Chart, create bar/line/pie/scatter charts |\r
| `data_analysis.py` | Data Analysis | Statistics, filtering, aggregation, calculation |\r
| `data_interpretation.py` | Insight Generation | Trend analysis, pattern discovery, report generation |\r
\r
---\r
\r
## Parameters\r
\r
### Common Parameters\r
\r
| Parameter | Required | Description |\r
|-----------|----------|-------------|\r
| `--query` | Yes | Natural language query statement |\r
| `--file` | No | Local file path (.xlsx/.xls/.csv), mutually exclusive with --json |\r
| `--json` | No | JSON data (string or file path), mutually exclusive with --file |\r
\r
### Visualization Specific Parameters\r
\r
| Parameter | Description |\r
|-----------|-------------|\r
| `--output, -o` | Output HTML file path (defaults to /tmp/openclaw/charts/) |\r
\r
---\r
\r
## Data Format\r
\r
### File Format\r
\r
Supports `.xlsx`, `.xls`, `.csv` Excel and CSV files.\r
\r
Note: Only one of --file or --json is needed. If both are provided, --file takes precedence. File types support both row-metric-column data files and column-metric-row data files.\r
\r
### JSON Format\r
\r
JSON data should be an array format, where each element is a row of data:\r
\r
```json\r
[\r
  {"name": "Product A", "sales": 1000, "region": "East"},\r
  {"name": "Product B", "sales": 1500, "region": "North"},\r
  {"name": "Product C", "sales": 800, "region": "South"}\r
]\r
```\r
\r
Or pass via file:\r
\r
```bash\r
python scripts/data_visualization.py --query "Draw a chart" --json data.json\r
```\r
\r
---\r
\r
## Usage Examples\r
\r
### Chart Generation (Text-to-Chart)\r
\r
```bash\r
# Bar chart\r
python scripts/data_visualization.py --query "Draw a bar chart of sales by product" --file sales.xlsx\r
\r
# Line chart\r
python scripts/data_visualization.py --query "Draw a line chart of sales trends" --file trends.xlsx\r
\r
# Pie chart\r
python scripts/data_visualization.py --query "Draw a pie chart of sales by region" --file sales.xlsx\r
\r
# Scatter plot\r
python scripts/data_visualization.py --query "Draw a scatter plot of price vs quantity" --file data.xlsx\r
\r
# Save to specific path\r
python scripts/data_visualization.py --query "Draw a bar chart" --file data.xlsx -o /path/to/chart.html\r
```\r
\r
### Data Analysis\r
\r
```bash\r
# Statistical calculation\r
python scripts/data_analysis.py --query "Calculate total and average sales by region" --file sales.xlsx\r
\r
# Data filtering\r
python scripts/data_analysis.py --query "Filter products with sales greater than 1000" --file sales.xlsx\r
\r
# Sorting\r
python scripts/data_analysis.py --query "Sort by sales in descending order" --file sales.xlsx\r
```\r
\r
### Insight Generation\r
\r
```bash\r
# Trend analysis\r
python scripts/data_interpretation.py --query "Analyze monthly sales trends" --file monthly_sales.xlsx\r
\r
# Anomaly detection\r
python scripts/data_interpretation.py --query "Find and explain anomalies in the data" --file data.xlsx\r
\r
# Comprehensive interpretation\r
python scripts/data_interpretation.py --query "Provide a comprehensive analysis with key insights" --file report.xlsx\r
```\r
\r
---\r
\r
## Supported Chart Types\r
\r
- Bar Chart / Stacked Bar Chart\r
- Line Chart / Area Chart\r
- Pie Chart / Donut Chart\r
- Scatter Plot\r
- And more...\r
\r
---\r
\r
## Output Description\r
\r
### Chart Generation\r
\r
1. **Console Output**: ECharts configuration JSON\r
2. **HTML File**: Interactive chart that can be opened in any browser\r
\r
### Data Analysis & Insight Generation\r
\r
Returns Markdown format text results, including analysis conclusions, data tables, and insights.\r
\r
---\r
\r
## Error Handling\r
\r
Common errors and solutions:\r
\r
| Error Message | Cause | Solution |\r
|---------------|-------|----------|\r
| `CHARTGEN_API_KEY not set` | Environment variable not set | `export CHARTGEN_API_KEY="your-key"` |\r
| `API request timeout` | Request timeout | Check network connection and retry |\r
| `File not found` | File does not exist | Check if file path is correct |\r
| `credits are insufficient` | Insufficient credits | Recharge or contact administrator |\r
\r
---\r
\r
## Technical Details\r
\r
- **API Base URL**: `https://chartgen.ai/api/platform_api/`\r
- **Authentication**: Header `Authorization: \x3Capi-key>`\r
- **Request Format**: JSON\r
- **Timeout**: 60 seconds\r
- **Required Environment Variable**: `CHARTGEN_API_KEY`\r
\r
See `scripts/chartgen_api.py` for implementation details.\r
\r
---\r
\r
## Privacy Notice\r
\r
**Data sent to remote API**: This skill reads your provided data files (CSV/XLSX/JSON), base64-encodes them, and sends them to the ChartGen API at `https://chartgen.ai/api/platform_api/` for analysis and chart generation. Your data will leave your machine.\r
\r
**Recommendations**:\r
- Do not upload sensitive or regulated data\r
- Use a dedicated API key with limited scope/credits\r
- Review the privacy practices at [chartgen.ai](https://chartgen.ai) before use\r
安全使用建议
This skill appears internally coherent and implements a client for chartgen.ai. Before installing or using it, consider: (1) Data privacy — any file or JSON you provide will be uploaded (base64-encoded) to chartgen.ai; do not send sensitive files or secrets. (2) API key safety — the CHARTGEN_API_KEY you set grants the service access and billing; treat it like a secret and verify its scope and limits on chartgen.ai. (3) Billing/credits — the SKILL.md states credit consumption (20 credits per call, 200 free/month); confirm costs on chartgen.ai. (4) Source verification — the registry lists no homepage and the owner is unknown; if you need stronger assurance, verify chartgen.ai and its API documentation independently before supplying your API key or production data. (5) Test with sample data first to confirm behavior and outputs.
功能分析
Type: OpenClaw Skill Name: analysis-data Version: 1.0.4 The skill bundle provides legitimate data analysis and visualization capabilities by interfacing with the ChartGen AI API (chartgen.ai). While it exfiltrates user-provided data (CSV/XLSX/JSON) to a remote endpoint for processing, this behavior is clearly documented in SKILL.md with a dedicated 'Privacy Notice' and is essential to the skill's stated function. The Python scripts (chartgen_api.py, data_visualization.py, etc.) use standard libraries like requests and do not contain any obfuscation, backdoors, or unauthorized access to sensitive system files.
能力评估
Purpose & Capability
The name/description (ChartGen data analysis/visualization) matches the code and SKILL.md. The only required environment variable is CHARTGEN_API_KEY, which is appropriate for an API-backed charting service. Minor note: the registry metadata lists no primary credential field even though CHARTGEN_API_KEY is the main credential—this is a bookkeeping omission, not a functional mismatch.
Instruction Scope
The SKILL.md and scripts clearly instruct the agent to read either a local file or JSON data, base64-encode file contents, and POST them to https://chartgen.ai/api/platform_api/ (services: PythonDataAnalysis, DataInterpretation, EchartsVisualization). This is coherent with the stated purpose, but it means any file you point the tool at will be uploaded to an external service. Users should not point it at sensitive files (containing PII, secrets, or credentials) unless they trust chartgen.ai and the API key's permissions.
Install Mechanism
There is no install spec (no downloads or installers). The skill is instruction-plus-scripts only; running it executes included Python scripts. No unexpected third-party download URLs or archive extraction are present.
Credentials
The only required env var is CHARTGEN_API_KEY, which is proportional to a remote API client. The scripts do not access other environment variables or unrelated credentials. The API key is sent in the Authorization header (no additional secrets requested).
Persistence & Privilege
The skill is not forced-always, is user-invocable, and does not request persistent/system-wide privileges. It writes output HTML to /tmp/openclaw/charts by default (a reasonable, limited location) and does not modify other skills or system configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install analysis-data
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /analysis-data 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
- No changes detected in the code or documentation for this release. - Version bump to 1.0.4 without any file modifications.
v1.0.3
- Initial release of the chartgen skill for data analysis, interpretation, and visualization using the ChartGen AI engine. - Supports natural language commands for generating charts, statistical analysis, and insight reports from Excel, CSV, or JSON data. - Three main functions: data analysis, data interpretation, and chart generation (bar, line, pie, scatter, area, and more). - Requires CHARTGEN_API_KEY environment variable (API key from chartgen.ai) for operation. - Includes error handling guidance, usage examples, and privacy notice regarding data processing.
v1.0.1
- Added a Privacy Notice section clarifying that data files are base64-encoded and sent to the remote ChartGen API for processing. - Updated API endpoint references from ada.im to chartgen.ai and clarified that all data is sent to https://chartgen.ai/api/platform_api/. - Added explicit mention of CHARTGEN_API_KEY as a required environment variable in a new metadata section and Technical Details. - Improved wording throughout for clarity and updated Quick Start instructions to match current chartgen.ai UX. - Minor update to credit explanation to align with current free account offer (no more three-month credit batch wording).
v1.0.0
Initial release Features: - Data Analysis: Execute precise data retrieval and analysis through natural language (statistics, filtering, aggregation, calculation) - Data Interpretation: Automatically generate data analysis conclusions and insights (trend analysis, pattern discovery, report generation) - Data Visualization: Generate ECharts charts through natural language (bar, line, pie charts and more) Supports: - Local file input (.xlsx/.xls/.csv) - JSON data input - HTML chart output Powered by ChartGen AI (https://chartgen.ai)
元数据
Slug analysis-data
版本 1.0.4
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 4
常见问题

Analysis Data 是什么?

Chartgen skill providing three core functions: data analysis, data interpretation, and data visualization. **Use Cases**: (1) Data Analysis - Statistics, fil... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 360 次。

如何安装 Analysis Data?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install analysis-data」即可一键安装,无需额外配置。

Analysis Data 是免费的吗?

是的,Analysis Data 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Analysis Data 支持哪些平台?

Analysis Data 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Analysis Data?

由 ChartGen AI(@chartgen-ai)开发并维护,当前版本 v1.0.4。

💬 留言讨论