Analysis Data

v1.0.4

Chartgen skill providing three core functions: data analysis, data interpretation, and data visualization. **Use Cases**: (1) Data Analysis - Statistics, fil...

0· 325·2 current·2 all-time
byChartGen AI@chartgen-ai
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

EnvCHARTGEN_API_KEY
latestvk974ksqxykr69jwjb9cjtxys258412qs
325downloads
0stars
4versions
Updated 2w ago
v1.0.4
MIT-0

ChartGen AI Chart Generator

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

Overview

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.

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.

Powered by ChartGen AI engine, supporting multiple chart types including bar, line, pie, scatter, area, and more. Optimized for business analytics and data storytelling.

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

# Generate Chart (Text-to-Chart)
python scripts/data_visualization.py --query "Draw a bar chart of sales by region" --file sales.xlsx

# 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

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

ScriptFunctionUse Case
data_visualization.pyChart GenerationText-to-Chart, create bar/line/pie/scatter charts
data_analysis.pyData AnalysisStatistics, filtering, aggregation, calculation
data_interpretation.pyInsight GenerationTrend analysis, pattern discovery, report generation

Parameters

Common Parameters

ParameterRequiredDescription
--queryYesNatural language query statement
--fileNoLocal file path (.xlsx/.xls/.csv), mutually exclusive with --json
--jsonNoJSON data (string or file path), mutually exclusive with --file

Visualization Specific Parameters

ParameterDescription
--output, -oOutput 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_visualization.py --query "Draw a chart" --json data.json

Usage Examples

Chart Generation (Text-to-Chart)

# 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

# Scatter plot
python scripts/data_visualization.py --query "Draw a scatter plot of price vs quantity" --file data.xlsx

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

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

Insight Generation

# 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 with key insights" --file report.xlsx

Supported Chart Types

  • Bar Chart / Stacked Bar Chart
  • Line Chart / Area Chart
  • Pie Chart / Donut Chart
  • Scatter Plot
  • And more...

Output Description

Chart Generation

  1. Console Output: ECharts configuration JSON
  2. HTML File: Interactive chart that can be opened in any browser

Data Analysis & Insight Generation

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


Error Handling

Common errors and solutions:

Error MessageCauseSolution
CHARTGEN_API_KEY not setEnvironment variable not setexport CHARTGEN_API_KEY="your-key"
API request timeoutRequest timeoutCheck network connection and retry
File not foundFile does not existCheck if file path is correct
credits are insufficientInsufficient creditsRecharge or contact administrator

Technical Details

  • API Base URL: https://chartgen.ai/api/platform_api/
  • Authentication: Header Authorization: <api-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

Comments

Loading comments...