Generate interactive HTML dashboards from CSV/JSON data with one click.
python3 "{SKILL_DIR}/scripts/generate_dashboard.py" data.csv -o dashboard.html
python3 "{SKILL_DIR}/scripts/generate_dashboard.py" data.json --json -o dashboard.html --theme dark
The script automatically selects chart strategies based on data column types. See {SKILL_DIR}/references/chart-selection.md.
| Option | Description | Default |
|--------|-------------|---------|
| input | CSV or JSON file path | (required) |
| -o, --output | Output HTML path | dashboard.html |
| --json | Input is JSON format | auto-detect |
| --stdin | Read CSV from stdin | - |
| --theme | light or dark | light |
| --title | Dashboard title | 数据可视化仪表板 |
If the user provides data content directly (rather than a file), write it to a temporary CSV file first, then call the script.
Input sales.csv:
Month,Product,Revenue,Units
2024-01,A,15000,120
2024-02,A,18000,145
2024-01,B,12000,95
2024-02,B,14000,110
Output: Automatically generates a dashboard with trend line charts, category comparison bar charts, and revenue proportion pie charts.
共 1 个版本