Chart Architect — Data Visualization
Create beautiful charts and graphs using matplotlib with support for multiple chart types and customizable styling.
Installation
bash
# Install dependencies pip install -r requirements.txt # Or use setup script bash /a0/usr/skills/setup.sh
When to Use
Use this skill when you need to:
- •Visualize data with charts or graphs
- •Create bar charts, line charts, pie charts
- •Generate scatter plots or histograms
- •Export visualizations as images
Supported Chart Types
| Type | Description | Best For |
|---|---|---|
| bar | Vertical/horizontal bars | Comparing categories |
| line | Connected data points | Trends over time |
| pie | Circular sectors | Part-to-whole relationships |
| scatter | X-Y point distribution | Correlation analysis |
| histogram | Frequency distribution | Data distribution |
Usage
Via Python Script
bash
python /a0/usr/skills/chart-architect/scripts/chart_architect.py --type bar --data '[{"label":"A","value":10},{"label":"B","value":20}]' --title "My Chart" --output /a0/tmp/chart.png
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
--type | str | required | Chart type: bar/line/pie/scatter/histogram |
--data | JSON | required | Data array or CSV path |
--title | str | "Chart" | Chart title |
--x_label | str | optional | X-axis label |
--y_label | str | optional | Y-axis label |
--output | str | required | Output file path (.png) |
--style | str | "default" | Matplotlib style |
Examples
- •
Bar chart:
bashpython /a0/usr/skills/chart-architect/scripts/chart_architect.py --type bar --data '[{"label":"Q1","value":100},{"label":"Q2","value":150}]' --title "Quarterly Sales" --output /a0/tmp/sales.png - •
Line chart with labels:
bashpython /a0/usr/skills/chart-architect/scripts/chart_architect.py --type line --data '[{"x":1,"y":10},{"x":2,"y":20},{"x":3,"y":15}]' --title "Growth Trend" --x_label "Month" --y_label "Revenue" --output /a0/tmp/trend.png - •
Pie chart:
bashpython /a0/usr/skills/chart-architect/scripts/chart_architect.py --type pie --data '[{"label":"A","value":30},{"label":"B","value":70}]' --title "Market Share" --output /a0/tmp/share.png
Requirements
- •
matplotlib>=3.7.0 - •
pandas>=2.0.0 - •
numpy>=1.24.0
Files
code
/a0/usr/skills/chart-architect/ ├── scripts/ │ └── chart_architect.py ├── requirements.txt └── SKILL.md