Loading...
Loading...
Use this skill for generating data-driven charts and visualizations using Python. Triggers: "create chart", "generate graph", "plot data", "visualize data", "bar chart", "line chart", "pie chart", "comparison chart", "positioning matrix", "trend chart", "market size chart", "TAM SAM SOM", "growth chart", "data visualization" Outputs: PNG/SVG chart images with accurate data representation. Used by: competitive-intel-agent, market-researcher-agent, pitch-deck-agent, review-analyst-agent
npx skill4agent add michaelboeding/skills chart-generationimage-generation| Chart Type | Use Case | Script |
|---|---|---|
| Bar Chart | Compare values across categories | |
| Line Chart | Show trends over time | |
| Pie Chart | Show proportions/percentages | |
| Positioning Matrix | 2x2 competitive positioning | |
| Comparison Table | Feature comparison grid | |
| TAM/SAM/SOM | Market size visualization | |
pip install matplotlib numpy pillow| Scenario | Use This | Use image-generation |
|---|---|---|
| Real data from analysis | ✅ | ❌ |
| Accurate numbers/labels | ✅ | ❌ |
| Reproducible charts | ✅ | ❌ |
| Concept/mockup visuals | ❌ | ✅ |
| Artistic illustrations | ❌ | ✅ |
| Icons and graphics | ❌ | ✅ |
python3 ${SKILL_PATH}/skills/chart-generation/scripts/bar_chart.py \
--labels '["Product A", "Product B", "Product C"]' \
--values '[85, 62, 45]' \
--title "Feature Comparison" \
--ylabel "Score" \
--output bar_chart.png--horizontal--colors'["#4CAF50", "#2196F3", "#FF9800"]'--show-valuespython3 ${SKILL_PATH}/skills/chart-generation/scripts/line_chart.py \
--x '["Jan", "Feb", "Mar", "Apr", "May", "Jun"]' \
--y '[100, 150, 180, 220, 310, 450]' \
--title "Monthly Revenue Growth" \
--xlabel "Month" \
--ylabel "Revenue ($K)" \
--output growth_chart.png--multi--y '[[100,150,200], [80,120,180]]' --legend '["Product A", "Product B"]'--fill--markerspython3 ${SKILL_PATH}/skills/chart-generation/scripts/pie_chart.py \
--labels '["Engineering", "Marketing", "Sales", "Operations"]' \
--values '[40, 25, 20, 15]' \
--title "Use of Funds" \
--output pie_chart.png--donut--explode--explode 0--show-percentpython3 ${SKILL_PATH}/skills/chart-generation/scripts/positioning_matrix.py \
--companies '["Your Product", "Competitor A", "Competitor B", "Competitor C"]' \
--x-values '[70, 90, 50, 30]' \
--y-values '[80, 85, 60, 45]' \
--x-label "Price (Low → High)" \
--y-label "Features (Basic → Advanced)" \
--title "Competitive Positioning" \
--output positioning.png--quadrant-labels'["Niche", "Leaders", "Laggards", "Challengers"]'--highlight--highlight 0--sizespython3 ${SKILL_PATH}/skills/chart-generation/scripts/comparison_table.py \
--features '["Feature A", "Feature B", "Feature C", "Feature D"]' \
--companies '["You", "Comp A", "Comp B"]' \
--data '[["✓", "✓", "✗"], ["✓", "✗", "✓"], ["✓", "✓", "✓"], ["✓", "✗", "✗"]]' \
--title "Feature Comparison" \
--output comparison.png--highlight-column--highlight-column 0--colorspython3 ${SKILL_PATH}/skills/chart-generation/scripts/tam_sam_som.py \
--tam 50 \
--sam 8 \
--som 0.5 \
--unit "B" \
--title "Market Opportunity" \
--output market_size.png--unit--labels'["Total Market", "Serviceable", "Obtainable"]'# Generate positioning matrix from analysis
positioning_matrix.py \
--companies '["You", "Salesforce", "HubSpot"]' \
--x-values '[30, 95, 70]' \
--y-values '[75, 90, 60]'# Generate TAM/SAM/SOM from research
tam_sam_som.py --tam 120 --sam 15 --som 2.5 --unit "B"# Generate traction chart
line_chart.py \
--x '["Q1", "Q2", "Q3", "Q4"]' \
--y '[50, 120, 280, 500]' \
--title "Revenue Growth"# Generate sentiment distribution
pie_chart.py \
--labels '["Positive", "Neutral", "Negative"]' \
--values '[65, 20, 15]' \
--title "Review Sentiment"--output file.png--output file.svg--output file.pdf| Option | Description | Example |
|---|---|---|
| Chart title | |
| Width in inches | |
| Height in inches | |
| Resolution | |
| Matplotlib style | |
| Custom color palette | |
| Base font size | |
## In competitive-intel-agent workflow:
1. Analyze competitors (gather data)
2. Structure data as JSON
3. Call chart-generation script with data
4. Embed resulting PNG in report# 1. Analysis produces this data
data = {
"companies": ["You", "Competitor A", "Competitor B"],
"features": [8, 6, 5],
"prices": [29, 49, 39]
}
# 2. Generate chart
python3 bar_chart.py \
--labels '["You", "Competitor A", "Competitor B"]' \
--values '[8, 6, 5]' \
--title "Feature Count Comparison" \
--output features.png
# 3. Embed in report
"Create a bar chart comparing our features to competitors"
"Analyze these companies and generate a positioning matrix"
"Plot our monthly revenue growth from this data: [100, 150, 220, 350]"
"Create a TAM/SAM/SOM chart: TAM $50B, SAM $5B, SOM $500M"