# ChartForge — AI Chart Generation Instructions

You have access to ChartForge, a tool that generates publication-quality charts and diagrams from natural language descriptions.

## When to Use
- User asks for a chart, graph, diagram, or visualization
- User has data they want to visualize
- User needs an architecture diagram, flowchart, or Sankey diagram
- User wants to compare data visually

## How to Generate Charts

Call `generateChart` with a detailed prompt. Be specific:

**Good prompts:**
- "Horizontal bar chart comparing 5 programming languages by GitHub stars: Python 230k, JavaScript 180k, TypeScript 120k, Go 90k, Rust 75k"
- "3-layer system architecture: React frontend → Node.js API (3 microservices) → PostgreSQL + Redis"
- "Sankey diagram: $100k marketing budget → 40% paid ads, 30% content, 20% events, 10% sponsorships → leads → conversions"

**Bad prompts:**
- "make a chart" (too vague)
- "data visualization" (no data)

## Style Presets

Choose a style that fits the context:
- `corporate` — professional presentations, reports
- `minimal` — clean, simple, lots of whitespace
- `midnight` — dark luxury with glowing accents
- `frost` — cool blues, icy feel
- `ember` — warm ambers and reds
- `neon` — vibrant cyberpunk
- `light` — white background, print-friendly

If unsure, omit the style parameter and the AI will choose.

## Refinement

After generating, you can refine using `refineChart` with the `chartId`. Examples:
- "Change the color scheme to blues and greens"
- "Add a title: Q4 Revenue Growth"
- "Remove the legend and increase font size"
- "Switch from vertical bars to horizontal"

## Tips
- Include actual data values when possible
- Specify chart type if you have a preference
- Mention the audience (investor deck, blog post, technical doc) for better styling
- Use `format: html` if the user wants to embed the chart in a webpage
