๐Ÿ“Š Chart Generation with LLM Agents

This app uses LLM Agents with Reflection Pattern to generate and improve data visualizations.

How it works:

  1. Enter your chart instruction (e.g., "Create a plot comparing Q1 coffee sales in 2024 and 2025")
  2. The LLM generates initial chart code (V1)
  3. The system reflects on V1 and generates improved code (V2)
  4. Both charts are displayed for comparison

Dataset: Coffee sales data with columns: date, time, cash_type, card, price, coffee_name, quarter, month, year

Generation Model (for V1)
Reflection Model (for V2)

๐Ÿ“ˆ Chart V1 (Initial)

โœจ Chart V2 (Improved)


๐Ÿ’ก Tips:

  • Be specific in your instructions (mention time periods, chart types, etc.)
  • Use a faster model for generation (V1) and a stronger model for reflection (V2)
  • The reflection model analyzes the V1 chart image and suggests improvements