← Back to Skills Marketplace
chartgen-ai

Analyse Data

by ChartGen AI · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ⚠ suspicious
289
Downloads
0
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install analyse-data
Description
Data analysis skill providing three core functions: data analysis, data interpretation, and data visualization. **Use Cases**: (1) Data Analysis - Statistics...
README (SKILL.md)

ChartGen Data Analysis

Data analysis skill based on ChartGen API, supporting natural language-based data analysis, interpretation, and visualization.

Overview

This skill enables codeless data analysis through natural language interaction. It supports Text2SQL, Text2Data, and Text2Code analysis. Simply provide Excel/CSV files or JSON data to automatically execute data queries, data interpretation, and data visualization (ChatBI).

The skill will intelligently parse time, metrics, and analytical dimensions through conversational queries, then generate SQL queries for data, create interactive BI charts, structured analysis reports. Optimized for standardized vertical datasets, powered by enterprise-grade analytics engine for reliable results.

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.


Quick Start

1. Apply for an API Key

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

Steps:

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

2. Configure Environment Variable

export CHARTGEN_API_KEY="your-api-key-here"

3. Run Scripts

# Data Analysis
python scripts/data_analysis.py --query "Calculate total sales by region" --file sales.xlsx

# Data Interpretation
python scripts/data_interpretation.py --query "Analyze sales trends" --file sales.xlsx

# Data Visualization
python scripts/data_visualization.py --query "Draw a bar chart of sales by region" --file sales.xlsx

Credit Rules

  • Calling a single tool consumes 20 credits
  • You get 200 free credits per month for free accounts
  • When credits run out, you can purchase more or upgrade your account on the chartgen.ai Billing page

Scripts Reference

Script Function Use Case
data_analysis.py Data Analysis Statistics, filtering, aggregation, calculation
data_interpretation.py Data Interpretation Trend analysis, pattern discovery, report generation
data_visualization.py Data Visualization Chart generation, data display

Parameters

Common Parameters

Parameter Required Description
--query Natural language query statement
--file Local file path (.xlsx/.xls/.csv), mutually exclusive with --json
--json JSON data (string or file path), mutually exclusive with --file

Visualization Specific Parameters

Parameter Description
--output, -o Output HTML file path (defaults to /tmp/openclaw/charts/)

Data Format

File Format

Supports .xlsx, .xls, .csv Excel and CSV files.

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.

JSON Format

JSON data should be an array format, where each element is a row of data:

[
  {"name": "Product A", "sales": 1000, "region": "East"},
  {"name": "Product B", "sales": 1500, "region": "North"},
  {"name": "Product C", "sales": 800, "region": "South"}
]

Or pass via file:

python scripts/data_analysis.py --query "Analyze the data" --json data.json

Usage Examples

Data Analysis

# Statistical calculation
python scripts/data_analysis.py --query "Calculate total and average sales by region" --file sales.xlsx

# Data filtering
python scripts/data_analysis.py --query "Filter products with sales greater than 1000" --file sales.xlsx

# Sorting
python scripts/data_analysis.py --query "Sort by sales in descending order" --file sales.xlsx

Data Interpretation

# Trend analysis
python scripts/data_interpretation.py --query "Analyze monthly sales trends" --file monthly_sales.xlsx

# Anomaly detection
python scripts/data_interpretation.py --query "Find and explain anomalies in the data" --file data.xlsx

# Comprehensive interpretation
python scripts/data_interpretation.py --query "Provide a comprehensive analysis of this data with key insights" --file report.xlsx

Data Visualization

# Bar chart
python scripts/data_visualization.py --query "Draw a bar chart of sales by product" --file sales.xlsx

# Line chart
python scripts/data_visualization.py --query "Draw a line chart of sales trends" --file trends.xlsx

# Pie chart
python scripts/data_visualization.py --query "Draw a pie chart of sales by region" --file sales.xlsx

# Save to specific path
python scripts/data_visualization.py --query "Draw a scatter plot" --file data.xlsx -o /path/to/chart.html

Output Description

Data Analysis & Data Interpretation

Returns Markdown format text results, including analysis conclusions, data tables, etc.

Data Visualization

  1. Console Output: ECharts configuration JSON
  2. HTML File: Can be opened in browser to view the chart

Error Handling

Common errors and solutions:

Error Message Cause Solution
CHARTGEN_API_KEY not set Environment variable not set export CHARTGEN_API_KEY="your-key"
API request timeout Request timeout Check network connection and retry
File not found File does not exist Check if file path is correct
credits are insufficient Insufficient credits Recharge or contact administrator

Technical Details

  • API Base URL: https://chartgen.ai/api/platform_api/
  • Authentication: Header Authorization: \x3Capi-key>
  • Request Format: JSON
  • Timeout: 60 seconds
  • Required Environment Variable: CHARTGEN_API_KEY

See scripts/chartgen_api.py for implementation details.


Privacy Notice

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.

Recommendations:

  • Do not upload sensitive or regulated data
  • Use a dedicated API key with limited scope/credits
  • Review the privacy practices at chartgen.ai before use
Usage Guidance
This skill appears to do what it says: it sends your provided CSV/XLSX/JSON data to chartgen.ai using the CHARTGEN_API_KEY and returns analysis/visualizations. Before installing or running it, consider the following: (1) Only use non-sensitive or anonymized data — files are uploaded in full to an external service. (2) Verify you trust chartgen.ai and understand their data retention/billing policies (SKILL.md mentions credit usage). (3) Protect your CHARTGEN_API_KEY — it will be sent as the Authorization header; treat it like any other API secret. (4) The package does not declare or install Python dependencies (requests); ensure your runtime has Python and required libs. (5) If you need offline analysis or cannot share data, do not use this skill. If you want higher assurance, review the printed source (chartgen_api.py) and test with dummy data and a limited-permission key first.
Capability Analysis
Type: OpenClaw Skill Name: analyse-data Version: 1.0.3 The skill performs data analysis by reading local files (CSV, XLSX, JSON) and sending their contents, base64-encoded, to a remote third-party API at chartgen.ai. While this behavior is clearly documented in SKILL.md and implemented transparently in scripts/chartgen_api.py, the exfiltration of local data to an external service is a high-risk capability. No evidence of intentional malice, such as unauthorized credential theft or hidden backdoors, was found in the scripts (data_analysis.py, data_interpretation.py, data_visualization.py).
Capability Assessment
Purpose & Capability
Name/description, SKILL.md, and code all target ChartGen (chartgen.ai) for analysis, interpretation, and visualization. The single required env var (CHARTGEN_API_KEY) directly matches the declared external service. The included scripts implement the advertised functions (analysis, interpretation, visualization).
Instruction Scope
Runtime instructions and scripts require the user to provide a file or JSON which is base64-encoded and sent to chartgen.ai. This is within the declared scope, but it means arbitrary input files (including potentially sensitive data) are transmitted to the external API — the SKILL.md does not warn about sensitive data handling.
Install Mechanism
There is no install spec (no packages pulled by the skill). The skill includes runnable Python scripts that use the 'requests' library; the environment must provide Python and required libraries but the skill does not declare or install them. This is not malicious but may cause runtime failures if dependencies are missing.
Credentials
Only CHARTGEN_API_KEY is required, which is proportionate: the API client places it in the Authorization header. No unrelated secrets, config paths, or other environment variables are requested.
Persistence & Privilege
The skill does not request permanent/always-on privileges. It writes chart HTML to a local temp directory (/tmp/openclaw/charts) when generating visuals — behavior consistent with its purpose. Autonomous invocation is allowed by default (platform normal).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install analyse-data
  3. After installation, invoke the skill by name or use /analyse-data
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.3
Version 1.0.3 of the analyse-data skill - No file changes detected in this release. - Documentation and functionality remain unchanged from the previous version.
v1.0.2
The name has been modified
Metadata
Slug analyse-data
Version 1.0.3
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 2
Frequently Asked Questions

What is Analyse Data?

Data analysis skill providing three core functions: data analysis, data interpretation, and data visualization. **Use Cases**: (1) Data Analysis - Statistics... It is an AI Agent Skill for Claude Code / OpenClaw, with 289 downloads so far.

How do I install Analyse Data?

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

Is Analyse Data free?

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

Which platforms does Analyse Data support?

Analyse Data is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Analyse Data?

It is built and maintained by ChartGen AI (@chartgen-ai); the current version is v1.0.3.

💬 Comments